<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>Mike Hanson</title>
        <link>http://www.mikehanson.com/Default.aspx</link>
        <description>A drop of knowledge can start a ripple of understanding</description>
        <language>en-GB</language>
        <copyright>Mike Hanson</copyright>
        <generator>Subtext Version 2.1.0.5</generator>
        <image>
            <title>Mike Hanson</title>
            <url>http://www.mikehanson.com/images/RSS2Image.gif</url>
            <link>http://www.mikehanson.com/Default.aspx</link>
            <width>77</width>
            <height>60</height>
        </image>
        <item>
            <title>NavFx Updated for SL 2.0 Release</title>
            <category>Silverlight</category>
            <link>http://www.mikehanson.com/archive/2008/10/26/navfx-updated-for-sl-2.0-release.aspx</link>
            <description>&lt;p&gt;NavFx has been updated to work with the release version of Silverlight 2.0 and new downloads for binaries and templates are available at &lt;a href="http://www.codeplex.com/NavFx"&gt;http://www.codeplex.com/NavFx&lt;/a&gt;&lt;/p&gt;&lt;img src="http://www.mikehanson.com/aggbug/18.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Mike Hanson</dc:creator>
            <guid>http://www.mikehanson.com/archive/2008/10/26/navfx-updated-for-sl-2.0-release.aspx</guid>
            <pubDate>Sun, 26 Oct 2008 08:28:00 GMT</pubDate>
            <wfw:comment>http://www.mikehanson.com/comments/18.aspx</wfw:comment>
            <comments>http://www.mikehanson.com/archive/2008/10/26/navfx-updated-for-sl-2.0-release.aspx#feedback</comments>
            <slash:comments>2</slash:comments>
            <wfw:commentRss>http://www.mikehanson.com/comments/commentRss/18.aspx</wfw:commentRss>
        </item>
        <item>
            <title>NavFx Part 6 - Page Transition</title>
            <category>Silverlight</category>
            <link>http://www.mikehanson.com/archive/2008/08/23/navfx-part-6-page-transition-again.aspx</link>
            <description>The next article on NavFx is finally finished and can be read hear &lt;font face="Arial"&gt;&lt;a href="http://www.mikehanson.com/articles/navfx-part-6-page-transition.aspx"&gt;NavFx Part 6 - Page Transition&lt;/a&gt;&lt;/font&gt;&lt;img src="http://www.mikehanson.com/aggbug/17.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Mike Hanson</dc:creator>
            <guid>http://www.mikehanson.com/archive/2008/08/23/navfx-part-6-page-transition-again.aspx</guid>
            <pubDate>Sat, 23 Aug 2008 11:35:27 GMT</pubDate>
            <wfw:comment>http://www.mikehanson.com/comments/17.aspx</wfw:comment>
            <comments>http://www.mikehanson.com/archive/2008/08/23/navfx-part-6-page-transition-again.aspx#feedback</comments>
            <wfw:commentRss>http://www.mikehanson.com/comments/commentRss/17.aspx</wfw:commentRss>
        </item>
        <item>
            <title>NavFx Part 5 - The Many Faces of GoToPage</title>
            <category>Silverlight</category>
            <link>http://www.mikehanson.com/archive/2008/08/21/navfx-part-5-the-many-faces-of-gotopage-again.aspx</link>
            <description>&lt;p&gt;The next article on NavFx is finally finished and can be read hear &lt;font face="Arial"&gt;&lt;a href="http://www.mikehanson.com/articles/navfx-part-5-the-many-faces-of-gotopage.aspx"&gt;NavFx Part 5 - The Many Faces of GoToPage&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;img src="http://www.mikehanson.com/aggbug/15.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Mike Hanson</dc:creator>
            <guid>http://www.mikehanson.com/archive/2008/08/21/navfx-part-5-the-many-faces-of-gotopage-again.aspx</guid>
            <pubDate>Thu, 21 Aug 2008 17:37:21 GMT</pubDate>
            <wfw:comment>http://www.mikehanson.com/comments/15.aspx</wfw:comment>
            <comments>http://www.mikehanson.com/archive/2008/08/21/navfx-part-5-the-many-faces-of-gotopage-again.aspx#feedback</comments>
            <wfw:commentRss>http://www.mikehanson.com/comments/commentRss/15.aspx</wfw:commentRss>
        </item>
        <item>
            <title>NavFx Part 4 - Application Structure</title>
            <link>http://www.mikehanson.com/archive/2008/07/20/navfx-part-4-application-structure-again.aspx</link>
            <description>The next article on NavFx is now available and can be read here &lt;a href="http://www.mikehanson.com/articles/navfx-part-4-application-structure.aspx"&gt;NavFx Part 4 - Application Structure&lt;/a&gt;&lt;img src="http://www.mikehanson.com/aggbug/13.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Mike Hanson</dc:creator>
            <guid>http://www.mikehanson.com/archive/2008/07/20/navfx-part-4-application-structure-again.aspx</guid>
            <pubDate>Sun, 20 Jul 2008 11:28:24 GMT</pubDate>
            <wfw:comment>http://www.mikehanson.com/comments/13.aspx</wfw:comment>
            <comments>http://www.mikehanson.com/archive/2008/07/20/navfx-part-4-application-structure-again.aspx#feedback</comments>
            <wfw:commentRss>http://www.mikehanson.com/comments/commentRss/13.aspx</wfw:commentRss>
        </item>
        <item>
            <title>NavFx Part 3 - At The Interface</title>
            <category>Silverlight</category>
            <link>http://www.mikehanson.com/archive/2008/07/02/navfx-part-3---at-the-interface-again.aspx</link>
            <description>&lt;p&gt;The next article on NavFx is now available and can be read here &lt;font face="Arial"&gt;&lt;a href="http://www.mikehanson.com/articles/navfx-part-3---at-the-interface.aspx"&gt;NavFx Part 3 - At the Interface&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;img src="http://www.mikehanson.com/aggbug/11.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Mike Hanson</dc:creator>
            <guid>http://www.mikehanson.com/archive/2008/07/02/navfx-part-3---at-the-interface-again.aspx</guid>
            <pubDate>Wed, 02 Jul 2008 20:54:00 GMT</pubDate>
            <wfw:comment>http://www.mikehanson.com/comments/11.aspx</wfw:comment>
            <comments>http://www.mikehanson.com/archive/2008/07/02/navfx-part-3---at-the-interface-again.aspx#feedback</comments>
            <wfw:commentRss>http://www.mikehanson.com/comments/commentRss/11.aspx</wfw:commentRss>
        </item>
        <item>
            <title>NavFx Part 2 - Setting Up</title>
            <category>ASP.NET</category>
            <category>Silverlight</category>
            <link>http://www.mikehanson.com/archive/2008/07/01/navfx-part-2---setting-up-again.aspx</link>
            <description>&lt;p&gt;The next article on NavFX is now available and can be read here &lt;font face="Arial"&gt;&lt;a href="http://www.mikehanson.com/articles/navfx-part-2---setting-up.aspx"&gt;NavFx Part 2 - Setting Up&lt;/a&gt;&lt;/font&gt;&lt;/p&gt;&lt;img src="http://www.mikehanson.com/aggbug/8.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Mike Hanson</dc:creator>
            <guid>http://www.mikehanson.com/archive/2008/07/01/navfx-part-2---setting-up-again.aspx</guid>
            <pubDate>Tue, 01 Jul 2008 08:01:04 GMT</pubDate>
            <wfw:comment>http://www.mikehanson.com/comments/8.aspx</wfw:comment>
            <comments>http://www.mikehanson.com/archive/2008/07/01/navfx-part-2---setting-up-again.aspx#feedback</comments>
            <wfw:commentRss>http://www.mikehanson.com/comments/commentRss/8.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Silverlight Cross Domain WCF calls with VS WebDev.WebServer.exe</title>
            <category>ASP.NET</category>
            <category>Silverlight</category>
            <category>WCF</category>
            <link>http://www.mikehanson.com/archive/2008/06/27/silverlight-cross-domain-wcf-calls-with-vs-webdev.webserver.exe.aspx</link>
            <description>&lt;p&gt;This one had me stuck for hours earlier this week, and judging by the number of posts on forums plenty of other people are suffering the same, so I hope this little titbit saves someone the frustration I suffered.&lt;/p&gt;
