<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www.chapleau.info/cs/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Frederick Chapleau weBlog on IT.</title><subtitle type="html">- &amp;quot;The worst about ideas is not to do them or not, it&amp;#39;s to forget them.&amp;quot;&lt;br /&gt;
&lt;i&gt;A small insider on Frederick Chapleau digital life, and Q&amp;amp;A that may help others&lt;/i&gt;</subtitle><id>http://www.chapleau.info/cs/blogs/fchapleau/atom.aspx</id><link rel="alternate" type="text/html" href="http://www.chapleau.info/cs/blogs/fchapleau/default.aspx" /><link rel="self" type="application/atom+xml" href="http://www.chapleau.info/cs/blogs/fchapleau/atom.aspx" /><generator uri="http://communityserver.org" version="3.1.20917.1142">Community Server</generator><updated>2009-07-07T13:00:47Z</updated><entry><title>Underscore prefix with C#, is it a best practice?</title><link rel="alternate" type="text/html" href="http://www.chapleau.info/cs/blogs/fchapleau/archive/2010/03/01/underscore-prefix-with-c-is-it-a-best-practice.aspx" /><id>http://www.chapleau.info/cs/blogs/fchapleau/archive/2010/03/01/underscore-prefix-with-c-is-it-a-best-practice.aspx</id><published>2010-03-01T18:52:27Z</published><updated>2010-03-01T18:52:27Z</updated><content type="html">&lt;p&gt;I used this since the beginning, thinking that this was a best practice, but without searching a lot.&lt;/p&gt;  &lt;p&gt;I found this article containing a brief history on this practice... I’ll let you decide if it’s a best practice to you.&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx"&gt;http://blogs.msdn.com/sourceanalysis/archive/2008/05/25/a-difference-of-style.aspx&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;-f.&lt;/p&gt;&lt;img src="http://www.chapleau.info/cs/aggbug.aspx?PostID=831" width="1" height="1"&gt;</content><author><name>Frederick.Chapleau</name><uri>http://www.chapleau.info/cs/members/Frederick.Chapleau.aspx</uri></author><category term="Programming" scheme="http://www.chapleau.info/cs/blogs/fchapleau/archive/tags/Programming/default.aspx" /></entry><entry><title>Atlasian: Really, really great, and almost FREE!</title><link rel="alternate" type="text/html" href="http://www.chapleau.info/cs/blogs/fchapleau/archive/2010/02/19/atlasian-really-really-great-and-almost-free.aspx" /><id>http://www.chapleau.info/cs/blogs/fchapleau/archive/2010/02/19/atlasian-really-really-great-and-almost-free.aspx</id><published>2010-02-19T16:04:36Z</published><updated>2010-02-19T16:04:36Z</updated><content type="html">&lt;p&gt;&lt;strong&gt;10$&lt;/strong&gt; for Each of :&lt;/p&gt;  &lt;p&gt;JIRA : The best Issue Tracker&lt;/p&gt;  &lt;p&gt;Confluence : The best Wiki/Blog engine&lt;/p&gt;  &lt;p&gt;… and many others!&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.atlassian.com/starter/"&gt;http://www.atlassian.com/starter/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;-f.&lt;/p&gt;&lt;img src="http://www.chapleau.info/cs/aggbug.aspx?PostID=828" width="1" height="1"&gt;</content><author><name>Frederick.Chapleau</name><uri>http://www.chapleau.info/cs/members/Frederick.Chapleau.aspx</uri></author><category term="Reviewing" scheme="http://www.chapleau.info/cs/blogs/fchapleau/archive/tags/Reviewing/default.aspx" /></entry><entry><title>Get the Unread count of the Inbox of Exchange 2010/2007, using web services</title><link rel="alternate" type="text/html" href="http://www.chapleau.info/cs/blogs/fchapleau/archive/2010/02/02/get-the-unread-count-of-the-inbox-of-exchange-2010-2007-using-web-services.aspx" /><id>http://www.chapleau.info/cs/blogs/fchapleau/archive/2010/02/02/get-the-unread-count-of-the-inbox-of-exchange-2010-2007-using-web-services.aspx</id><published>2010-02-02T14:28:40Z</published><updated>2010-02-02T14:28:40Z</updated><content type="html">&lt;p&gt;I searched a lot and, based on an article from &lt;a href="http://sandeep-aparajit.blogspot.com/2010/01/ms-exchange-2010-web-service-helper.html"&gt;SANDEEP APARAJIT&lt;/a&gt;, I was able to query for unread email from my Exchange mailbox inbox, in about 15 min. Thanks!&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;font size="2" face="Courier New"&gt;ServicePointManager.ServerCertificateValidationCallback = delegate(Object obj, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors) { return true; }; &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="2" face="Courier New"&gt;ExchangeServiceBinding service = new ExchangeServiceBinding ();&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="2" face="Courier New"&gt;service.RequestServerVersionValue = new RequestServerVersion();       &lt;br /&gt;service.RequestServerVersionValue.Version = ExchangeVersionType.Exchange2010;        &lt;br /&gt;service.EnableDecompression = true;        &lt;br /&gt;service.Credentials = new NetworkCredential(&amp;quot;&lt;em&gt;username&lt;/em&gt;&amp;quot;, &amp;quot;&lt;em&gt;password&lt;/em&gt;&amp;quot;, &amp;quot;&lt;em&gt;domain&lt;/em&gt;&amp;quot;);        &lt;br /&gt;service.Url = @https://&lt;em&gt;exchangeserver&lt;/em&gt;/EWS/exchange.asmx;&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="2" face="Courier New"&gt;int merCurrentCount = GetUnreadFolderItemsCount(service, &amp;quot;Inbox&amp;quot;);&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="2" face="Courier New"&gt;… and the functions…&lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="2" face="Courier New"&gt;public int GetUnreadFolderItemsCount(ExchangeServiceBinding service, string folderName)       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; int unReadCount = -1;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // Identify the folder properties to return.        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; FolderResponseShapeType properties = new FolderResponseShapeType();        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; PathToUnindexedFieldType ptuft = new PathToUnindexedFieldType();        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ptuft.FieldURI = UnindexedFieldURIType.folderManagedFolderInformation;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; PathToUnindexedFieldType[] ptufts = new PathToUnindexedFieldType[1] { ptuft };        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; properties.AdditionalProperties = ptufts;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; properties.BaseShape = DefaultShapeNamesType.AllProperties; &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="2" face="Courier New"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // Form the get folder request.       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; BaseFolderIdType p_folder = FindFolderID(service, folderName); &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="2" face="Courier New"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; GetFolderType request = new GetFolderType();       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; request.FolderIds = new BaseFolderIdType[1] { p_folder };        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; request.FolderShape = properties; &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="2" face="Courier New"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; // Send the request and get the response.       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; GetFolderResponseType response = service.GetFolder(request); &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="2" face="Courier New"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ArrayOfResponseMessagesType aormt = response.ResponseMessages;       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ResponseMessageType[] rmta = aormt.Items;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; foreach (ResponseMessageType rmt in rmta)        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if (rmt.ResponseClass == ResponseClassType.Error)        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; throw new Exception(rmt.MessageText);        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; else        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; FolderInfoResponseMessageType firmt;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; firmt = (rmt as FolderInfoResponseMessageType);        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; BaseFolderType[] folders = firmt.Folders; &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="2" face="Courier New"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; foreach (BaseFolderType rfolder in folders)       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if (rfolder is FolderType)        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; FolderType myFolder;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; myFolder = (rfolder as FolderType);        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if (myFolder.UnreadCountSpecified)        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; unReadCount = myFolder.UnreadCount;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; return unReadCount;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="2" face="Courier New"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; public static FolderIdType FindFolderID(ExchangeServiceBinding service, String folderName)       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; DistinguishedFolderIdType objSearchRootFolder = new DistinguishedFolderIdType();        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; objSearchRootFolder.Id = DistinguishedFolderIdNameType.msgfolderroot; &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="2" face="Courier New"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; FindFolderType requestFindFolder = new FindFolderType();       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; requestFindFolder.Traversal = FolderQueryTraversalType.Deep;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; requestFindFolder.ParentFolderIds = new DistinguishedFolderIdType[] { objSearchRootFolder };        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; requestFindFolder.FolderShape = new FolderResponseShapeType();        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; requestFindFolder.FolderShape.BaseShape = DefaultShapeNamesType.IdOnly; &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="2" face="Courier New"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; //Search filter definition       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; requestFindFolder.Restriction = new RestrictionType(); &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="2" face="Courier New"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; #region Contains expression &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="2" face="Courier New"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; ContainsExpressionType objContainsExpression = new ContainsExpressionType();       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; objContainsExpression.ContainmentMode = ContainmentModeType.FullString;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; objContainsExpression.ContainmentModeSpecified = true;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; objContainsExpression.ContainmentComparison = ContainmentComparisonType.Exact;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; objContainsExpression.ContainmentComparisonSpecified = true; &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="2" face="Courier New"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; PathToUnindexedFieldType objFieldFolderName = new PathToUnindexedFieldType();       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; objFieldFolderName.FieldURI = UnindexedFieldURIType.folderDisplayName;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; objContainsExpression.Item = objFieldFolderName; &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="2" face="Courier New"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; objContainsExpression.Constant = new ConstantValueType();       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; objContainsExpression.Constant.Value = folderName; &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="2" face="Courier New"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; #endregion Contains expression &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="2" face="Courier New"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; requestFindFolder.Restriction.Item = objContainsExpression; &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="2" face="Courier New"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; FindFolderResponseType objFindFolderResponse =       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; service.FindFolder(requestFindFolder); &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="2" face="Courier New"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if (objFindFolderResponse.ResponseMessages.Items.Length == 0)       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; return null; &lt;/font&gt;&lt;/p&gt;    &lt;p&gt;&lt;font size="2" face="Courier New"&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; foreach (ResponseMessageType responseMsg in       &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; objFindFolderResponse.ResponseMessages.Items)        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if (responseMsg.ResponseClass == ResponseClassType.Success)        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; FindFolderResponseMessageType objFindResponse =        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; responseMsg as FindFolderResponseMessageType;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; foreach (        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; BaseFolderType objFolderType in objFindResponse.RootFolder.Folders)        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; {        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; return objFolderType.FolderId;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; return null;        &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }&lt;/font&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;-f.&lt;/p&gt;&lt;img src="http://www.chapleau.info/cs/aggbug.aspx?PostID=824" width="1" height="1"&gt;</content><author><name>Frederick.Chapleau</name><uri>http://www.chapleau.info/cs/members/Frederick.Chapleau.aspx</uri></author><category term="Programming" scheme="http://www.chapleau.info/cs/blogs/fchapleau/archive/tags/Programming/default.aspx" /></entry><entry><title>SSL for  FREE</title><link rel="alternate" type="text/html" href="http://www.chapleau.info/cs/blogs/fchapleau/archive/2010/01/15/ssl-for-free.aspx" /><id>http://www.chapleau.info/cs/blogs/fchapleau/archive/2010/01/15/ssl-for-free.aspx</id><published>2010-01-15T14:45:58Z</published><updated>2010-01-15T14:45:58Z</updated><content type="html">&lt;p&gt;Yes, we can now secure servers using free certificates :)&lt;/p&gt;  &lt;p&gt;&lt;a href="http://StartSSL.com"&gt;http://StartSSL.com&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;-f.&lt;/p&gt;&lt;img src="http://www.chapleau.info/cs/aggbug.aspx?PostID=822" width="1" height="1"&gt;</content><author><name>Frederick.Chapleau</name><uri>http://www.chapleau.info/cs/members/Frederick.Chapleau.aspx</uri></author><category term="Security" scheme="http://www.chapleau.info/cs/blogs/fchapleau/archive/tags/Security/default.aspx" /></entry><entry><title>The registry on a 64bits OS using NSIS</title><link rel="alternate" type="text/html" href="http://www.chapleau.info/cs/blogs/fchapleau/archive/2010/01/13/the-registry-on-a-64bits-os-using-nsis.aspx" /><id>http://www.chapleau.info/cs/blogs/fchapleau/archive/2010/01/13/the-registry-on-a-64bits-os-using-nsis.aspx</id><published>2010-01-14T01:10:30Z</published><updated>2010-01-14T01:10:30Z</updated><content type="html">&lt;p&gt;Ok, after trying to find a patch or a work around to access the write 64 bit registry node instead of the Wow6432Node, I found a … not very documented but simple way to do it...&lt;/p&gt;  &lt;p&gt;${If} ${RunningX64}   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160; SetRegView 64    &lt;br /&gt;${EndIf} &lt;/p&gt;  &lt;p&gt;-f.&lt;/p&gt;&lt;img src="http://www.chapleau.info/cs/aggbug.aspx?PostID=821" width="1" height="1"&gt;</content><author><name>Frederick.Chapleau</name><uri>http://www.chapleau.info/cs/members/Frederick.Chapleau.aspx</uri></author><category term="Packaging" scheme="http://www.chapleau.info/cs/blogs/fchapleau/archive/tags/Packaging/default.aspx" /></entry><entry><title>FH_DATE_PAST_20XX in SpamAssassin not working in 2010</title><link rel="alternate" type="text/html" href="http://www.chapleau.info/cs/blogs/fchapleau/archive/2010/01/02/fh-date-past-20xx-in-spamassassin-not-working-in-2010.aspx" /><id>http://www.chapleau.info/cs/blogs/fchapleau/archive/2010/01/02/fh-date-past-20xx-in-spamassassin-not-working-in-2010.aspx</id><published>2010-01-02T17:26:57Z</published><updated>2010-01-02T17:26:57Z</updated><content type="html">&lt;p&gt;Yep, it was a bug, but it’s corrected now, 3 Steps to follow:&lt;/p&gt;  &lt;p&gt;1. Change the mirrors&lt;/p&gt;  &lt;p&gt;Edit the file /var/lib/spamassassin/3.002003/updates_spamassassin_org/MIRRORED_BY and add &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;a href="http://daryl.dostech.ca/sa-update/asf/"&gt;http://daryl.dostech.ca/sa-update/asf/&lt;/a&gt; weight=5      &lt;br /&gt;&lt;a href="http://www.sa-update.pccc.com/"&gt;http://www.sa-update.pccc.com/&lt;/a&gt; weight=5&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;2. Run sa-update&lt;/p&gt;  &lt;p&gt;3. Run sa-Compile&lt;/p&gt;  &lt;p&gt;… or you can simply patch it by editing the file /etc/mail/spamassassin/local.cf and add &lt;/p&gt;  &lt;pre&gt;score FH_DATE_PAST_20XX 0&lt;/pre&gt;

