<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>SOA</title>
        <link>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/category/54.aspx</link>
        <description>SOA</description>
        <language>en-US</language>
        <copyright>Shawn Weisfeld</copyright>
        <generator>Subtext Version 2.1.2.2</generator>
        <item>
            <title>WCF &amp;amp; Using Statements</title>
            <link>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/archive/2008/11/13/wcf-amp-using-statements.aspx</link>
            <description>&lt;p mce_keep="true"&gt;I was attending the Dallas Connected Systems UG last night (&lt;a href="http://biztalkusergroup.com/" mce_href="http://biztalkusergroup.com/"&gt;http://biztalkusergroup.com/&lt;/a&gt;) and during the presentation I made the bold assertion that one should NOT use the "using statement" when working with WCF. Now I am a HUGE proponent of the using statement in normal circumstances. IMHO if it implements IDisposable use the using statement, except with WCF. This has to do with the way that WCF errors out and when that happens how the connection gets closed. . . &lt;br /&gt;&lt;br /&gt;Doing my best LeVar Burton "But you don't have to take my word for it" (&lt;a href="http://en.wikipedia.org/wiki/Reading_Rainbow" mce_href="http://en.wikipedia.org/wiki/Reading_Rainbow"&gt;http://en.wikipedia.org/wiki/Reading_Rainbow&lt;/a&gt;). Microsoft even says it in the documentation, "You should not use the using statement (Using in Visual Basic) because it may mask exceptions in certain failure modes. " (&lt;a href="http://msdn.microsoft.com/en-us/library/ms735103.aspx" mce_href="http://msdn.microsoft.com/en-us/library/ms735103.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms735103.aspx&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;Also check out a post by Dan Rigsby that goes into more detail. &lt;a href="http://www.danrigsby.com/blog/index.php/2008/02/26/dont-wrap-wcf-service-hosts-or-clients-in-a-using-statement/" mce_href="http://www.danrigsby.com/blog/index.php/2008/02/26/dont-wrap-wcf-service-hosts-or-clients-in-a-using-statement/"&gt;http://www.danrigsby.com/blog/index.php/2008/02/26/dont-wrap-wcf-service-hosts-or-clients-in-a-using-statement/&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;img src="http://www.drowningintechnicaldebt.com/ShawnWeisfeld/aggbug/271.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>sweisfeld</dc:creator>
            <guid>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/archive/2008/11/13/wcf-amp-using-statements.aspx</guid>
            <pubDate>Thu, 13 Nov 2008 17:29:00 GMT</pubDate>
            <wfw:comment>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/comments/271.aspx</wfw:comment>
            <comments>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/archive/2008/11/13/wcf-amp-using-statements.aspx#feedback</comments>
            <wfw:commentRss>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/comments/commentRss/271.aspx</wfw:commentRss>
            <trackback:ping>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/services/trackbacks/271.aspx</trackback:ping>
        </item>
        <item>
            <title>Unable to connect to the remote server</title>
            <link>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/archive/2007/12/03/unable-to-connect-to-the-remote-server.aspx</link>
            <description>&lt;p mce_keep="true"&gt;When attempting to call a webservice that lives outside my corperate firewall I was getting the following error:&lt;/p&gt;
&lt;p mce_keep="true"&gt;System.Net.WebException was unhandled by user code&lt;br /&gt;  Message="Unable to connect to the remote server"&lt;br /&gt;  Source="System"&lt;br /&gt;  StackTrace:&lt;br /&gt;       at System.Net.HttpWebRequest.GetRequestStream()&lt;br /&gt;       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)&lt;/p&gt;
&lt;p mce_keep="true"&gt;After some research I stumbled across this post by Rick Strahl&lt;br /&gt;&lt;a href="http://west-wind.com/weblog/posts/3871.aspx" mce_href="http://west-wind.com/weblog/posts/3871.aspx"&gt;http://west-wind.com/weblog/posts/3871.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p mce_keep="true"&gt;but my problem was a little bit different. In his case he desired to disable to the automatic proxy detection, but I needed to wire in the script that my corperate IT department requires that we use. Easy enough just add the following to the web.config&lt;/p&gt;
&lt;p mce_keep="true"&gt; &amp;lt;system.net&amp;gt;&lt;br /&gt;  &amp;lt;defaultProxy&amp;gt;&lt;br /&gt;   &amp;lt;proxy scriptLocation ="url to script here" /&amp;gt;&lt;br /&gt;  &amp;lt;/defaultProxy&amp;gt;&lt;br /&gt; &amp;lt;/system.net&amp;gt;&lt;/p&gt;
&lt;p mce_keep="true"&gt;I think the cause of my problem was the same as Ricks. Everything works fine when using a console application running as me, but when I put the same method call in a web app runing as network service it appears that he doesnt have enough permissions to get the script location from the registry. &lt;/p&gt;&lt;img src="http://www.drowningintechnicaldebt.com/ShawnWeisfeld/aggbug/220.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>sweisfeld</dc:creator>
            <guid>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/archive/2007/12/03/unable-to-connect-to-the-remote-server.aspx</guid>
            <pubDate>Tue, 04 Dec 2007 04:28:00 GMT</pubDate>
            <wfw:comment>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/comments/220.aspx</wfw:comment>
            <comments>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/archive/2007/12/03/unable-to-connect-to-the-remote-server.aspx#feedback</comments>
            <wfw:commentRss>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/comments/commentRss/220.aspx</wfw:commentRss>
            <trackback:ping>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/services/trackbacks/220.aspx</trackback:ping>
        </item>
        <item>
            <title>Fiddler Web Debugging Proxy</title>
            <link>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/archive/2007/09/04/fiddler-web-debugging-proxy.aspx</link>
            <description>&lt;p mce_keep="true"&gt;Went to an MSDN event by Russ (&lt;a href="http://blogs.msdn.com/rfustino/" mce_href="http://blogs.msdn.com/rfustino/"&gt;http://blogs.msdn.com/rfustino/&lt;/a&gt;) a few weeks ago and during his demo he displayed this cool tool called Fiddler (&lt;a href="http://www.fiddler2.com/" mce_href="http://www.fiddler2.com/"&gt;http://www.fiddler2.com/&lt;/a&gt;).  A must have debugging tool for any Smart Client or Web Developer. &lt;br /&gt;&lt;br /&gt;Fiddler is a Web Debugging Proxy which logs all HTTP(S) traffic between your computer and the Internet. Fiddler allows you to inspect all HTTP(S) traffic, set breakpoints, and "fiddle" with incoming or outgoing data. Fiddler includes a powerful event-based scripting subsystem, and can be extended using any .NET language.&lt;br /&gt;&lt;br /&gt;Fiddler is freeware and can debug traffic from virtually any application, including Internet Explorer, Mozilla Firefox, Opera, and thousands more. &lt;/p&gt;&lt;img src="http://www.drowningintechnicaldebt.com/ShawnWeisfeld/aggbug/205.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>sweisfeld</dc:creator>
            <guid>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/archive/2007/09/04/fiddler-web-debugging-proxy.aspx</guid>
            <pubDate>Tue, 04 Sep 2007 19:00:00 GMT</pubDate>
            <wfw:comment>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/comments/205.aspx</wfw:comment>
            <comments>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/archive/2007/09/04/fiddler-web-debugging-proxy.aspx#feedback</comments>
            <wfw:commentRss>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/comments/commentRss/205.aspx</wfw:commentRss>
            <trackback:ping>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/services/trackbacks/205.aspx</trackback:ping>
        </item>
        <item>
            <title>.NET 3.0 Released (WCF, WWF, WPF)</title>
            <link>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/archive/2006/11/09/.net-3.0-released-wcf-wwf-wpf.aspx</link>
            <description>&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;font size="3"&gt;&lt;font face="Times New Roman"&gt;The Microsoft .NET Framework 3.0 (formerly WinFX), is the new managed code programming model for Windows. It combines the power of the .NET Framework 2.0 with four new technologies:&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;Windows Presentation Foundation (WPF), Windows Communication Foundation (WCF), Windows Workflow Foundation (WF), and Windows CardSpace (WCS, formerly “InfoCard”).&lt;span style="mso-spacerun: yes"&gt;   &lt;/span&gt;Use the .NET Framework 3.0 today to build applications that have visually compelling user experiences, seamless communication across technology boundaries, the ability to support a wide range of business processes, and an easier way to manage your personal information online.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;This is the same great WinFX technology you know and love, now with a new name that identifies it for exactly what it is – the next version of Microsoft’s development framework. &lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /?&gt;&lt;o:p /&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;font face="Times New Roman" size="3"&gt; &lt;/font&gt;&lt;/o:p&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN: 0in 0in 0pt"&gt;&lt;font face="Times New Roman" size="3"&gt;More info and download at &lt;/font&gt;&lt;a href="http://www.netfx3.com/"&gt;&lt;font face="Times New Roman" color="#800080" size="3"&gt;http://www.netfx3.com/&lt;/font&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://www.drowningintechnicaldebt.com/ShawnWeisfeld/aggbug/144.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>sweisfeld</dc:creator>
            <guid>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/archive/2006/11/09/.net-3.0-released-wcf-wwf-wpf.aspx</guid>
            <pubDate>Thu, 09 Nov 2006 18:10:00 GMT</pubDate>
            <wfw:comment>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/comments/144.aspx</wfw:comment>
            <comments>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/archive/2006/11/09/.net-3.0-released-wcf-wwf-wpf.aspx#feedback</comments>
            <wfw:commentRss>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/comments/commentRss/144.aspx</wfw:commentRss>
            <trackback:ping>http://www.drowningintechnicaldebt.com/ShawnWeisfeld/services/trackbacks/144.aspx</trackback:ping>
        </item>
    </channel>
</rss>