&lt;p&gt;I am using Visual Studio 2008 to create a Silverlight 2.0 (beta 2 at the moment) application. In my solution I have two web site projects, one for hosting the application, the other to host WCF services.  All I want is to hit F5 and have both sites run in debug mode and my SL app call my WCF services and work.  So I set my projects up as I believed they should be via the properties sheet for the project root as follows.&lt;/p&gt;
&lt;ul&gt;
    &lt;li&gt;Disabled dynamic ports so I know the fixed address of the WCF &lt;/li&gt;
    &lt;li&gt;Remove the virtual directory name to make both root applications &lt;/li&gt;
    &lt;li&gt;Add the following clientaccesspolicy.xml file to the root of the WCF site (wide open for now) &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;br /&gt;
&amp;lt;access-policy&amp;gt;&lt;br /&gt;
 &amp;lt;cross-domain-access&amp;gt;&lt;br /&gt;
  &amp;lt;policy&amp;gt;&lt;br /&gt;
   &amp;lt;allow-from&amp;gt;&lt;br /&gt;
    &amp;lt;domain uri="*"/&amp;gt;&lt;br /&gt;
   &amp;lt;/allow-from&amp;gt;&lt;br /&gt;
   &amp;lt;grant-to&amp;gt;&lt;br /&gt;
    &amp;lt;resource path="/"&lt;br /&gt;
        include-subpaths="true"/&amp;gt;&lt;br /&gt;
   &amp;lt;/grant-to&amp;gt;&lt;br /&gt;
  &amp;lt;/policy&amp;gt;&lt;br /&gt;
 &amp;lt;/cross-domain-access&amp;gt;&lt;br /&gt;
