<?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>ToddHa's WebLog : Windows Mobile</title><link>http://blogs.msdn.com/toddha/archive/tags/Windows+Mobile/default.aspx</link><description>Tags: Windows Mobile</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>When Fixes Cause Problems</title><link>http://blogs.msdn.com/toddha/archive/2007/11/30/when-fixes-cause-problems.aspx</link><pubDate>Fri, 30 Nov 2007 04:46:41 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:6606420</guid><dc:creator>toddha</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/toddha/comments/6606420.aspx</comments><wfw:commentRss>http://blogs.msdn.com/toddha/commentrss.aspx?PostID=6606420</wfw:commentRss><description>&lt;p&gt;&lt;em&gt;Note that there are tons of stories about backwards compatibility; for some of the best go see &lt;/em&gt;&lt;a href="http://blogs.msdn.com/oldnewthing/search.aspx?q=backwards+compat&amp;amp;p=1"&gt;&lt;em&gt;Raymond&lt;/em&gt;&lt;/a&gt;&lt;em&gt;.&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;For a sample application that I'm writing, I'm using .NET CF 3.5. I had upgraded from the version shipped with Visual Studio 2008 Beta2 to the one shipped in VS2k8 RC1, and I hadn't had any problems. Take note, because if you've written some buggy code and are unaware of it, this may affect you, too (perhaps even coming from .NET CF 2.0 code).&lt;/p&gt;  &lt;p&gt;This morning, I upgraded from VS2k8 RC1 to VS2k8 RTM and all of a sudden, none of my network requests were working -- they ALL timed out.&lt;/p&gt;  &lt;p&gt;I kind of freaked out for a bit, thinking that it &lt;strong&gt;couldn't&lt;/strong&gt; have been my code -- I didn't change anything! Plus, as a developer, I've learned the hard and fast rule that it's &lt;strong&gt;never &lt;/strong&gt;my code -- it's always somebody else's. :) However, I was on a new machine, so I hadn't set up ActiveSync to my emulator. I convinced myself that AS was having issues and my PocketPC phone wasn't getting good service.&lt;/p&gt;  &lt;p&gt;An hour or so later, I realized it was my code.&lt;/p&gt;  &lt;p&gt;In my app, I have a rudimentary &lt;a href="http://labs.biztalk.net/connectivity.aspx"&gt;BizTalk Connectivity Services&lt;/a&gt; aware engine (although isn't specific, as it uses simple HTTP PUT/GET/POST) which takes a URL. This URL is given by the user, so there has to be some checking done on it. Mostly, this is done for me by the framework, but the one key addition which I added was checking to ensure that the URL had a trailing '/' at the end.&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Thus, &lt;/p&gt;  &lt;p&gt;&lt;code&gt;http://connect.biztalk.net/services/username/service&lt;/code&gt;&lt;/p&gt;  &lt;p&gt;turns into&lt;/p&gt;  &lt;p&gt;&lt;code&gt;http://connect.biztalk.net/services/username/service/&lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Then, internally my operations all have corresponding URL I should append to the end. However, the bug in my code was that all of the URL operations START with a forward slash. So after I glued the different pieces of the URL together&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;&lt;code&gt;&amp;quot;http://connect.biztalk.net/services/username/service/&amp;quot; + &amp;quot;/Operation&amp;quot;&lt;/code&gt;&lt;/p&gt;  &lt;p&gt;I would get:&lt;/p&gt;  &lt;p&gt;&lt;code&gt;http://connect.biztalk.net/services/username/service//Operation&lt;/code&gt;&lt;/p&gt;  &lt;p&gt;&amp;#160;&lt;/p&gt;  &lt;p&gt;Apparently in the older versions, this would work fine. But in the version shipping with VS2k8 RTM, it won't work. Simple fix, but caused havok with me for a while. Fortunately, I hadn't released it, so it was easy enough to catch and fix.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=6606420" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/toddha/archive/tags/C_2300_/default.aspx">C#</category><category domain="http://blogs.msdn.com/toddha/archive/tags/.NET/default.aspx">.NET</category><category domain="http://blogs.msdn.com/toddha/archive/tags/Programming/default.aspx">Programming</category><category domain="http://blogs.msdn.com/toddha/archive/tags/Windows+Mobile/default.aspx">Windows Mobile</category><category domain="http://blogs.msdn.com/toddha/archive/tags/.NET+Compact+Framework/default.aspx">.NET Compact Framework</category></item></channel></rss>