<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Wiz/dumb : Exchange</title><link>http://blogs.msdn.com/pcreehan/archive/tags/Exchange/default.aspx</link><description>Tags: Exchange</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Parsing ServerVersion: When an Int Is Really 5 Ints</title><link>http://blogs.msdn.com/pcreehan/archive/2009/09/21/parsing-serverversion-when-an-int-is-really-5-ints.aspx</link><pubDate>Mon, 21 Sep 2009 18:45:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9897561</guid><dc:creator>Patrick Creehan</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/pcreehan/comments/9897561.aspx</comments><wfw:commentRss>http://blogs.msdn.com/pcreehan/commentrss.aspx?PostID=9897561</wfw:commentRss><description>&lt;p&gt;I recently had a case where a customer was asking how to figure out the mailbox version of a given user using Exchange Web Services (EWS). We noticed there is a node returned in the AutoDiscover response message called ServerVersion, but this value seems pretty opaque. Here’s a snippet from the AutoDiscover POX response from my test server:&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;div style="padding-bottom: 5px; padding-left: 5px; padding-right: 5px; padding-top: 5px" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:5db1e74e-106d-4e32-a475-a93a8a216f5f" class="wlWriterEditableSmartContent"&gt;
&lt;div style="border: #000080 1px solid; font-family: 'Courier New', Courier, Monospace; font-size: 10pt"&gt;
&lt;div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px; white-space: nowrap"&gt;
&lt;p&gt;  &lt;span style="color:#0000ff"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;Protocol&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt; &lt;span style="color:#0000ff"&gt;  &amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;Type&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;EXCH&lt;span style="color:#0000ff"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;Type&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt; &lt;span style="color:#0000ff"&gt;  &amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;Server&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;MAILBOXEX7.domain.com&lt;span style="color:#0000ff"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;Server&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt; &lt;span style="color:#0000ff"&gt;  &amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;ServerDN&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;/o=First Organization/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=MAILBOXEX7&lt;span style="color:#0000ff"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;ServerDN&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt; &lt;span style="color:#0000ff"&gt;  &amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;ServerVersion&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;720280B0&lt;span style="color:#0000ff"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;ServerVersion&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt; &lt;span style="color:#0000ff"&gt;  &amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;MdbDN&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;/o=First Organization/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=MAILBOXEX7/cn=Microsoft Private MDB&lt;span style="color:#0000ff"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;MdbDN&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt; &lt;span style="color:#0000ff"&gt;  &amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;PublicFolderServer&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;MAILBOXEX7.domain.com&lt;span style="color:#0000ff"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;PublicFolderServer&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt; &lt;span style="color:#0000ff"&gt;  &amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;AD&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;domainDC.domain.com&lt;span style="color:#0000ff"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;AD&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt; &lt;span style="color:#0000ff"&gt;  &amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;ASUrl&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;https://casserver.domain.com/EWS/Exchange.asmx&lt;span style="color:#0000ff"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;ASUrl&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt; &lt;span style="color:#0000ff"&gt;  &amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;EwsUrl&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;https://casserver.domain.com/EWS/Exchange.asmx&lt;span style="color:#0000ff"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;EwsUrl&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt; &lt;span style="color:#0000ff"&gt;  &amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;OOFUrl&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;https://casserver.domain.com/EWS/Exchange.asmx&lt;span style="color:#0000ff"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;OOFUrl&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt; &lt;span style="color:#0000ff"&gt;  &amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;UMUrl&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;https://casserver.domain.com/UnifiedMessaging/Service.asmx&lt;span style="color:#0000ff"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;UMUrl&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt; &lt;span style="color:#0000ff"&gt;  &amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;OABUrl&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;https://casserver/OAB/4c44408b-66b7-42d9-8247-316fca26961c/&lt;span style="color:#0000ff"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;OABUrl&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt; &lt;span style="color:#0000ff"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;Protocol&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;
&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;  &lt;p&gt;The ServerVersion value returned in AutoDiscover is a 32-bit integer value represented in hexidecimal format (720280B0). The integer by itself doesn’t mean anything. It turns out, this integer is really a serialized structure. Here’s how it breaks down: &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;0x720280B0 (or 1912766640 in decimal) represented in binary is 01110010000000101000000010110000. If we break this binary chunk up into 5 pieces, we’ll see the structure we are after:&lt;/p&gt;  &lt;p&gt;0111&amp;#160; 001000&amp;#160; 000010&amp;#160; 1&amp;#160; 000000010110000&lt;/p&gt;  &lt;p&gt;0111&amp;#160; (7) - The first 4 bits represent a number used for comparison against older version number structures. You can ignore this.&lt;/p&gt;  &lt;p&gt;001000 (8) – The next 6 bits represent the major version number.&lt;/p&gt;  &lt;p&gt;000010 (2) – The next 6 bits represent the minor version number.&lt;/p&gt;  &lt;p&gt;1 (1) – This bit is just a flag that you can ignore.&lt;/p&gt;  &lt;p&gt;000000010110000 (176) – The last 15 bits is the build number.&lt;/p&gt;  &lt;p&gt;So I can see that my server is running build 08.02.0176.&lt;/p&gt;  &lt;p&gt;To parse this value in code is quite easy if you use the binary shift operators. The following sample is in C#, but similar constructs exist in most languages. GetServerVersionIntFromString simply gets the ServerVersion value from the AutoDiscover response body and converts the string value “720280B0” into an unisigned integer using UInt32.Parse&lt;/p&gt;  &lt;p&gt;&lt;font face="Courier New"&gt;&lt;span style="color: #2b91af"&gt;UInt32 &lt;/span&gt;intServerVersion = GetServerVersionIntFromString(sb);       &lt;br /&gt;      &lt;br /&gt;&lt;span style="color: blue"&gt;uint &lt;/span&gt;build = intServerVersion &amp;amp; 0x7FFF; &lt;/font&gt;&lt;font face="Courier New"&gt;&lt;span style="color: green"&gt;//get bottom 15 bits        &lt;br /&gt;&lt;/span&gt;&lt;span style="color: blue"&gt;uint &lt;/span&gt;minor = (intServerVersion &amp;gt;&amp;gt; 16) &amp;amp; 0x3F; &lt;/font&gt;&lt;font face="Courier New"&gt;&lt;span style="color: green"&gt;//get 6 bits from 16 bits in        &lt;br /&gt;&lt;/span&gt;&lt;span style="color: blue"&gt;uint &lt;/span&gt;major = (intServerVersion &amp;gt;&amp;gt; 22) &amp;amp; 0x3F; &lt;/font&gt;&lt;span style="color: green"&gt;&lt;font face="Courier New"&gt;//gets 6 bits from 22 bits in        &lt;br /&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;I should point out that in Exchange 2010 and above, a new AutoDiscover option is being made available – AutoDiscover SOAP. If you know you will be targeting an Exchange 2010 server, you can use the SOAP AutoDiscover calls which can return you the server major and minor build numbers in a more easily consumable format.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;div style="padding-bottom: 5px; padding-left: 5px; width: 519px; padding-right: 5px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 5px" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:6c070350-cc31-48b0-9bdc-d676beaef6b4" class="wlWriterEditableSmartContent"&gt;
&lt;div style="border: #000080 1px solid; font-family: 'Courier New', Courier, Monospace; font-size: 10pt"&gt;
&lt;div style="background-color: #ffffff; max-height: 300px; overflow: auto; padding: 2px 5px; white-space: nowrap"&gt;
&lt;p&gt;  &lt;span style="color:#0000ff"&gt;&amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;s:Header&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt; &lt;span style="color:#0000ff"&gt;  &amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;a:Action&lt;/span&gt;&lt;span style="color:#0000ff"&gt; &lt;/span&gt;&lt;span style="color:#ff0000"&gt;s:mustUnderstand&lt;/span&gt;&lt;span style="color:#0000ff"&gt;=&lt;/span&gt;"&lt;span style="color:#0000ff"&gt;1&lt;/span&gt;"&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;http://schemas.microsoft.com/exchange/2010/Autodiscover/Autodiscover/GetUserSettingsResponse&lt;span style="color:#0000ff"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;a:Action&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt; &lt;span style="color:#0000ff"&gt;  &amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;h:ServerVersionInfo&lt;/span&gt;&lt;span style="color:#0000ff"&gt; &lt;/span&gt;&lt;span style="color:#ff0000"&gt;xmlns:h&lt;/span&gt;&lt;span style="color:#0000ff"&gt;=&lt;/span&gt;"&lt;span style="color:#0000ff"&gt;http://schemas.microsoft.com/exchange/2010/Autodiscover&lt;/span&gt;"&lt;span style="color:#0000ff"&gt; &lt;/span&gt;&lt;span style="color:#ff0000"&gt;xmlns:i&lt;/span&gt;&lt;span style="color:#0000ff"&gt;=&lt;/span&gt;"&lt;span style="color:#0000ff"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/span&gt;"&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt; &lt;span style="color:#0000ff"&gt;    &amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;h:MajorVersion&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;14&lt;span style="color:#0000ff"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;h:MajorVersion&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt; &lt;span style="color:#0000ff"&gt;    &amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;h:MinorVersion&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;0&lt;span style="color:#0000ff"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;h:MinorVersion&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt; &lt;span style="color:#0000ff"&gt;    &amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;h:MajorBuildNumber&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;639&lt;span style="color:#0000ff"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;h:MajorBuildNumber&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt; &lt;span style="color:#0000ff"&gt;    &amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;h:MinorBuildNumber&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;20&lt;span style="color:#0000ff"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;h:MinorBuildNumber&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt; &lt;span style="color:#0000ff"&gt;    &amp;lt;&lt;/span&gt;&lt;span style="color:#a31515"&gt;h:Version&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;Exchange2010&lt;span style="color:#0000ff"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;h:Version&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt; &lt;span style="color:#0000ff"&gt;  &amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;h:ServerVersionInfo&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt; &lt;span style="color:#0000ff"&gt;&amp;lt;/&lt;/span&gt;&lt;span style="color:#a31515"&gt;s:Header&lt;/span&gt;&lt;span style="color:#0000ff"&gt;&amp;gt;&lt;/span&gt;
&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9897561" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange/default.aspx">Exchange</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/.NET/default.aspx">.NET</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange+2007/default.aspx">Exchange 2007</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange+Web+Services+_2800_EWS_2900_/default.aspx">Exchange Web Services (EWS)</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/DevMsgTeam/default.aspx">DevMsgTeam</category></item><item><title>Line Breaks in Managed Web Service Proxy Classes</title><link>http://blogs.msdn.com/pcreehan/archive/2009/07/22/line-breaks-in-managed-web-service-proxy-classes.aspx</link><pubDate>Wed, 22 Jul 2009 16:00:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9844004</guid><dc:creator>Patrick Creehan</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/pcreehan/comments/9844004.aspx</comments><wfw:commentRss>http://blogs.msdn.com/pcreehan/commentrss.aspx?PostID=9844004</wfw:commentRss><description>&lt;p&gt;&lt;a href="http://blogs.msdn.com/mstehle" target="_blank"&gt;Matt&lt;/a&gt;, &lt;a href="http://blogs.msdn.com/rickhall/" target="_blank"&gt;Rick&lt;/a&gt;, and I were working on an issue recently where when an application using EWS would set a contact’s Street address to a value containing a carriage return and line feed, like this:&lt;/p&gt;  &lt;div style="padding-bottom: 5px; padding-left: 5px; width: 519px; padding-right: 5px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 5px" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:e582ef6a-2f57-44bf-9a0d-0a69c46a7e60" class="wlWriterEditableSmartContent"&gt;
&lt;div style="border: #000080 1px solid; font-family: 'Courier New', Courier, Monospace; font-size: 10pt"&gt;
&lt;div style="background-color: #ffffff; max-height: auto; overflow: scroll; padding: 2px 5px; white-space: nowrap"&gt;
&lt;p&gt;  physicalAddress.Street = &lt;span style="color:#a31515"&gt;"1234 56 Ave NE&amp;#92;r&amp;#92;nc/oPatrick Creehan"&lt;/span&gt;;
&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;  &lt;p&gt;the address card control in Outlook would render it like this:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/pcreehan/WindowsLiveWriter/LineBreaksinManagedWebServiceProxyClasse_FFB2/image_2.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/pcreehan/WindowsLiveWriter/LineBreaksinManagedWebServiceProxyClasse_FFB2/image_thumb.png" width="244" height="168" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Ugly, right? The problem was that the XMLSerializer would strip out the line feed and leave the carriage return, which the address card didn’t like.&lt;/p&gt;  &lt;p&gt;We could prove by sending raw XML requests in a separate application that sending &amp;amp;#x0d;&amp;amp;#x0a; for the carriage return line feed would make everything right, however, if we set the street address like this:&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;div style="padding-bottom: 5px; padding-left: 5px; width: 519px; padding-right: 5px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 5px" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:1fc5c445-38f8-4f60-b627-4423e203f45f" class="wlWriterEditableSmartContent"&gt;
&lt;div style="border: #000080 1px solid; font-family: 'Courier New', Courier, Monospace; font-size: 10pt"&gt;
&lt;div style="background-color: #ffffff; max-height: auto; overflow: scroll; padding: 2px 5px; white-space: nowrap"&gt;
&lt;p&gt;  physicalAddress.Street = &lt;span style="color:#a31515"&gt;"1234 56 Ave NE&amp;amp;#x0d;&amp;amp;#x0a;c/oPatrick Creehan"&lt;/span&gt;;
&lt;/p&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;  &lt;p&gt;then the contact’s address card would look like this:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/pcreehan/WindowsLiveWriter/LineBreaksinManagedWebServiceProxyClasse_FFB2/image_4.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/pcreehan/WindowsLiveWriter/LineBreaksinManagedWebServiceProxyClasse_FFB2/image_thumb_1.png" width="244" height="170" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;Even uglier! It seems that the .net framework, in an attempt to help us out is encoding our string for XML but it wasn’t letting us specify the value we knew was right.&lt;/p&gt;  &lt;p&gt;So – the solution is to implement your own class which can handle the XmlSerialization yourself, and replace the auto-generated proxy class’s decision for the type to yours.&lt;/p&gt;  &lt;p&gt;Here’s my simple class:&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;div style="padding-bottom: 5px; padding-left: 5px; width: 519px; padding-right: 5px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 5px" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:627acf82-aa7a-47c3-958e-2293295323ee" class="wlWriterEditableSmartContent"&gt;
&lt;div style="border: #000080 1px solid; font-family: 'Courier New', Courier, Monospace; font-size: 10pt"&gt;
&lt;div style="background: #ddd; max-height: 300px; overflow: scroll; padding: 0"&gt;
&lt;ol style="background: #ffffff; margin: 0 0 0 35px; white-space: nowrap"&gt;
&lt;li&gt;     [&lt;span style="color:#2b91af"&gt;SoapTypeAttribute&lt;/span&gt;(Namespace = &lt;span style="color:#a31515"&gt;"http://schemas.microsoft.com/exchange/services/2006/types"&lt;/span&gt;,TypeName=&lt;span style="color:#a31515"&gt;"text"&lt;/span&gt;)]&lt;/li&gt;&lt;li&gt;     &lt;span style="color:#0000ff"&gt;public&lt;/span&gt; &lt;span style="color:#0000ff"&gt;class&lt;/span&gt; &lt;span style="color:#2b91af"&gt;mstring&lt;/span&gt;:&lt;span style="color:#2b91af"&gt;IXmlSerializable&lt;/span&gt;   &lt;/li&gt;&lt;li&gt;     {&lt;/li&gt;&lt;li&gt;         &lt;span style="color:#0000ff"&gt;private&lt;/span&gt; &lt;span style="color:#0000ff"&gt;string&lt;/span&gt; m_string = &lt;span style="color:#0000ff"&gt;string&lt;/span&gt;.Empty;&lt;/li&gt;&lt;li&gt; &lt;/li&gt;&lt;li&gt;         &lt;span style="color:#0000ff"&gt;public&lt;/span&gt; &lt;span style="color:#0000ff"&gt;override&lt;/span&gt; &lt;span style="color:#0000ff"&gt;string&lt;/span&gt; ToString()&lt;/li&gt;&lt;li&gt;         {&lt;/li&gt;&lt;li&gt;             &lt;span style="color:#0000ff"&gt;return&lt;/span&gt; m_string;&lt;/li&gt;&lt;li&gt;         }&lt;/li&gt;&lt;li&gt;         &lt;/li&gt;&lt;li&gt;  &lt;/li&gt;&lt;li&gt;         &lt;span style="color:#0000ff"&gt;public&lt;/span&gt; &lt;span style="color:#0000ff"&gt;static&lt;/span&gt; &lt;span style="color:#2b91af"&gt;mstring&lt;/span&gt; CreateMString(&lt;span style="color:#0000ff"&gt;string&lt;/span&gt; str){&lt;/li&gt;&lt;li&gt;             &lt;span style="color:#2b91af"&gt;mstring&lt;/span&gt; newmstring = &lt;span style="color:#0000ff"&gt;new&lt;/span&gt; &lt;span style="color:#2b91af"&gt;mstring&lt;/span&gt;();&lt;/li&gt;&lt;li&gt;             newmstring.m_string = str;&lt;/li&gt;&lt;li&gt;             &lt;span style="color:#0000ff"&gt;return&lt;/span&gt; newmstring;&lt;/li&gt;&lt;li&gt;         }&lt;/li&gt;&lt;li&gt; &lt;/li&gt;&lt;li&gt;         &lt;span style="color:#0000ff"&gt;public&lt;/span&gt; &lt;span style="color:#0000ff"&gt;static&lt;/span&gt; &lt;span style="color:#0000ff"&gt;implicit&lt;/span&gt; &lt;span style="color:#0000ff"&gt;operator&lt;/span&gt; &lt;span style="color:#2b91af"&gt;mstring&lt;/span&gt;(&lt;span style="color:#0000ff"&gt;string&lt;/span&gt; str)&lt;/li&gt;&lt;li&gt;         {&lt;/li&gt;&lt;li&gt;             &lt;span style="color:#0000ff"&gt;return&lt;/span&gt; CreateMString(str);&lt;/li&gt;&lt;li&gt;         }&lt;/li&gt;&lt;li&gt; &lt;/li&gt;&lt;li&gt; &lt;/li&gt;&lt;li&gt; &lt;span style="color:#0000ff"&gt;        #region&lt;/span&gt; IXmlSerializable Members&lt;/li&gt;&lt;li&gt; &lt;/li&gt;&lt;li&gt;         &lt;span style="color:#0000ff"&gt;public&lt;/span&gt; System.Xml.Schema.&lt;span style="color:#2b91af"&gt;XmlSchema&lt;/span&gt; GetSchema()&lt;/li&gt;&lt;li&gt;         {&lt;/li&gt;&lt;li&gt;             &lt;span style="color:#0000ff"&gt;return&lt;/span&gt; &lt;span style="color:#0000ff"&gt;new&lt;/span&gt; System.Xml.Schema.&lt;span style="color:#2b91af"&gt;XmlSchema&lt;/span&gt;();&lt;/li&gt;&lt;li&gt;         }&lt;/li&gt;&lt;li&gt; &lt;/li&gt;&lt;li&gt;         &lt;span style="color:#0000ff"&gt;public&lt;/span&gt; &lt;span style="color:#0000ff"&gt;void&lt;/span&gt; ReadXml(&lt;span style="color:#2b91af"&gt;XmlReader&lt;/span&gt; reader)&lt;/li&gt;&lt;li&gt;         {&lt;/li&gt;&lt;li&gt;             m_string = reader.ReadContentAsString();&lt;/li&gt;&lt;li&gt;         }&lt;/li&gt;&lt;li&gt; &lt;/li&gt;&lt;li&gt;         &lt;span style="color:#0000ff"&gt;public&lt;/span&gt; &lt;span style="color:#0000ff"&gt;void&lt;/span&gt; WriteXml(&lt;span style="color:#2b91af"&gt;XmlWriter&lt;/span&gt; writer)&lt;/li&gt;&lt;li&gt;         {&lt;/li&gt;&lt;li&gt;             &lt;span style="color:#0000ff"&gt;string&lt;/span&gt; outString = m_string;&lt;/li&gt;&lt;li&gt;             outString = &lt;span style="color:#2b91af"&gt;HttpUtility&lt;/span&gt;.HtmlEncode(outString);&lt;/li&gt;&lt;li&gt; &lt;/li&gt;&lt;li&gt;             outString = outString.Replace(&lt;span style="color:#a31515"&gt;"&amp;#92;r"&lt;/span&gt;, &lt;span style="color:#a31515"&gt;"&amp;amp;#x0d;"&lt;/span&gt;);&lt;/li&gt;&lt;li&gt;             outString = outString.Replace(&lt;span style="color:#a31515"&gt;"&amp;#92;n"&lt;/span&gt;, &lt;span style="color:#a31515"&gt;"&amp;amp;#x0a;"&lt;/span&gt;);&lt;/li&gt;&lt;li&gt; &lt;/li&gt;&lt;li&gt;             writer.WriteRaw(outString.ToString());&lt;/li&gt;&lt;li&gt;         \&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;A few things to point out is that I decorated this class with the XML namespace for the Exchange Web Services so that it doesn’t fail schema validation. Also, I didn’t really test whether this works when binding to an existing contact – there may be more work needed in the ReadXML section. In order to support still setting the Street property to a string, I had to override the implicit operator. That allows me to set Street to a string even though technically, now Street is an “mstring.” You’ll notice that the work of actually writing the correct value occurs in WriteXml which we got by implementing IXmlSerializable. Now when the SOAP infrastructure goes to build the request, it will call into our interface to serialize this class.&lt;/p&gt;  &lt;p&gt;That reminds me, the last thing you need to do to hook all this up is to go into the web service proxy class Reference.cs and modify the PhysicalAddressDictionaryEntryType so the street properties use your new mstring class instead of string:&lt;/p&gt;  &lt;div style="padding-bottom: 5px; padding-left: 5px; width: 519px; padding-right: 5px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 5px" id="scid:9ce6104f-a9aa-4a17-a79f-3a39532ebf7c:c8541ccf-1be2-4f5d-a2d5-246bbfb5f0cc" class="wlWriterEditableSmartContent"&gt;
&lt;div style="border: #000080 1px solid; font-family: 'Courier New', Courier, Monospace; font-size: 10pt"&gt;
&lt;div style="background: #ddd; max-height: 300px; overflow: scroll; padding: 0"&gt;
&lt;ol style="background: #ffffff; margin: 0 0 0 35px; white-space: nowrap"&gt;
&lt;li&gt;     &lt;span style="color:#808080"&gt;///&lt;/span&gt;&lt;span style="color:#008000"&gt; &lt;/span&gt;&lt;span style="color:#808080"&gt;&amp;lt;remarks/&amp;gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;     [System.CodeDom.Compiler.&lt;span style="color:#2b91af"&gt;GeneratedCodeAttribute&lt;/span&gt;(&lt;span style="color:#a31515"&gt;"System.Xml"&lt;/span&gt;, &lt;span style="color:#a31515"&gt;"2.0.50727.4918"&lt;/span&gt;)]&lt;/li&gt;&lt;li&gt;     [System.&lt;span style="color:#2b91af"&gt;SerializableAttribute&lt;/span&gt;()]&lt;/li&gt;&lt;li&gt;     [System.Diagnostics.&lt;span style="color:#2b91af"&gt;DebuggerStepThroughAttribute&lt;/span&gt;()]&lt;/li&gt;&lt;li&gt;     [System.ComponentModel.&lt;span style="color:#2b91af"&gt;DesignerCategoryAttribute&lt;/span&gt;(&lt;span style="color:#a31515"&gt;"code"&lt;/span&gt;)]&lt;/li&gt;&lt;li&gt;     [System.Xml.Serialization.&lt;span style="color:#2b91af"&gt;XmlTypeAttribute&lt;/span&gt;(Namespace=&lt;span style="color:#a31515"&gt;"http://schemas.microsoft.com/exchange/services/2006/types"&lt;/span&gt;)]&lt;/li&gt;&lt;li&gt;     &lt;span style="color:#0000ff"&gt;public&lt;/span&gt; &lt;span style="color:#0000ff"&gt;partial&lt;/span&gt; &lt;span style="color:#0000ff"&gt;class&lt;/span&gt; &lt;span style="color:#2b91af"&gt;PhysicalAddressDictionaryEntryType&lt;/span&gt; {&lt;/li&gt;&lt;li&gt;         &lt;/li&gt;&lt;li&gt;         &lt;span style="color:#0000ff"&gt;private&lt;/span&gt; &lt;span style="color:#2b91af"&gt;mstring&lt;/span&gt; streetField;&lt;/li&gt;&lt;li&gt;         &lt;/li&gt;&lt;li&gt;         &lt;span style="color:#0000ff"&gt;private&lt;/span&gt; &lt;span style="color:#0000ff"&gt;string&lt;/span&gt; cityField;&lt;/li&gt;&lt;li&gt;         &lt;/li&gt;&lt;li&gt;         &lt;span style="color:#0000ff"&gt;private&lt;/span&gt; &lt;span style="color:#0000ff"&gt;string&lt;/span&gt; stateField;&lt;/li&gt;&lt;li&gt;         &lt;/li&gt;&lt;li&gt;         &lt;span style="color:#0000ff"&gt;private&lt;/span&gt; &lt;span style="color:#0000ff"&gt;string&lt;/span&gt; countryOrRegionField;&lt;/li&gt;&lt;li&gt;         &lt;/li&gt;&lt;li&gt;         &lt;span style="color:#0000ff"&gt;private&lt;/span&gt; &lt;span style="color:#0000ff"&gt;string&lt;/span&gt; postalCodeField;&lt;/li&gt;&lt;li&gt;         &lt;/li&gt;&lt;li&gt;         &lt;span style="color:#0000ff"&gt;private&lt;/span&gt; &lt;span style="color:#2b91af"&gt;PhysicalAddressKeyType&lt;/span&gt; keyField;&lt;/li&gt;&lt;li&gt;         &lt;/li&gt;&lt;li&gt;         &lt;span style="color:#808080"&gt;///&lt;/span&gt;&lt;span style="color:#008000"&gt; &lt;/span&gt;&lt;span style="color:#808080"&gt;&amp;lt;remarks/&amp;gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;         &lt;span style="color:#0000ff"&gt;public&lt;/span&gt; &lt;span style="color:#2b91af"&gt;mstring&lt;/span&gt; Street {&lt;/li&gt;&lt;li&gt;             &lt;span style="color:#0000ff"&gt;get&lt;/span&gt; {&lt;/li&gt;&lt;li&gt;                 &lt;span style="color:#0000ff"&gt;return&lt;/span&gt; &lt;span style="color:#0000ff"&gt;this&lt;/span&gt;.streetField;&lt;/li&gt;&lt;li&gt;             }&lt;/li&gt;&lt;li&gt;             &lt;span style="color:#0000ff"&gt;set&lt;/span&gt; {&lt;/li&gt;&lt;li&gt;                 &lt;span style="color:#0000ff"&gt;this&lt;/span&gt;.streetField = &lt;span style="color:#0000ff"&gt;value&lt;/span&gt;;&lt;/li&gt;&lt;li&gt;             }&lt;/li&gt;&lt;li&gt;         }&lt;/li&gt;&lt;li&gt; &lt;/li&gt;&lt;li&gt;         &lt;span style="color:#808080"&gt;///&lt;/span&gt;&lt;span style="color:#008000"&gt; &lt;/span&gt;&lt;span style="color:#808080"&gt;&amp;lt;remarks/&amp;gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;         &lt;span style="color:#0000ff"&gt;public&lt;/span&gt; &lt;span style="color:#0000ff"&gt;string&lt;/span&gt; City {&lt;/li&gt;&lt;li&gt;             &lt;span style="color:#0000ff"&gt;get&lt;/span&gt; {&lt;/li&gt;&lt;li&gt;                 &lt;span style="color:#0000ff"&gt;return&lt;/span&gt; &lt;span style="color:#0000ff"&gt;this&lt;/span&gt;.cityField;&lt;/li&gt;&lt;li&gt;             }&lt;/li&gt;&lt;li&gt;             &lt;span style="color:#0000ff"&gt;set&lt;/span&gt; {&lt;/li&gt;&lt;li&gt;                 &lt;span style="color:#0000ff"&gt;this&lt;/span&gt;.cityField = &lt;span style="color:#0000ff"&gt;value&lt;/span&gt;;&lt;/li&gt;&lt;li&gt;             }&lt;/li&gt;&lt;li&gt;         }&lt;/li&gt;&lt;li&gt;         &lt;/li&gt;&lt;li&gt;         &lt;span style="color:#808080"&gt;///&lt;/span&gt;&lt;span style="color:#008000"&gt; &lt;/span&gt;&lt;span style="color:#808080"&gt;&amp;lt;remarks/&amp;gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;         &lt;span style="color:#0000ff"&gt;public&lt;/span&gt; &lt;span style="color:#0000ff"&gt;string&lt;/span&gt; State {&lt;/li&gt;&lt;li&gt;             &lt;span style="color:#0000ff"&gt;get&lt;/span&gt; {&lt;/li&gt;&lt;li&gt;                 &lt;span style="color:#0000ff"&gt;return&lt;/span&gt; &lt;span style="color:#0000ff"&gt;this&lt;/span&gt;.stateField;&lt;/li&gt;&lt;li&gt;             }&lt;/li&gt;&lt;li&gt;             &lt;span style="color:#0000ff"&gt;set&lt;/span&gt; {&lt;/li&gt;&lt;li&gt;                 &lt;span style="color:#0000ff"&gt;this&lt;/span&gt;.stateField = &lt;span style="color:#0000ff"&gt;value&lt;/span&gt;;&lt;/li&gt;&lt;li&gt;             }&lt;/li&gt;&lt;li&gt;         }&lt;/li&gt;&lt;li&gt;         &lt;/li&gt;&lt;li&gt;         &lt;span style="color:#808080"&gt;///&lt;/span&gt;&lt;span style="color:#008000"&gt; &lt;/span&gt;&lt;span style="color:#808080"&gt;&amp;lt;remarks/&amp;gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;         &lt;span style="color:#0000ff"&gt;public&lt;/span&gt; &lt;span style="color:#0000ff"&gt;string&lt;/span&gt; CountryOrRegion {&lt;/li&gt;&lt;li&gt;             &lt;span style="color:#0000ff"&gt;get&lt;/span&gt; {&lt;/li&gt;&lt;li&gt;                 &lt;span style="color:#0000ff"&gt;return&lt;/span&gt; &lt;span style="color:#0000ff"&gt;this&lt;/span&gt;.countryOrRegionField;&lt;/li&gt;&lt;li&gt;             }&lt;/li&gt;&lt;li&gt;             &lt;span style="color:#0000ff"&gt;set&lt;/span&gt; {&lt;/li&gt;&lt;li&gt;                 &lt;span style="color:#0000ff"&gt;this&lt;/span&gt;.countryOrRegionField = &lt;span style="color:#0000ff"&gt;value&lt;/span&gt;;&lt;/li&gt;&lt;li&gt;             }&lt;/li&gt;&lt;li&gt;         }&lt;/li&gt;&lt;li&gt;         &lt;/li&gt;&lt;li&gt;         &lt;span style="color:#808080"&gt;///&lt;/span&gt;&lt;span style="color:#008000"&gt; &lt;/span&gt;&lt;span style="color:#808080"&gt;&amp;lt;remarks/&amp;gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;         &lt;span style="color:#0000ff"&gt;public&lt;/span&gt; &lt;span style="color:#0000ff"&gt;string&lt;/span&gt; PostalCode {&lt;/li&gt;&lt;li&gt;             &lt;span style="color:#0000ff"&gt;get&lt;/span&gt; {&lt;/li&gt;&lt;li&gt;                 &lt;span style="color:#0000ff"&gt;return&lt;/span&gt; &lt;span style="color:#0000ff"&gt;this&lt;/span&gt;.postalCodeField;&lt;/li&gt;&lt;li&gt;             }&lt;/li&gt;&lt;li&gt;             &lt;span style="color:#0000ff"&gt;set&lt;/span&gt; {&lt;/li&gt;&lt;li&gt;                 &lt;span style="color:#0000ff"&gt;this&lt;/span&gt;.postalCodeField = &lt;span style="color:#0000ff"&gt;value&lt;/span&gt;;&lt;/li&gt;&lt;li&gt;             }&lt;/li&gt;&lt;li&gt;         }&lt;/li&gt;&lt;li&gt;         &lt;/li&gt;&lt;li&gt;         &lt;span style="color:#808080"&gt;///&lt;/span&gt;&lt;span style="color:#008000"&gt; &lt;/span&gt;&lt;span style="color:#808080"&gt;&amp;lt;remarks/&amp;gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;         [System.Xml.Serialization.&lt;span style="color:#2b91af"&gt;XmlAttributeAttribute&lt;/span&gt;()]&lt;/li&gt;&lt;li&gt;         &lt;span style="color:#0000ff"&gt;public&lt;/span&gt; &lt;span style="color:#2b91af"&gt;PhysicalAddressKeyType&lt;/span&gt; Key {&lt;/li&gt;&lt;li&gt;             &lt;span style="color:#0000ff"&gt;get&lt;/span&gt; {&lt;/li&gt;&lt;li&gt;                 &lt;span style="color:#0000ff"&gt;return&lt;/span&gt; &lt;span style="color:#0000ff"&gt;this&lt;/span&gt;.keyField;&lt;/li&gt;&lt;li&gt;             }&lt;/li&gt;&lt;li&gt;             &lt;span style="color:#0000ff"&gt;set&lt;/span&gt; {&lt;/li&gt;&lt;li&gt;                 &lt;span style="color:#0000ff"&gt;this&lt;/span&gt;.keyField = &lt;span style="color:#0000ff"&gt;value&lt;/span&gt;;&lt;/li&gt;&lt;li&gt;             }&lt;/li&gt;&lt;li&gt;         }&lt;/li&gt;&lt;li&gt;     \&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;  &lt;p&gt;and (after removing the email address so the address will fit on the card) it looks like this:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.msdn.com/blogfiles/pcreehan/WindowsLiveWriter/LineBreaksinManagedWebServiceProxyClasse_FFB2/image_6.png"&gt;&lt;img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="http://blogs.msdn.com/blogfiles/pcreehan/WindowsLiveWriter/LineBreaksinManagedWebServiceProxyClasse_FFB2/image_thumb_2.png" width="244" height="144" /&gt;&lt;/a&gt; &lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Cake.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9844004" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Outlook/default.aspx">Outlook</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange/default.aspx">Exchange</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Outlook+2007/default.aspx">Outlook 2007</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/.NET/default.aspx">.NET</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange+2007/default.aspx">Exchange 2007</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange+Web+Services+_2800_EWS_2900_/default.aspx">Exchange Web Services (EWS)</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/DevMsgTeam/default.aspx">DevMsgTeam</category></item><item><title>ConfigureMsgService fails with MAPI_E_INVALID_PARAMETER (0x80070057)</title><link>http://blogs.msdn.com/pcreehan/archive/2009/07/10/configuremsgservice-fails-with-mapi-e-invalid-parameter-0x80070057.aspx</link><pubDate>Fri, 10 Jul 2009 16:02:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9824944</guid><dc:creator>Patrick Creehan</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/pcreehan/comments/9824944.aspx</comments><wfw:commentRss>http://blogs.msdn.com/pcreehan/commentrss.aspx?PostID=9824944</wfw:commentRss><description>&lt;p&gt;I recently helped a customer with an issue where they were calling &lt;a href="http://msdn.microsoft.com/en-us/library/cc815632.aspx" target="_blank"&gt;ConfigureMsgService&lt;/a&gt; and that call was failing, returning an HRESULT of MAPI_E_INVALID_PARAMETER (0x80070057). After debugging it, we established that the reason that ConfigureMsgService was failing was that the PR_PROFILE_HOME_SERVER_ADDRS property was missing from the profile. Outlook seemed to work fine, logons worked, sending mail worked; it was just that ConfigureMsgService would fail. We tried recreating the profile, but still the property wasn’t being set on the profile.&lt;/p&gt;  &lt;p&gt;It turns out that PR_PROFILE_HOME_SERVER_ADDRS gets its value from PR_EMS_AB_NETWORK_ADDRESS, which in turn, gets its value from the networkAddress attribute on the server object in Active Directory. That value was set correctly, but permissions to that object were not. After following the requirements laid out on &lt;a href="http://technet.microsoft.com/en-us/library/bb123738(EXCHG.65).aspx" target="_blank"&gt;technet&lt;/a&gt; for permissions to AD objects, we determined that the Authenticated Users group was missing the ACL for Read All Properties on the server object. Once we set that permission and recreated the profile, the property was set correctly on the profile and ConfigureMsgService started succeeding.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9824944" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Outlook/default.aspx">Outlook</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange/default.aspx">Exchange</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/MAPI/default.aspx">MAPI</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Outlook+2007/default.aspx">Outlook 2007</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange+2007/default.aspx">Exchange 2007</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/DevMsgTeam/default.aspx">DevMsgTeam</category></item><item><title>DeleteItem Ignores ChangeKeys</title><link>http://blogs.msdn.com/pcreehan/archive/2009/07/08/deleteitem-ignores-changekeys.aspx</link><pubDate>Thu, 09 Jul 2009 00:49:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9824907</guid><dc:creator>Patrick Creehan</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/pcreehan/comments/9824907.aspx</comments><wfw:commentRss>http://blogs.msdn.com/pcreehan/commentrss.aspx?PostID=9824907</wfw:commentRss><description>&lt;p&gt;According to our &lt;a href="http://msdn.microsoft.com/en-us/library/aa580234.aspx" target="_blank"&gt;documentation&lt;/a&gt;, &lt;a href="http://msdn.microsoft.com/en-us/library/aa580484.aspx" target="_blank"&gt;DeleteItem&lt;/a&gt; calls should fail with a ErrorStaleObject error when the ChangeKey is not the most recent one. This, however, is not the case. In Exchange 2007, the ChangeKey is completely ignored in &lt;a href="http://msdn.microsoft.com/en-us/library/aa580484.aspx" target="_blank"&gt;DeleteItem&lt;/a&gt; calls. This decision was made on the logic that if you are trying to delete an item, chances are you don’t care if you have the most recent copy or not. But, what if you do?&lt;/p&gt;  &lt;p&gt;You could try doing a &lt;a href="http://msdn.microsoft.com/en-us/library/aa565934.aspx" target="_blank"&gt;GetItem&lt;/a&gt;, check the ChangeKey and then call &lt;a href="http://msdn.microsoft.com/en-us/library/aa580484.aspx" target="_blank"&gt;DeleteItem&lt;/a&gt; right after, but that still leaves a small window of time between your &lt;a href="http://msdn.microsoft.com/en-us/library/aa565934.aspx" target="_blank"&gt;GetItem&lt;/a&gt; and your &lt;a href="http://msdn.microsoft.com/en-us/library/aa580484.aspx" target="_blank"&gt;DeleteItem&lt;/a&gt; calls where the item may have been changed.&lt;/p&gt;  &lt;p&gt;Here’s a workaround which will help you implement the logic yourself using &lt;a href="http://msdn.microsoft.com/en-us/library/aa579617.aspx" target="_blank"&gt;pull notifications&lt;/a&gt;. &lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Do a &lt;a href="http://msdn.microsoft.com/en-us/library/aa566188.aspx" target="_blank"&gt;Subscribe&lt;/a&gt; on the folder of the item to subscribe for Pull notifications.&lt;/li&gt;    &lt;li&gt;Next, do a &lt;a href="http://msdn.microsoft.com/en-us/library/aa565934.aspx" target="_blank"&gt;GetItem&lt;/a&gt; and ensure that you do, in fact, have the most recent copy.&lt;/li&gt;    &lt;li&gt;Do your &lt;a href="http://msdn.microsoft.com/en-us/library/aa580484.aspx" target="_blank"&gt;DeleteItem&lt;/a&gt;.&lt;/li&gt;    &lt;li&gt;Do your &lt;a href="http://msdn.microsoft.com/en-us/library/aa566199.aspx" target="_blank"&gt;GetEvents&lt;/a&gt; to check for notifications.&lt;/li&gt;    &lt;li&gt;If you get just a &lt;a href="http://msdn.microsoft.com/en-us/library/aa581010.aspx" target="_blank"&gt;MovedEvent&lt;/a&gt;, then your item was deleted without having been modified (you get a &lt;a href="http://msdn.microsoft.com/en-us/library/aa581010.aspx" target="_blank"&gt;MovedEvent&lt;/a&gt; because the item was moved to the Deleted Items folder). You may get a &lt;a href="http://msdn.microsoft.com/en-us/library/aa565233.aspx" target="_blank"&gt;DeletedEvent&lt;/a&gt; depending on which flags you passed to &lt;a href="http://msdn.microsoft.com/en-us/library/aa580484.aspx" target="_blank"&gt;DeleteItem&lt;/a&gt;. If you get a &lt;a href="http://msdn.microsoft.com/en-us/library/aa565390.aspx" target="_blank"&gt;ModifiedEvent&lt;/a&gt; before your &lt;a href="http://msdn.microsoft.com/en-us/library/aa581010.aspx" target="_blank"&gt;MovedEvent&lt;/a&gt;, you can then go retrieve the item from the Deleted Items folder and check the values of the properties from the item there. If you hard deleted the item (and therefore got a &lt;a href="http://msdn.microsoft.com/en-us/library/aa565233.aspx" target="_blank"&gt;DeletedEvent&lt;/a&gt;) you cannot go get the latest copy from Deleted Items, because it isn’t there.&lt;/li&gt;    &lt;li&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/aa564263.aspx" target="_blank"&gt;Unsubscribe&lt;/a&gt;.&lt;/li&gt; &lt;/ol&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9824907" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange/default.aspx">Exchange</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange+2007/default.aspx">Exchange 2007</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange+Web+Services+_2800_EWS_2900_/default.aspx">Exchange Web Services (EWS)</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/DevMsgTeam/default.aspx">DevMsgTeam</category></item><item><title>TNEF (Chapter 2): Old School</title><link>http://blogs.msdn.com/pcreehan/archive/2009/01/27/tnef-chapter-2-old-school.aspx</link><pubDate>Wed, 28 Jan 2009 02:09:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9378932</guid><dc:creator>Patrick Creehan</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/pcreehan/comments/9378932.aspx</comments><wfw:commentRss>http://blogs.msdn.com/pcreehan/commentrss.aspx?PostID=9378932</wfw:commentRss><description>&lt;p&gt;As discussed in &lt;a href="http://blogs.msdn.com/pcreehan/archive/2009/01/16/tnef-chapter-1-basics.aspx" target="_blank"&gt;Chapter 1&lt;/a&gt; of this captivating series, MAPI contains an interface to allow developers to create and read TNEF data. This interface is the &lt;a href="http://msdn.microsoft.com/en-us/library/cc840016.aspx" target="_blank"&gt;ITnef&lt;/a&gt; interface. There are only a few methods in this interface and they are, for the most part, self explanatory. The entire process of creating a TNEF stream can be done in just a few steps: &lt;/p&gt;  &lt;ol&gt;   &lt;li&gt;Call &lt;a href="http://msdn.microsoft.com/en-us/library/cc839976.aspx" target="_blank"&gt;OpenTnefStreamEx&lt;/a&gt; to get a TNEF stream to write into.       &lt;br /&gt;      &lt;br /&gt;Make sure you pass in TNEF_ENCODE since you’ll be creating TNEF. If you were reading TNEF, you’d pass in TNEF_DECODE instead. The other flags to worry about here are TNEF_BEST_DATA, TNEF_COMPATIBILITY, and TNEF_PURE. All of these just signal to MAPI how you want the properties you add to the TNEF stream treated. They will either be all converted to the old-school attributes (TNEF_COMPATIBILITY) – you shouldn’t use this one; some will be converted to attributes but also written to the attMAPIProps section (TNEF_BEST_DATA); or they will all just be written to the MAPI props and none of them written to the attributes (TNEF_PURE). &lt;/li&gt;    &lt;li&gt;Call &lt;a href="http://msdn.microsoft.com/en-us/library/cc815786.aspx" target="_blank"&gt;EncodeRecips&lt;/a&gt; and pass in the Recipient table you get from a call to &lt;a href="http://msdn.microsoft.com/en-us/library/cc815662.aspx"&gt;IMessage::GetRecipientTable&lt;/a&gt; on your message. &lt;/li&gt;    &lt;li&gt;Call &lt;a href="http://msdn.microsoft.com/en-us/library/cc839951.aspx" target="_blank"&gt;AddProps&lt;/a&gt; passing in an &lt;a href="http://msdn.microsoft.com/en-us/library/cc765903.aspx" target="_blank"&gt;SPropTagArray&lt;/a&gt; of non-transmittable prop tags and use the TNEF_PROP_EXCLUDE flag.       &lt;br /&gt;      &lt;br /&gt;There are essentially two schools of thought for building your TNEF: exclude the props you don’t want and let MAPI deal with the rest; or choose carefully which props you &lt;em&gt;do&lt;/em&gt; want to include and add them each piecemeal. These are the reason for having the TNEF_PROP_EXCLUDE and TNEF_PROP_INCLUDE flags. One of them says here are the properties I don’t want you to encode (TNEF_PROP_EXCLUDE) and the other, TNEF_PROP_INCLUDE, says I want you to include all of these properties.       &lt;br /&gt;      &lt;br /&gt;There’s another method, &lt;a title="ITnef--SetProps" href="http://msdn.microsoft.com/en-us/library/cc765611.aspx"&gt;SetProps&lt;/a&gt;, which does just that, sets the value of a property in the TNEF stream to a value you supply. This allows you to modify the data of the message you are trying to encode, or add additional properties that weren’t on the original.       &lt;br /&gt;      &lt;br /&gt;Back to &lt;a href="http://msdn.microsoft.com/en-us/library/cc839951.aspx" target="_blank"&gt;AddProps&lt;/a&gt; for a moment. The flags that supports don’t stop with TNEF_PROP_INCLUDE and TNEF_PROP_EXCLUDE, There is also TNEF_PROP_ATTACHMENTS_ONLY which says “of the properties I’ve given you to work with, I only want you to include/exclude the ones that have to do with attachments. Contrast that with TNEF_PROP_MESSAGE_ONLY which says &amp;quot;”of the properties I’ve given you to work with, I only want you to include/exclude the ones that have to do with the message itself – not attachments.” Then there’s the CONTAINED flags: TNEF_PROP_CONTAINED and TNEF_PROP_CONTAINED_TNEF. TNEF_PROP_CONTAINED means that these properties are going on an attachment; and the TNEF_PROP_CONTAINED_TNEF means I have TNEF data I’m going to give you to put in an attachment – like if you already had a TNEF blob you wanted to include as an attachment, which I’ll demonstrate below. &lt;/li&gt;    &lt;li&gt;Once you get all your properties added and included/excluded properly, you call &lt;a href="http://msdn.microsoft.com/en-us/library/cc765543.aspx"&gt;Finish&lt;/a&gt; and you’re done. One thing that makes it a little complicated though, is that you have to keep alive all the pointers and streams, etc you’re using in your TNEF until Finish is called, because that’s when all the internal work is actually done. So when you call Finish, that’s when MAPI says, Oh, ok, let me go get that recipient table you gave me. If you’ve already released it, then the process fails. &lt;/li&gt; &lt;/ol&gt;  &lt;p&gt;So it’s pretty easy to do this. This is essentially the way that &lt;a href="http://www.codeplex.com/mfcmapi"&gt;MFCMAPI&lt;/a&gt; demonstrates how to do it (look in File.cpp under SaveToTNEF). There are problems associated with doing it this way when it comes to Unicode properties and when having multiple embedded messages.&lt;/p&gt;  &lt;p&gt;The more complicated way to do this to work around some of the issues described above is to add the properties you want explicitly, including each attachment. &lt;/p&gt;  &lt;p&gt;The basic difference in the strategy is that instead of calling &lt;a href="http://msdn.microsoft.com/en-us/library/cc839951.aspx" target="_blank"&gt;AddProps&lt;/a&gt; with TNEF_PROP_EXCLUDE, call it with TNEF_PROP_INCLUDE and give it the &lt;a href="http://msdn.microsoft.com/en-us/library/cc765903.aspx" target="_blank"&gt;SPropTagArray&lt;/a&gt; you get from a call to &lt;a href="http://msdn.microsoft.com/en-us/library/cc765530.aspx"&gt;GetPropList&lt;/a&gt; on the message. You’ll need to filter out the non-transmittable properties (such as custom props and things like the Store EntryID). Once you add all the message props, call &lt;a href="http://msdn.microsoft.com/en-us/library/cc839924.aspx"&gt;GetAttachmentTable&lt;/a&gt; and loop through each attachment and do one of two things, if it’s not an embedded message, just add the attachment data with &lt;a href="http://msdn.microsoft.com/en-us/library/cc839951.aspx" target="_blank"&gt;AddProps&lt;/a&gt; on PR_ATTACH_DATA_BIN; otherwise, you’re going to recurse over yourself and build a TNEF stream from the embedded message. When you call Finish on it, then you’ll add it to the parent TNEF stream by calling &lt;a href="http://msdn.microsoft.com/en-us/library/cc839951.aspx" target="_blank"&gt;AddProps&lt;/a&gt; with PR_ATTACH_DATA_OBJ and using the TNEF_PROP_CONTAINED_TNEF flag and give it the stream for your TNEF blob. Once you unwind all the way, you’ll have your “master” TNEF stream. Essentially, you’ll follow the steps here: &lt;a title="http://msdn.microsoft.com/en-us/library/cc839833.aspx" href="http://msdn.microsoft.com/en-us/library/cc839833.aspx"&gt;http://msdn.microsoft.com/en-us/library/cc839833.aspx&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9378932" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Outlook/default.aspx">Outlook</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange/default.aspx">Exchange</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/MAPI/default.aspx">MAPI</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/DevMsgTeam/default.aspx">DevMsgTeam</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/TNEF/default.aspx">TNEF</category></item><item><title>TNEF (Chapter 1): Basics</title><link>http://blogs.msdn.com/pcreehan/archive/2009/01/16/tnef-chapter-1-basics.aspx</link><pubDate>Fri, 16 Jan 2009 19:17:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9329079</guid><dc:creator>Patrick Creehan</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/pcreehan/comments/9329079.aspx</comments><wfw:commentRss>http://blogs.msdn.com/pcreehan/commentrss.aspx?PostID=9329079</wfw:commentRss><description>&lt;p&gt;I’ve worked quite a few cases recently regarding problems some folks have had either reading or composing TNEF content. I’ve learned quite a bit myself as a result, and I thought I’d share. I decided I would do a series of blog posts on the topic and hopefully save some of you the time I spent learning all this.&lt;/p&gt;  &lt;p&gt;So, being the first post on the topic, I suppose now would be a good time for a review on just what TNEF is and how it’s structured.&lt;/p&gt;  &lt;p&gt;TNEF stands for Transport-Neutral Encapsulation Format. If you use Outlook or any other MAPI client as your mail client, you may know that MAPI is a protocol for communication between the client and the mailbox server. MAPI defines a set of interfaces which the client can use to work with the data in the mailbox. The MAPI structure for the data is hierarchical with messages being contained in containers, which themselves can have a parent container, all the way up to the root of the store. MAPI also defines a set of properties understood by the client and, in some cases, the server. If all mail sent could stay on this one server and only go between clients on this one system, this would be all we need; but we know that’s not the case. A very large quantity of e-mail is sent over the internet to foreign systems every day. The vast majority of those use an industry-standard protocol called SMTP (Simple Mail Transfer Protocol) to send messages in an industry-standard format called MIME (Multipurpose Internet Mail Extensions). MIME is composed of body parts, which can in turn be composed of additional body parts themselves. MIME also allows you to add headers to each of the body parts which allow you to describe the content of that body part. So one body part may be a Word Document attachment, so the MIME headers on that body part would contain the MIME type such as application/doc and the transfer type, such as base64. The content of that body part would then contain a base64 encoding of the document. The headers for the root body part contain information such as the subject of the message, the sender and recipient information, etc. &lt;/p&gt;  &lt;p&gt;As a message makes its way through transport from one person’s email client to another person’s, it encounters many “hops” (brief stops at SMTP servers in the routing path) which have the opportunity to modify the headers. They do this in order to track the path the message took or to flag it as SPAM, verify the sender address, etc. So there’s a chance the headers you specify when you send the message won’t be the same as when the message arrives at the destination. The headers also only support text values. One of the problems discovered early on about the MIME format was that it has no concept of “rich text.” &lt;/p&gt;  &lt;p&gt;In early versions of Outlook, users wanted the ability to send and receive email that contained rich text bodies. Microsoft devised a plan to create an attachment to the messages it was sending that would have a certain content-type and would come to have a well-known name, “winmail.dat”. This attachment would contain an &lt;em&gt;encapsulation&lt;/em&gt; of the MAPI properties that could represent this rich body that would work across any transport and be readable by any system that supported MIME.&lt;/p&gt;  &lt;p&gt;The original structure just supported a very simple structure that was basically Name/size/value. These were called “attributes” and the names of these attributes are still prefixed by “att.” Many of the attribute names can be seen here: &lt;a title="http://msdn.microsoft.com/en-us/library/cc765736.aspx" href="http://msdn.microsoft.com/en-us/library/cc765736.aspx"&gt;http://msdn.microsoft.com/en-us/library/cc765736.aspx&lt;/a&gt;. The most important of these attributes for the purposes of our discussion will be the &lt;a target="_blank" href="http://msdn.microsoft.com/en-us/library/cc842114.aspx"&gt;attMAPIProps&lt;/a&gt;. This attribute contains a list of MAPI properties that the receiving system can set on the message once it has converted the other MIME parts into their MAPI format. Some of the TNEF attributes can be directly translated into MAPI properties as defined by the link earlier in this paragraph, but there is not a 1-1 mapping between TNEF attributes and MAPI properties – hence the attMAPIProps attribute. Attachments and recipient data can also be encoded into the TNEF structure, which we’ll examine more later.&lt;/p&gt;  &lt;p&gt;MSDN documents the general structure of TNEF but it’s hard to understand. Last year, when Exchange decided to be among those systems that elected to publicly document their protocols, they created &lt;a target="_blank" href="http://msdn.microsoft.com/en-us/library/cc425498.aspx"&gt;[MS-OXTNEF].pdf&lt;/a&gt;, which documents very clearly the structure of the TNEF data and how to parse it. Don’t get too nervous, though. I have parsed a 3MB TNEF blob manually myself, but in Exchange 2007, we provide &lt;a target="_blank" href="http://msdn.microsoft.com/en-us/library/microsoft.exchange.data.contenttypes.tnef.aspx"&gt;managed code interfaces&lt;/a&gt; to allow you to read (or write) this data very easily. In subsequent posts, I’ll dive more into the structure and into the managed classes, as well as the legacy &lt;a target="_blank" href="http://msdn.microsoft.com/en-us/library/cc840016.aspx"&gt;MAPI ITnef&lt;/a&gt; interfaces, and more into problems you may experience in developing TNEF-enabled applications.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9329079" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Outlook/default.aspx">Outlook</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange/default.aspx">Exchange</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/MAPI/default.aspx">MAPI</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/MIME/default.aspx">MIME</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/DevMsgTeam/default.aspx">DevMsgTeam</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/TNEF/default.aspx">TNEF</category></item><item><title>MAPI Docs Moved</title><link>http://blogs.msdn.com/pcreehan/archive/2008/12/04/mapi-docs-moved.aspx</link><pubDate>Thu, 04 Dec 2008 18:34:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9175526</guid><dc:creator>Patrick Creehan</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/pcreehan/comments/9175526.aspx</comments><wfw:commentRss>http://blogs.msdn.com/pcreehan/commentrss.aspx?PostID=9175526</wfw:commentRss><description>&lt;P&gt;So, the Exchange team decided they didn't want to maintain the MAPI documentation anymore since they don't ship MAPI anymore. So the Outlook team stepped up and took over the docs. As such, you can now find them under the Outlook branch in the MSDN left-nav.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/cc765775.aspx"&gt;http://msdn.microsoft.com/en-us/library/cc765775.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A target=_blank href="http://blogs.msdn.com/stephen_griffin" mce_href="http://blogs.msdn.com/stephen_griffin"&gt;Steve Griffin&lt;/A&gt; has been working with the Outlook team&amp;nbsp;on prettying them up and updating them for a few months,&amp;nbsp;and they're now&amp;nbsp;better than ever! He even got a new icon for &lt;A target=_blank href="http://www.codeplex.com/mfcmapi" mce_href="http://www.codeplex.com/mfcmapi"&gt;MFCMAPI&lt;/A&gt; out of the deal!&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9175526" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Outlook/default.aspx">Outlook</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange/default.aspx">Exchange</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/MAPI/default.aspx">MAPI</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Outlook+2007/default.aspx">Outlook 2007</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/DevMsgTeam/default.aspx">DevMsgTeam</category></item><item><title>OnSyncDelete Delete</title><link>http://blogs.msdn.com/pcreehan/archive/2008/09/30/onsyncdelete-delete.aspx</link><pubDate>Tue, 30 Sep 2008 20:58:09 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8970548</guid><dc:creator>Patrick Creehan</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/pcreehan/comments/8970548.aspx</comments><wfw:commentRss>http://blogs.msdn.com/pcreehan/commentrss.aspx?PostID=8970548</wfw:commentRss><description>The Exchange team is looking for some feedback on business scenarios that will be impacted by removing store sinks from the code. With Exchange 2007 and beyond, the new technology designed to replace store sinks is EWS Notifications and Transport Agents....(&lt;a href="http://blogs.msdn.com/pcreehan/archive/2008/09/30/onsyncdelete-delete.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8970548" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange/default.aspx">Exchange</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange+2007/default.aspx">Exchange 2007</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange+Web+Services+_2800_EWS_2900_/default.aspx">Exchange Web Services (EWS)</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/DevMsgTeam/default.aspx">DevMsgTeam</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Agents/default.aspx">Agents</category></item><item><title>Forwarding Appointments in Outlook Prepopulates “To” Field With All Attendees</title><link>http://blogs.msdn.com/pcreehan/archive/2008/09/19/forwarding-appointments-in-outlook-prepopulates-to-field-with-all-attendees.aspx</link><pubDate>Fri, 19 Sep 2008 20:38:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8959149</guid><dc:creator>Patrick Creehan</dc:creator><slash:comments>5</slash:comments><comments>http://blogs.msdn.com/pcreehan/comments/8959149.aspx</comments><wfw:commentRss>http://blogs.msdn.com/pcreehan/commentrss.aspx?PostID=8959149</wfw:commentRss><description>We’ve had a lot of folks calling in recently about this one. The symptoms are that if you go to your calendar in Outlook and forward a meeting, the To field is prepopulated with all attendees of the meeting and the Subject field is not prefixed with “FW:.”...(&lt;a href="http://blogs.msdn.com/pcreehan/archive/2008/09/19/forwarding-appointments-in-outlook-prepopulates-to-field-with-all-attendees.aspx"&gt;read more&lt;/a&gt;)&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8959149" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Outlook/default.aspx">Outlook</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange/default.aspx">Exchange</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Outlook+2007/default.aspx">Outlook 2007</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/CDO+1.21/default.aspx">CDO 1.21</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/DevMsgTeam/default.aspx">DevMsgTeam</category></item><item><title>You Say Toemaytoe I Say Tahmahtah</title><link>http://blogs.msdn.com/pcreehan/archive/2008/07/16/you-say-toemaytoe-i-say-tahmahtah.aspx</link><pubDate>Wed, 16 Jul 2008 16:23:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8738495</guid><dc:creator>Patrick Creehan</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/pcreehan/comments/8738495.aspx</comments><wfw:commentRss>http://blogs.msdn.com/pcreehan/commentrss.aspx?PostID=8738495</wfw:commentRss><description>&lt;p&gt;We’ve seen a bunch of folks asking recently if their Exchange 2007 CAS server can talk to their Exchange 2003 mailbox server. The answer is &amp;lt;gasp&amp;gt; it depends on what you mean.&lt;/p&gt;  &lt;p&gt;It depends on what technology you are referring to and what you mean by “talk.” Are you referring to WebDAV calls? Then yes. Are you referring to OWA? Then sorta. Are you referring to Exchange Web Services (EWS), then no. There are really two things at play here: proxy and redirection. That is, can an Exchange 2007 CAS server serve as a proxy for calls to the backend mailbox server, or can it successfully redirect calls to the mailbox server where the call can be handled. &lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;In Exchange 2003, HTTP calls were simply forwarded on from the front-end to the back-end. The back-end server would receive the HTTP request and handle it and then forward the response back up through the front-end. In Exchange 2007, however, the front-end CAS handles the HTTP request and speaks RPC to the back-end server.&amp;#160; &lt;/p&gt;  &lt;p&gt;When a request is received by a CAS server, it knows how to figure out who should handle the request – whether it needs proxied to a different CAS, or can be sent directly to an Exchange 2003 or 2007 back-end. For example, when a request is received for the /exchange virtual directory on a mailbox on an Exchange 2003 server, the HTTP request is forwarded to the appropriate server. So in this way, OWA still works from your 2007 CAS – even though the client will see the OWA 2003 interface. The same is true for activesync clients requesting the \Microsoft-Server-ActiveSync vdir. &lt;/p&gt;  &lt;p&gt;If an Exchange Web Services call hits an Exchange 2007 CAS and the CAS is able to determine that the mailbox is on an Exchange 2003 back-end the call will fail since proxying cannot be performed.&lt;/p&gt;  &lt;p&gt;Here’s more on the topic:&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;  &lt;p&gt;&lt;a title="Overview of Exchange Server 2007 CAS Proxying and Redirection" href="http://msexchangeteam.com/archive/2007/09/04/446918.aspx"&gt;Overview of Exchange Server 2007 CAS Proxying and Redirection&lt;/a&gt;&lt;/p&gt; &lt;a title="Understanding Proxying and Redirection" href="http://technet.microsoft.com/en-us/library/bb310763.aspx"&gt;Understanding Proxying and Redirection&lt;/a&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8738495" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange/default.aspx">Exchange</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/WebDAV/default.aspx">WebDAV</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange+2007/default.aspx">Exchange 2007</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange+Web+Services+_2800_EWS_2900_/default.aspx">Exchange Web Services (EWS)</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/DevMsgTeam/default.aspx">DevMsgTeam</category></item><item><title>Outlook Requests Can't Get a Date</title><link>http://blogs.msdn.com/pcreehan/archive/2008/04/23/outlook-requests-can-t-get-a-date.aspx</link><pubDate>Wed, 23 Apr 2008 21:52:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8419622</guid><dc:creator>Patrick Creehan</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/pcreehan/comments/8419622.aspx</comments><wfw:commentRss>http://blogs.msdn.com/pcreehan/commentrss.aspx?PostID=8419622</wfw:commentRss><description>&lt;P&gt;There exists a scenario in which attendees to a meeting in Outlook will receive an updated meeting request from the originator that appears to be "out-of-date." In the InfoBar, Outlook will display a message that says "This request is out-of-date." If the attendee attempts to accept the meeting request, they get an error dialog box. Now, this is expected if there was an update that was made but a later update was already made - that's sort of what that functionality in Outlook was designed for. However, in this scenario, you see a new meeting request and very shortly after you get an update to the same meeting. It's clear that the update didn't come before the original request, so how can it be out-of-date?&lt;/P&gt;
&lt;P&gt;This scenario exists where an appointment is modified by an application using CDO 1.21. In order to get the problematic behavior, the machine running the CDO 1.21 code has to have the clock set to a time earlier than the client machine. If CDO 1.21 modifies the appointment and sends updates within the time delta between the two machines, the update will appear to Outlook to be earlier than the original request. &lt;/P&gt;
&lt;P&gt;Imagine the scenario: &lt;/P&gt;
&lt;P&gt;CLIENT_MACHINE_1 and CLIENT_MACHINE_2 have a current system time of 3:00 PM.&lt;/P&gt;
&lt;P&gt;CDO121_MACHINE has a current system time of 2:57 PM.&lt;/P&gt;
&lt;TABLE class="" cellSpacing=0 cellPadding=4 width=491 border=1&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="" vAlign=top width=53&gt;3:00 PM&lt;/TD&gt;
&lt;TD class="" vAlign=top width=436&gt;User1 on CLIENT_MACHINE_1 sends a meeting request to User2 on CLIENT_MACHINE_2.&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="" vAlign=top width=55&gt;3:01 PM &lt;/TD&gt;
&lt;TD class="" vAlign=top width=435&gt;User2 accepts the meeting request and the appointment is added to User2's calendar.&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="" vAlign=top width=56&gt;3:02 PM &lt;/TD&gt;
&lt;TD class="" vAlign=top width=434&gt;CDO 1.21 code runs on CDO121_MACHINE server and modifies the appointment on User1's calendar and sends the meeting request update (stamped 2:59 PM which is the current system time on CDO121_MACHINE) .&lt;/TD&gt;&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="" vAlign=top width=57&gt;3:03 PM&lt;/TD&gt;
&lt;TD class="" vAlign=top width=433&gt;User2 receives the updated meeting request and Outlook displays the update as being out-of-date.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;
&lt;P&gt;The problem boils down to a difference in meeting update behavior between Outlook and CDO 1.21. There's a sequence number property on meeting requests that Outlook increments each time an update is made to a meeting. Outlook examines this sequence number first when deciding which update is newest - this code was put in place for scenarios like this primarily for pop3 clients, which only use sequence number. The timestamp is used as a secondary factor in deciding which is newer. CDO 1.21 wasn't designed with some of these modern calendaring scenarios in mind and doesn't (and &lt;EM&gt;won't&lt;/EM&gt; ) support incrementing the sequence number - it's simply copied over as are most props.&lt;/P&gt;
&lt;P&gt;So...if everyone just synchronizes their clocks to the same time server often enough, we'll all be happy :). &lt;/P&gt;
&lt;P&gt;If you have CDO 1.21 code which causes this to occur to some of your clients, here are a few ideas that you can try:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;in your processing, don't process meetings that have the timestamp later than the current system time on the machine your code is running on. &lt;/LI&gt;
&lt;LI&gt;Push for your customer to keep machine times in their environments synchronized. This should at least minimize the impact. Clearly this won't account for scenarios where users are using home computers over a VPN or RPC/HTTP connection or using mobile devices that may have clocks synchronized to a different source.&lt;/LI&gt;&lt;/UL&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8419622" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Outlook/default.aspx">Outlook</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange/default.aspx">Exchange</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Outlook+2007/default.aspx">Outlook 2007</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/CDO+1.21/default.aspx">CDO 1.21</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/DevMsgTeam/default.aspx">DevMsgTeam</category></item><item><title>MAPI_E_FAILONEPROVIDER (0x8004011d) after installing Windows Server 2003 SP2</title><link>http://blogs.msdn.com/pcreehan/archive/2008/01/11/mapi-e-failoneprovider-0x8004011d-after-installing-windows-server-2003-sp2.aspx</link><pubDate>Sat, 12 Jan 2008 00:56:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7080037</guid><dc:creator>Patrick Creehan</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/pcreehan/comments/7080037.aspx</comments><wfw:commentRss>http://blogs.msdn.com/pcreehan/commentrss.aspx?PostID=7080037</wfw:commentRss><description>&lt;P&gt;Sorry for the duplication, I'm just rebranding an earlier post of mine because many people have never heard of SNP and may discount the post due to the title. If you are getting MAPI errors because of RPC connectivity problems, and you have SP2 installed for Windows Server 2003, this is probably what's affecting you, especially if you have a Broadcom NIC.&lt;/P&gt;&lt;SPAN class=userInput&gt;&lt;FONT size=2&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/pcreehan/archive/2007/10/16/ooh-snp.aspx"&gt;http://blogs.msdn.com/pcreehan/archive/2007/10/16/ooh-snp.aspx&lt;/A&gt; &lt;/P&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7080037" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange/default.aspx">Exchange</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/MAPI/default.aspx">MAPI</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange+2007/default.aspx">Exchange 2007</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/DevMsgTeam/default.aspx">DevMsgTeam</category></item><item><title>Ooh, SNP</title><link>http://blogs.msdn.com/pcreehan/archive/2007/10/16/ooh-snp.aspx</link><pubDate>Tue, 16 Oct 2007 23:46:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:5475221</guid><dc:creator>Patrick Creehan</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/pcreehan/comments/5475221.aspx</comments><wfw:commentRss>http://blogs.msdn.com/pcreehan/commentrss.aspx?PostID=5475221</wfw:commentRss><description>&lt;P&gt;We've recently been seeing an elevated number of cases where networking issues are adversely affecting performance and causing other problems with messaging technologies. The common thread in many of them is that the problem only started to occur after Windows Server 2003 SP2 was installed. I recently learned that we shipped a new feature in SP2 and turned it on by default. This new feature is called &lt;A href="http://www.microsoft.com/snp" mce_href="http://www.microsoft.com/snp"&gt;Scalable Networking Pack, or SNP&lt;/A&gt;. It was actually originally shipped as a &lt;A href="http://support.microsoft.com/kb/912222" mce_href="http://support.microsoft.com/kb/912222"&gt;download for SP1&lt;/A&gt;, but was included in SP2 by default. &lt;/P&gt;
&lt;P&gt;The Exchange team has posted an &lt;A href="http://msexchangeteam.com/archive/2007/07/18/446400.aspx" mce_href="http://msexchangeteam.com/archive/2007/07/18/446400.aspx"&gt;article&lt;/A&gt; on how SNP affects Exchange and also gives a good list of links and troubleshooting steps. &lt;/P&gt;
&lt;P&gt;SNP was built to increase performance on the networking stack, and does for newer network adapters that support it. However, for older network adapters, it can cause significant delays which cause timeout problems and connection problems leading to various problems. &lt;/P&gt;
&lt;P&gt;The basic troubleshooting steps at this point are &lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Read the Exchange team's post linked above and pages they reference so you understand the issue &lt;/LI&gt;
&lt;LI&gt;Install the hotfix at &lt;A href="http://support.microsoft.com/kb/936594" mce_href="http://support.microsoft.com/kb/936594"&gt;http://support.microsoft.com/kb/936594&lt;/A&gt; &lt;/LI&gt;
&lt;LI&gt;Upgrade your network adapter drivers to the most recent version &lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;Disable the SNP features by setting the following registry keys: &lt;/DIV&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt"&gt;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters] &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt"&gt;EnableTCPChimney=dword:00000000 &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt"&gt;EnableTCPA=dword:00000000 &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt"&gt;EnableRSS=dword:00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt"&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt"&gt;&lt;STRONG&gt;UPDATE&lt;/STRONG&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt"&gt;I've just had another case where SNP was the culprit. The customer had clustered Exchange 2003 boxes with recently applied SP2. They were using backup software which was using CDOEXM to get information about the environment. These calls were failing with 0x8000FFFF (E_UNEXPECTED) but after debugging we saw that RPC was getting RPC_S_SERVER_UNAVAILABLE (1722 0x6ba) errors. This prompted me to ask about SNP. Disabling SNP via the steps above resolved the issue.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt"&gt;&lt;STRONG&gt;UPDATE (1-8-07):&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="FONT-SIZE: 10pt"&gt;Yet again, another customer with clustered Exchange 2007 boxes. They had a MAPI application which was unable to OpenMsgStore on mailboxes that had migrated from Exchange 2003 (MAPI_E_FAILONEPROVIDER). Debugging the process I could see RPC_S_SERVER_UNAVAILABLE errors. Sure enough, they had SP2 installed. Disabling SNP resolved the issue. The reason nonmigrated mailboxes worked was that MAPI was just guessing the ServerDN since resolving against the DS didn't work. If the mailbox had never been migrated, this guess ended up being correct; for migrated mailboxes, it was wrong and the failure bubbled up.&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=5475221" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange/default.aspx">Exchange</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/MAPI/default.aspx">MAPI</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/CDOEXM/default.aspx">CDOEXM</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/DevMsgTeam/default.aspx">DevMsgTeam</category></item><item><title>ARGH: Large WebDAV PROPPATCH requests fail with 401/401.5</title><link>http://blogs.msdn.com/pcreehan/archive/2007/07/17/argh-large-webdav-proppatch-requests-fail-with-401-401-5.aspx</link><pubDate>Tue, 17 Jul 2007 19:09:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3919295</guid><dc:creator>Patrick Creehan</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/pcreehan/comments/3919295.aspx</comments><wfw:commentRss>http://blogs.msdn.com/pcreehan/commentrss.aspx?PostID=3919295</wfw:commentRss><description>&lt;P&gt;I had a case recently where one of our products, Duet,&amp;nbsp;was doing a large PROPPATCH against Exchange 2003 and it was failing with a HTTP 401 error. The customer noticed that small PROPPATCH requests succeeded, but large ones (bigger than say 25 KB) would fail. Well, we knew that it couldn't be a permission problem, because small ones succeeded, right?&lt;/P&gt;
&lt;P&gt;After more digging around and more test scripts, we discovered that large PUT requests worked just fine and that the large PROPPATCH would work for Exchange Admins. The clues are starting to come together. I was immediately reminded of a known issue with CDOSys where large attachments are first cached to the TEMP directory before being sent via transport . If the user executing the code does not have permissions to the temp directory, they get an 80004005 Access Denied when they try to Send the message. Could we be doing something similar with WebDAV, writing the request to the disk first for large requests?&lt;/P&gt;
&lt;P&gt;Sure enough,&amp;nbsp;a &lt;A class="" title="FileMon download site" href="http://www.microsoft.com/technet/sysinternals/FileAndDisk/Filemon.mspx" target=_blank mce_href="http://www.microsoft.com/technet/sysinternals/FileAndDisk/Filemon.mspx"&gt;FileMon&lt;/A&gt; indicated that we would receive an ACCESS DENIED when trying to create a file in the C:\WinNT\Temp directory called something like $ET&lt;EM&gt;n&lt;/EM&gt;.tmp, where &lt;EM&gt;n&lt;/EM&gt; is an integer that increments.&lt;/P&gt;
&lt;P&gt;In my test environment, where I had previously been unable to reproduce the customer's problem, granted Authenticated Users the ability to Create Files, Write, and Read from this directory. By adding an explicit Deny ACE to this folder for my test user, I was finally able to reproduce his behavior exactly.&lt;/P&gt;
&lt;P&gt;If your Exchange or IT Admins have locked down your server by modifying or removing this ACE, try giving your test user Modify&amp;nbsp;permissions on the C:\WinNT\Temp directory and see if you don't get a better result.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3919295" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange/default.aspx">Exchange</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/WebDAV/default.aspx">WebDAV</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Duet/default.aspx">Duet</category></item><item><title>Foreign Connectors aren't just bridges over the Rio Grande</title><link>http://blogs.msdn.com/pcreehan/archive/2007/05/29/foreign-connectors-aren-t-just-bridges-over-the-rio-grande.aspx</link><pubDate>Tue, 29 May 2007 22:42:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2973791</guid><dc:creator>Patrick Creehan</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/pcreehan/comments/2973791.aspx</comments><wfw:commentRss>http://blogs.msdn.com/pcreehan/commentrss.aspx?PostID=2973791</wfw:commentRss><description>&lt;P&gt;&lt;A class="" title="Matt Stehle's blog" href="http://blogs.msdn.com/mstehle" target=_blank mce_href="http://blogs.msdn.com/mstehle"&gt;Matt Stehle&lt;/A&gt; had a great post on building foreign connectors, the gateway connectors&amp;nbsp;replacement&amp;nbsp;for Exchange 2007. &lt;/P&gt;
&lt;P&gt;&lt;A class="" title="Foreign Connectors" href="http://blogs.msdn.com/mstehle/archive/2007/05/25/outbox-programming-exchange-2007-foreign-connectors-the-exchange-edk-gateway-connector-replacement.aspx" target=_blank mce_href="http://blogs.msdn.com/mstehle/archive/2007/05/25/outbox-programming-exchange-2007-foreign-connectors-the-exchange-edk-gateway-connector-replacement.aspx"&gt;Check it out.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=2973791" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange/default.aspx">Exchange</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/Exchange+2007/default.aspx">Exchange 2007</category><category domain="http://blogs.msdn.com/pcreehan/archive/tags/DevMsgTeam/default.aspx">DevMsgTeam</category></item></channel></rss>