&amp;lt;/access-policy&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;So having written the code for my SL app to call my WCF service, references and all that stuff working fine I expect it all to work, I hit F5 in VS 2008 and both sites run, I can browse to the .svc file and get a working web page telling me how to create a client but in my SL application I get an error when I hit the button to call the service.&lt;/p&gt;
&lt;p&gt;WTF? double check, tripple check, hours of googling to make sure I have done it right, that my clientaccesspolicy.xml file is right still not working.  I read hundreds of blog/forum posts and articles and still no clue.  Many talked about problems with WebDev.WebServer.exe not having a root to place the policy file in but I had that covered you can change it in the properties sheet for the project.   Still no luck.&lt;/p&gt;
&lt;p&gt;Just when I was about to give up and wire my project up to IIS I re-read an article that I had spotted earlier about "Self Hosting" WCF services in a Windows Service and what was required in the policy file to support this.  Light bulb moment, WebDev.WebServer.exe may not be a Windows Service but it is effectively a "Self Hosting Process", a quick change to my clientaccesspolicy.xml file and bingo it works.  What did I change?  Look below at the attribute in bold on the &amp;lt;allow-from&amp;gt; element.&lt;/p&gt;
&lt;p&gt;&lt;font face="Arial"&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;br /&gt;
&amp;lt;access-policy&amp;gt;&lt;br /&gt;
 &amp;lt;cross-domain-access&amp;gt;&lt;br /&gt;
  &amp;lt;policy&amp;gt;&lt;br /&gt;
   &amp;lt;allow-from &lt;strong&gt;http-request-headers="*"&lt;/strong&gt;&amp;gt;&lt;br /&gt;
    &amp;lt;domain uri="*"/&amp;gt;&lt;br /&gt;
   &amp;lt;/allow-from&amp;gt;&lt;br /&gt;
   &amp;lt;grant-to&amp;gt;&lt;br /&gt;
    &amp;lt;resource path="/"&lt;br /&gt;
        include-subpaths="true"/&amp;gt;&lt;br /&gt;
   &amp;lt;/grant-to&amp;gt;&lt;br /&gt;
  &amp;lt;/policy&amp;gt;&lt;br /&gt;
 &amp;lt;/cross-domain-access&amp;gt;&lt;br /&gt;