&lt;p&gt;And you are done :)&lt;/p&gt;

&lt;p&gt;-f.&lt;/p&gt;&lt;img src="http://www.chapleau.info/cs/aggbug.aspx?PostID=818" width="1" height="1"&gt;</content><author><name>Frederick.Chapleau</name><uri>http://www.chapleau.info/cs/members/Frederick.Chapleau.aspx</uri></author><category term="Networking" scheme="http://www.chapleau.info/cs/blogs/fchapleau/archive/tags/Networking/default.aspx" /></entry><entry><title>gPXE chaining / DHCP / TFTP / TGT / iSCSI to boot Windows 7 Diskless!</title><link rel="alternate" type="text/html" href="http://www.chapleau.info/cs/blogs/fchapleau/archive/2009/11/14/gpxe-chaining-dhcp-tftp-tgt-iscsi-to-boot-windows-7-diskless.aspx" /><id>http://www.chapleau.info/cs/blogs/fchapleau/archive/2009/11/14/gpxe-chaining-dhcp-tftp-tgt-iscsi-to-boot-windows-7-diskless.aspx</id><published>2009-11-14T19:58:03Z</published><updated>2009-11-14T19:58:03Z</updated><content type="html">&lt;p&gt;By default the LUN number is 0, when you insert in the dhcp server &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;iscsi:ServerAddress.x.com::::iqn.2009-11.com.x:test&lt;/p&gt;    &lt;p&gt;The problem is that TGT is by default assigning 0 to the controller of the iSCSI drive, and the LUN number for the device itself is 1.&lt;/p&gt;    &lt;p&gt;So you must assign the value 1 to the definition.&lt;/p&gt;    &lt;p&gt;iscsi:ServerAddress.x.com:::&lt;strong&gt;&lt;u&gt;1&lt;/u&gt;&lt;/strong&gt;:iqn.2009-11.com.x:test&lt;/p&gt;    &lt;p&gt;… if you don’t assign it, you will get error “ 0x1d704039 &amp;quot;, or PXENV_STATUS_TFTP_CANNOT_READ_FROM_CONNECTION.&lt;/p&gt;    &lt;p&gt;&amp;#160;&lt;/p&gt;    &lt;p&gt;-f.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;BTW, here is my configs…&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;dhcpd.conf&lt;/strong&gt;&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;#     &lt;br /&gt;# DHCP Server Configuration file.      &lt;br /&gt;#&amp;#160;&amp;#160; see /usr/share/doc/dhcp*/dhcpd.conf.sample      &lt;br /&gt;#      &lt;br /&gt;allow booting;      &lt;br /&gt;allow bootp; &lt;/p&gt;    &lt;p&gt;option space gpxe;     &lt;br /&gt;option gpxe.bus-id code 177 = string;      &lt;br /&gt;option gpxe-encap-opts code 175 = encapsulate gpxe;      &lt;br /&gt;option gpxe.keep-san code 8 = unsigned integer 8; &lt;/p&gt;    &lt;p&gt;subnet 10.0.0.0 netmask 255.255.255.0 {     &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; range 10.0.0.200 10.0.0.220;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; authoritative;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; next-server 10.0.0.1;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; if not exists gpxe.bus-id {      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; filename &amp;quot;gpxe.kpxe&amp;quot;;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; } else {      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; filename &amp;quot;&amp;quot;;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; option root-path &amp;quot;iscsi:10.0.0.1:::1:iqn.2009-11.com.x:test&amp;quot;;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; option gpxe.keep-san 1;      &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; }      &lt;br /&gt;}      &lt;br /&gt;ddns-update-style ad-hoc;      &lt;br /&gt;option time-servers 10.0.0.10;      &lt;br /&gt;option domain-name &amp;quot;x.com&amp;quot;;      &lt;br /&gt;option routers 10.0.0.1;      &lt;br /&gt;option ntp-servers 10.0.0.1;      &lt;br /&gt;option domain-name-servers 10.0.0.1;      &lt;br /&gt;option subnet-mask 255.255.255.0;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;&lt;strong&gt;targets.conf&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;&amp;lt;target iqn.2009-11.com.x:test&amp;gt;   &lt;br /&gt;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; backing-store /san/disk1    &lt;br /&gt;&amp;lt;/target&amp;gt;&lt;/p&gt;&lt;img src="http://www.chapleau.info/cs/aggbug.aspx?PostID=808" width="1" height="1"&gt;</content><author><name>Frederick.Chapleau</name><uri>http://www.chapleau.info/cs/members/Frederick.Chapleau.aspx</uri></author><category term="Networking" scheme="http://www.chapleau.info/cs/blogs/fchapleau/archive/tags/Networking/default.aspx" /></entry><entry><title>Configure FileStream in SQL Server 2008</title><link rel="alternate" type="text/html" href="http://www.chapleau.info/cs/blogs/fchapleau/archive/2009/10/26/configure-filestream-in-sql-server-2008.aspx" /><id>http://www.chapleau.info/cs/blogs/fchapleau/archive/2009/10/26/configure-filestream-in-sql-server-2008.aspx</id><published>2009-10-26T16:39:04Z</published><updated>2009-10-26T16:39:04Z</updated><content type="html">&lt;p&gt;It’s not only a setting in the insance properties, you must also configure it using the SQL Server Configuration Manager.&lt;/p&gt;  &lt;p&gt;I had this problem when importing the AdventureWorksCycle 2008 database, and I found this article really helpfull.&lt;/p&gt;  &lt;p&gt;ref.: &lt;a href="http://techpunch.wordpress.com/2008/08/29/how-to-enable-filestream-feature-on-sql-server-2008/"&gt;http://techpunch.wordpress.com/2008/08/29/how-to-enable-filestream-feature-on-sql-server-2008/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;-f.&lt;/p&gt;&lt;img src="http://www.chapleau.info/cs/aggbug.aspx?PostID=806" width="1" height="1"&gt;</content><author><name>Frederick.Chapleau</name><uri>http://www.chapleau.info/cs/members/Frederick.Chapleau.aspx</uri></author><category term="Integrating" scheme="http://www.chapleau.info/cs/blogs/fchapleau/archive/tags/Integrating/default.aspx" /></entry><entry><title>Using WCF Webservices in .NET 2.0</title><link rel="alternate" type="text/html" href="http://www.chapleau.info/cs/blogs/fchapleau/archive/2009/09/14/using-wcf-webservices-in-net-2-0.aspx" /><id>http://www.chapleau.info/cs/blogs/fchapleau/archive/2009/09/14/using-wcf-webservices-in-net-2-0.aspx</id><published>2009-09-14T17:00:21Z</published><updated>2009-09-14T17:00:21Z</updated><content type="html">&lt;p&gt;The default behavior of WCF Webservice is the new wsHttpBinding. This is not compatible with .NET 2.0, so to use it you must change the behavior with the basicHttpBinding.&lt;/p&gt;  &lt;p&gt;The basic one is not secured, so if it’s a critical piece, you must use it with SSL.&lt;/p&gt;  &lt;p&gt;-f.&lt;/p&gt;  &lt;p&gt;ref.: &lt;a href="http://www.slickit.ca/2009/04/wcf-using-wcf-with-net-20.html"&gt;http://www.slickit.ca/2009/04/wcf-using-wcf-with-net-20.html&lt;/a&gt;&lt;/p&gt;&lt;img src="http://www.chapleau.info/cs/aggbug.aspx?PostID=797" width="1" height="1"&gt;</content><author><name>Frederick.Chapleau</name><uri>http://www.chapleau.info/cs/members/Frederick.Chapleau.aspx</uri></author><category term="Programming" scheme="http://www.chapleau.info/cs/blogs/fchapleau/archive/tags/Programming/default.aspx" /></entry><entry><title>This collection already contains an address with scheme http.</title><link rel="alternate" type="text/html" href="http://www.chapleau.info/cs/blogs/fchapleau/archive/2009/09/12/this-collection-already-contains-an-address-with-scheme-http.aspx" /><id>http://www.chapleau.info/cs/blogs/fchapleau/archive/2009/09/12/this-collection-already-contains-an-address-with-scheme-http.aspx</id><published>2009-09-12T16:02:06Z</published><updated>2009-09-12T16:02:06Z</updated><content type="html">&lt;p&gt;When deploying a WCF service, this problem can occur&lt;/p&gt;  &lt;p&gt;&lt;i&gt;This collection already contains an address with scheme http.&amp;#160; There can be at most one address per scheme in this collection.      &lt;br /&gt;Parameter name: item&lt;/i&gt;&lt;/p&gt;  &lt;p&gt;This is caused by having multiple binding on the Website (like domain.com and &lt;a href="http://www.domain.com"&gt;www.domain.com&lt;/a&gt;).&lt;/p&gt;  &lt;p&gt;The solution was simply to add a entry in the serviceHostingEnvironment section of the web.config, check out the reference for the complete solution.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;warning&lt;/strong&gt;: this cause the server to reject everything that is not configured in the &lt;em&gt;baseAddressPrefixFilters&lt;/em&gt;.&lt;/p&gt;  &lt;p&gt;-f.&lt;/p&gt;  &lt;p&gt;ref.: &lt;a href="http://blogs.msdn.com/rampo/archive/2008/02/11/how-can-wcf-support-multiple-iis-binding-specified-per-site.aspx"&gt;http://blogs.msdn.com/rampo/archive/2008/02/11/how-can-wcf-support-multiple-iis-binding-specified-per-site.aspx&lt;/a&gt;&lt;/p&gt;&lt;img src="http://www.chapleau.info/cs/aggbug.aspx?PostID=796" width="1" height="1"&gt;</content><author><name>Frederick.Chapleau</name><uri>http://www.chapleau.info/cs/members/Frederick.Chapleau.aspx</uri></author><category term="Programming" scheme="http://www.chapleau.info/cs/blogs/fchapleau/archive/tags/Programming/default.aspx" /></entry><entry><title>404 Error when deploying a .net 3.0+ SVC File</title><link rel="alternate" type="text/html" href="http://www.chapleau.info/cs/blogs/fchapleau/archive/2009/09/12/404-error-when-deploying-a-net-3-0-svc-file.aspx" /><id>http://www.chapleau.info/cs/blogs/fchapleau/archive/2009/09/12/404-error-when-deploying-a-net-3-0-svc-file.aspx</id><published>2009-09-12T15:49:09Z</published><updated>2009-09-12T15:49:09Z</updated><content type="html">&lt;p&gt;When deploying a .NET WCF Service on IIS 7, on might have a 404 error.&lt;/p&gt;  &lt;p&gt;This is because the ScriptsMaps are not registered, issuing the following command register them, to that they can be used.&lt;/p&gt;  &lt;p&gt;c:\Windows\Microsoft.Net\Framework\v3.0\Windows Communication Foundation\servicemodelreg.exe –i&lt;/p&gt;  &lt;p&gt;-f.&lt;/p&gt;  &lt;p&gt;ref.: &lt;a href="http://forums.asp.net/t/1432444.aspx"&gt;http://forums.asp.net/t/1432444.aspx&lt;/a&gt;&lt;/p&gt;&lt;img src="http://www.chapleau.info/cs/aggbug.aspx?PostID=795" width="1" height="1"&gt;</content><author><name>Frederick.Chapleau</name><uri>http://www.chapleau.info/cs/members/Frederick.Chapleau.aspx</uri></author><category term="Programming" scheme="http://www.chapleau.info/cs/blogs/fchapleau/archive/tags/Programming/default.aspx" /></entry><entry><title>Change SQL Server Instance Name</title><link rel="alternate" type="text/html" href="http://www.chapleau.info/cs/blogs/fchapleau/archive/2009/07/20/change-sql-server-instance-name.aspx" /><id>http://www.chapleau.info/cs/blogs/fchapleau/archive/2009/07/20/change-sql-server-instance-name.aspx</id><published>2009-07-20T14:14:30Z</published><updated>2009-07-20T14:14:30Z</updated><content type="html">&lt;p&gt;After looking around a lot, I found this article that is really accurate, when you changed the server name, and not the SQL Server Instance name...&lt;/p&gt;  &lt;p&gt;&lt;a href="http://www.coderjournal.com/2008/02/how-to-change-instance-name-of-sql-server/"&gt;http://www.coderjournal.com/2008/02/how-to-change-instance-name-of-sql-server/&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;-f.&lt;/p&gt;&lt;img src="http://www.chapleau.info/cs/aggbug.aspx?PostID=750" width="1" height="1"&gt;</content><author><name>Frederick.Chapleau</name><uri>http://www.chapleau.info/cs/members/Frederick.Chapleau.aspx</uri></author><category term="DBA" scheme="http://www.chapleau.info/cs/blogs/fchapleau/archive/tags/DBA/default.aspx" /></entry><entry><title>The log cannot be rebuilt when the primary file is read-only.</title><link rel="alternate" type="text/html" href="http://www.chapleau.info/cs/blogs/fchapleau/archive/2009/07/08/the-log-cannot-be-rebuilt-when-the-primary-file-is-read-only.aspx" /><id>http://www.chapleau.info/cs/blogs/fchapleau/archive/2009/07/08/the-log-cannot-be-rebuilt-when-the-primary-file-is-read-only.aspx</id><published>2009-07-08T22:27:08Z</published><updated>2009-07-08T22:27:08Z</updated><content type="html">&lt;p&gt;When mounting a SQL Server Express Database, the SQL Server Express engine is trying to rebuild the log files, using the same permissions as the AppPool that is configured for the website. So this account should have access to the underneath file system. Try giving Network Service Account read/write permissions on the App_Data folder...&lt;/p&gt;  &lt;p&gt;-f.&lt;/p&gt;&lt;img src="http://www.chapleau.info/cs/aggbug.aspx?PostID=745" width="1" height="1"&gt;</content><author><name>Frederick.Chapleau</name><uri>http://www.chapleau.info/cs/members/Frederick.Chapleau.aspx</uri></author><category term="Programming" scheme="http://www.chapleau.info/cs/blogs/fchapleau/archive/tags/Programming/default.aspx" /></entry><entry><title>cannot generate sspi context. .net sqlclient data provider</title><link rel="alternate" type="text/html" href="http://www.chapleau.info/cs/blogs/fchapleau/archive/2009/07/08/cannot-generate-sspi-context-net-sqlclient-data-provider.aspx" /><id>http://www.chapleau.info/cs/blogs/fchapleau/archive/2009/07/08/cannot-generate-sspi-context-net-sqlclient-data-provider.aspx</id><published>2009-07-08T17:38:58Z</published><updated>2009-07-08T17:38:58Z</updated><content type="html">&lt;p&gt;I had this, and found a lot of posts for it... here is an other “simple” solution: change de provider name to Named Pipe, it this case the SSPI context is generating correctly.&lt;/p&gt;  &lt;p&gt;-f.&lt;/p&gt;&lt;img src="http://www.chapleau.info/cs/aggbug.aspx?PostID=740" width="1" height="1"&gt;</content><author><name>Frederick.Chapleau</name><uri>http://www.chapleau.info/cs/members/Frederick.Chapleau.aspx</uri></author><category term="DBA" scheme="http://www.chapleau.info/cs/blogs/fchapleau/archive/tags/DBA/default.aspx" /></entry><entry><title>DNS Error when activating Windows 2008</title><link rel="alternate" type="text/html" href="http://www.chapleau.info/cs/blogs/fchapleau/archive/2009/07/07/dns-error-when-activating-windows-2008.aspx" /><id>http://www.chapleau.info/cs/blogs/fchapleau/archive/2009/07/07/dns-error-when-activating-windows-2008.aspx</id><published>2009-07-07T17:00:47Z</published><updated>2009-07-07T17:00:47Z</updated><content type="html">&lt;p&gt;If you receive this error when activating Windows 2008, change the product key to use a MAK product key (I think it’s a volumen license key) and not a MSDN product key (RTL).&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;Windows Activation Error     &lt;br /&gt;A problem occurred when Windows tried to activate. Error Code 0x8007232B.      &lt;br /&gt;For a possible resolution, click More Information.      &lt;br /&gt;Contact your system administratior or technical support department for      &lt;br /&gt;assistance.      &lt;br /&gt;More Information says -&amp;gt; Code: 0x8007232B, Description: DNS name does not      &lt;br /&gt;exists.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;-f.&lt;/p&gt;&lt;img src="http://www.chapleau.info/cs/aggbug.aspx?PostID=737" width="1" height="1"&gt;</content><author><name>Frederick.Chapleau</name><uri>http://www.chapleau.info/cs/members/Frederick.Chapleau.aspx</uri></author><category term="Networking" scheme="http://www.chapleau.info/cs/blogs/fchapleau/archive/tags/Networking/default.aspx" /></entry></feed>