&amp;lt;/access-policy&amp;gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;So make this note in your little black book:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;When it comes to web services (WCF or ASMX) WebDev.WebServer.exe is a Self Hosting Process and any requirements for self hosting apply.&lt;/strong&gt;&lt;/p&gt;&lt;img src="http://www.mikehanson.com/aggbug/6.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Mike Hanson</dc:creator>
            <guid>http://www.mikehanson.com/archive/2008/06/27/silverlight-cross-domain-wcf-calls-with-vs-webdev.webserver.exe.aspx</guid>
            <pubDate>Fri, 27 Jun 2008 07:03:24 GMT</pubDate>
            <wfw:comment>http://www.mikehanson.com/comments/6.aspx</wfw:comment>
            <comments>http://www.mikehanson.com/archive/2008/06/27/silverlight-cross-domain-wcf-calls-with-vs-webdev.webserver.exe.aspx#feedback</comments>
            <wfw:commentRss>http://www.mikehanson.com/comments/commentRss/6.aspx</wfw:commentRss>
        </item>
        <item>
            <title>NavFx Part 1 - Quick Reference</title>
            <category>ASP.NET</category>
            <category>Silverlight</category>
            <link>http://www.mikehanson.com/archive/2008/06/21/navfx-part-1-again.aspx</link>
            <description>&lt;p&gt;I have posted my first article on the navigation framework NavFx I created for Silverlight.  Took a little longer than expected as I actually had to get some work done.  You can read it here &lt;font face="Arial"&gt;&lt;a href="http://www.mikehanson.com/articles/navfx-part-1.aspx"&gt;NavFx Part 1 - Quick Reference&lt;/a&gt;.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;1st July 2008 - This article has been updated with some recent changes and enhancements made to NavFx.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;&lt;img src="http://www.mikehanson.com/aggbug/5.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Mike Hanson</dc:creator>
            <guid>http://www.mikehanson.com/archive/2008/06/21/navfx-part-1-again.aspx</guid>
            <pubDate>Sat, 21 Jun 2008 16:46:14 GMT</pubDate>
            <wfw:comment>http://www.mikehanson.com/comments/5.aspx</wfw:comment>
            <comments>http://www.mikehanson.com/archive/2008/06/21/navfx-part-1-again.aspx#feedback</comments>
            <wfw:commentRss>http://www.mikehanson.com/comments/commentRss/5.aspx</wfw:commentRss>
        </item>
        <item>
            <title>Silverlight Navigation Framework</title>
            <category>ASP.NET</category>
            <category>Silverlight</category>
            <link>http://www.mikehanson.com/archive/2008/06/05/silverlight-navigation-framework.aspx</link>
            <description>&lt;p&gt;I am working on a navigation framework for Silverlight 2.* applications and will be posting a series of articles and the code over the coming days and weeks.&lt;/p&gt;
&lt;p&gt;The first article &lt;a href="http://www.mikehanson.com/articles/introducing-the-silverlight-navigation-framework.aspx"&gt;Introducing Silverlight Navigation Framework&lt;/a&gt;  is available now. &lt;/p&gt;&lt;img src="http://www.mikehanson.com/aggbug/3.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Mike Hanson</dc:creator>
            <guid>http://www.mikehanson.com/archive/2008/06/05/silverlight-navigation-framework.aspx</guid>
            <pubDate>Thu, 05 Jun 2008 07:18:41 GMT</pubDate>
            <wfw:comment>http://www.mikehanson.com/comments/3.aspx</wfw:comment>
            <comments>http://www.mikehanson.com/archive/2008/06/05/silverlight-navigation-framework.aspx#feedback</comments>
            <slash:comments>1</slash:comments>
            <wfw:commentRss>http://www.mikehanson.com/comments/commentRss/3.aspx</wfw:commentRss>
        </item>
    </channel>
</rss>