<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" 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:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>The Efficient Coder</title>
    <link>http://www.efficientcoder.net/</link>
    <description>There has got to be a better way of communicating with our computers!</description>
    <language>en-us</language>
    <copyright>Kevin D. Wolf</copyright>
    <lastBuildDate>Sun, 16 Nov 2008 18:56:42 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 1.8.5223.2</generator>
    <managingEditor>kevinw@software-logistics.com</managingEditor>
    <webMaster>kevinw@software-logistics.com</webMaster>
    <item>
      <trackback:ping>http://www.efficientcoder.net/Trackback.aspx?guid=179d71d5-df26-4c45-bcae-372ed0b1dc92</trackback:ping>
      <pingback:server>http://www.efficientcoder.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.efficientcoder.net/PermaLink,guid,179d71d5-df26-4c45-bcae-372ed0b1dc92.aspx</pingback:target>
      <dc:creator>kevinw@software-logistics.com (Kevin D. Wolf)</dc:creator>
      <wfw:comment>http://www.efficientcoder.net/CommentView,guid,179d71d5-df26-4c45-bcae-372ed0b1dc92.aspx</wfw:comment>
      <wfw:commentRss>http://www.efficientcoder.net/SyndicationService.asmx/GetEntryCommentsRss?guid=179d71d5-df26-4c45-bcae-372ed0b1dc92</wfw:commentRss>
      <title>One reason I like Silverlight/WPF</title>
      <guid>http://www.efficientcoder.net/PermaLink,guid,179d71d5-df26-4c45-bcae-372ed0b1dc92.aspx</guid>
      <link>http://www.efficientcoder.net/PermaLink,guid,179d71d5-df26-4c45-bcae-372ed0b1dc92.aspx</link>
      <pubDate>Sun, 16 Nov 2008 18:56:42 GMT</pubDate>
      <description>&lt;img style="FLOAT: right" src="http://www.efficientcoder.com/content/binary/logo.jpg" border=0&gt; 
&lt;p&gt;
   &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: 'Verdana','sans-serif'"&gt;&lt;font size=3&gt;&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;Early
   on in my career I was mentored on deferring execution.&amp;nbsp; This was in a language
   called FORTH and the idea was build your program structure and abstract the details
   into WORDS to be filled in later.&amp;nbsp; Repeat until complete.&amp;nbsp; This simple process
   still holds true today in OO languages like C# where I do most of my work.&lt;o:p&gt;&lt;/o:p&gt;
   &lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: 'Verdana','sans-serif'"&gt;&lt;font size=3&gt;Now
   back to why I like Silverlight/WPF, as I'm just starting to get beyond the basics,
   the more I'm starting to see that this is an extremely well thought out architecture.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;As
   I'm developing my functionality I can easily "defer execution" or really in this case,
   care zero about the style and then go in later and make it pretty.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;Or
   if I'm really lucky find someone that knows what they are doing to give it a polished
   look.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;Although the same can be done with
   HTML and CSS, this just seems like it's just a bit cleaner and since we are targetting
   only one type of client (Silverlight or WPF) instead of the different browsers the
   results are much more repeatable.&lt;o:p&gt;&lt;/o:p&gt;
   &lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: 'Verdana','sans-serif'"&gt;&lt;font size=3&gt;The
   other thing I'm really impressed with is the separation of UI and code behind.&lt;span style="mso-spacerun: yes"&gt;&amp;nbsp; &lt;/span&gt;Although
   time will tell on the actual business value (read ability to maintain and extend)
   it seems like the ability to create CLR instances in the XAML and then glue everything
   together with dependency properties, just feels good to do.&lt;o:p&gt;&lt;/o:p&gt;
   &lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: 'Verdana','sans-serif'"&gt;&lt;font size=3&gt;Now
   back to getting some work done with this!&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;span style="FONT-SIZE: 10pt; COLOR: #003300; FONT-FAMILY: 'Verdana','sans-serif'"&gt;&lt;font size=3&gt;-ec&lt;/font&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.efficientcoder.net/aggbug.ashx?id=179d71d5-df26-4c45-bcae-372ed0b1dc92" /&gt;</description>
      <comments>http://www.efficientcoder.net/CommentView,guid,179d71d5-df26-4c45-bcae-372ed0b1dc92.aspx</comments>
      <category>.NET 3.5;ASP.NET;Silverlight</category>
    </item>
    <item>
      <trackback:ping>http://www.efficientcoder.net/Trackback.aspx?guid=3257d29f-9390-400d-a1b1-b8fc8ca745bc</trackback:ping>
      <pingback:server>http://www.efficientcoder.net/pingback.aspx</pingback:server>
      <pingback:target>http://www.efficientcoder.net/PermaLink,guid,3257d29f-9390-400d-a1b1-b8fc8ca745bc.aspx</pingback:target>
      <dc:creator>kevinw@software-logistics.com (Kevin D. Wolf)</dc:creator>
      <wfw:comment>http://www.efficientcoder.net/CommentView,guid,3257d29f-9390-400d-a1b1-b8fc8ca745bc.aspx</wfw:comment>
      <wfw:commentRss>http://www.efficientcoder.net/SyndicationService.asmx/GetEntryCommentsRss?guid=3257d29f-9390-400d-a1b1-b8fc8ca745bc</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
          <font size="3">I've finally found a good excuse to implement something using <a href="http://weblogs.asp.net/scottgu/archive/2008/02/22/first-look-at-silverlight-2.aspx">Silverlight
      2.0</a> within my web product.  After spending about 3-4 hours attempting to
      get my Silverlight app to talk to a local web service, I found out something that
      hopefully will save you some time.  First a little about my environment. 
      I'm using IIS 7.0 on a 64 bit machine.  I have IIS setup with two sites for my
      Silverlight development, the first hosts my web service, the second hosts the web
      site containing my Silverlight application.  I have my hosts file setup
      as follows</font>
        </p>
        <p>
          <font size="3">127.0.0.1   webservice<br />
      127.0.0.1   website</font>
        </p>
        <p>
          <font size="3">Then in IIS I bind the the web sites to those host names.</font>
        </p>
        <p>
          <font size="3">After setting up the </font>
          <a href="http://msdn.microsoft.com/en-us/library/cc197955(VS.95).aspx">
            <font size="3">clientaccesspolicy.xml</font>
          </a>
          <font size="3"> file
      in my webservice site to allow Silverlight to access I just couldn't get my Silverlight
      app to talk to my web service.  I tried this in both IE and Firefox with no luck. 
      After doing a little testing, I found it worked when I used the development web
      server (I think this was formally called cassini) it also seemed to work when
      when I used the host name "localhost".  Next I fired up </font>
          <a href="http://www.fiddlertool.com/fiddler/">
            <font size="3">fiddler</font>
          </a>
          <font size="3"> and
      watched the network traffic.  Anytime I used cassini or local host, the clientaccesspolicy.xml
      was downloaded and the call to the web service </font>
          <font size="3">
            <span style="COLOR: #003300; FONT-FAMILY: 'Verdana','sans-serif'">succeeded. 
      If I tried this through my site, no request was made.</span>
          </font>
        </p>
        <p>
          <font size="3">
            <span style="COLOR: #003300; FONT-FAMILY: 'Verdana','sans-serif'">After
      trying a number of things I found I was able to get this working by opening the security
      settings within Internet Explorer</span>
          </font>
        </p>
        <p>
          <font size="3">
            <span style="COLOR: #003300; FONT-FAMILY: 'Verdana','sans-serif'">Tools-&gt;Internet
      Options-&gt;Security Tab, then click on Local Intranet and add my two sites. 
      This seemed to do the trick for both Internet Explorer and Firefox.</span>
          </font>
        </p>
        <p>
          <font size="3">
            <span style="COLOR: #003300; FONT-FAMILY: 'Verdana','sans-serif'">Hope
      this saves you a bit of time</span>
          </font>
        </p>
        <p>
          <font size="3">
            <span style="COLOR: #003300; FONT-FAMILY: 'Verdana','sans-serif'">-ec</span>
          </font>
          <font size="3"> </font>
        </p>
        <img width="0" height="0" src="http://www.efficientcoder.net/aggbug.ashx?id=3257d29f-9390-400d-a1b1-b8fc8ca745bc" />
      </body>
      <title>Local Silverlight Development and clientaccesspolicy.html</title>
      <guid>http://www.efficientcoder.net/PermaLink,guid,3257d29f-9390-400d-a1b1-b8fc8ca745bc.aspx</guid>
      <link>http://www.efficientcoder.net/PermaLink,guid,3257d29f-9390-400d-a1b1-b8fc8ca745bc.aspx</link>
      <pubDate>Tue, 04 Nov 2008 01:50:58 GMT</pubDate>
      <description>&lt;p&gt;
   &lt;font size=3&gt;I've finally found a good excuse to implement something using &lt;a href="http://weblogs.asp.net/scottgu/archive/2008/02/22/first-look-at-silverlight-2.aspx"&gt;Silverlight
   2.0&lt;/a&gt; within my web product.&amp;nbsp; After spending about 3-4 hours attempting to
   get my Silverlight app to talk to a local web service, I found out something that
   hopefully will save you some time.&amp;nbsp; First a little about my environment.&amp;nbsp;
   I'm using IIS 7.0 on a 64 bit machine.&amp;nbsp; I have IIS setup with two sites for my
   Silverlight development, the first hosts my web service, the second hosts the web
   site containing my Silverlight application.&amp;nbsp; I have&amp;nbsp;my hosts file setup
   as follows&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;font size=3&gt;127.0.0.1&amp;nbsp;&amp;nbsp;&amp;nbsp;webservice&lt;br&gt;
   127.0.0.1&amp;nbsp;&amp;nbsp;&amp;nbsp;website&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;font size=3&gt;Then in IIS I bind the the web sites to those host names.&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;font size=3&gt;After setting up the &lt;/font&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/cc197955(VS.95).aspx"&gt;&lt;font size=3&gt;clientaccesspolicy.xml&lt;/font&gt;&lt;/a&gt;&lt;font size=3&gt; file
   in my webservice site to allow Silverlight to access I just couldn't get my Silverlight
   app to talk to my web service.&amp;nbsp; I tried this in both IE and Firefox with no luck.&amp;nbsp;
   After doing a little testing, I found it worked when I used the&amp;nbsp;development web
   server (I think this was formally called cassini)&amp;nbsp;it also seemed to work when
   when I used the host name "localhost".&amp;nbsp; Next I fired up &lt;/font&gt;&lt;a href="http://www.fiddlertool.com/fiddler/"&gt;&lt;font size=3&gt;fiddler&lt;/font&gt;&lt;/a&gt;&lt;font size=3&gt; and
   watched the network traffic.&amp;nbsp; Anytime I used cassini or local host, the clientaccesspolicy.xml
   was downloaded and the call to the web service &lt;/font&gt;&lt;font size=3&gt;&lt;span style="COLOR: #003300; FONT-FAMILY: 'Verdana','sans-serif'"&gt;succeeded.&amp;nbsp;
   If I tried this through my site, no request was made.&lt;/span&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;font size=3&gt;&lt;span style="COLOR: #003300; FONT-FAMILY: 'Verdana','sans-serif'"&gt;After
   trying a number of things I found I was able to get this working by opening the security
   settings within Internet Explorer&lt;/span&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;font size=3&gt;&lt;span style="COLOR: #003300; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Tools-&amp;gt;Internet
   Options-&amp;gt;Security Tab, then click on Local Intranet and add my two sites.&amp;nbsp;
   This seemed to&amp;nbsp;do the trick for both Internet Explorer and Firefox.&lt;/span&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;font size=3&gt;&lt;span style="COLOR: #003300; FONT-FAMILY: 'Verdana','sans-serif'"&gt;Hope
   this saves you a bit of time&lt;/span&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
   &lt;font size=3&gt;&lt;span style="COLOR: #003300; FONT-FAMILY: 'Verdana','sans-serif'"&gt;-ec&lt;/span&gt;&lt;/font&gt;&lt;font size=3&gt;&amp;nbsp;&lt;/font&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.efficientcoder.net/aggbug.ashx?id=3257d29f-9390-400d-a1b1-b8fc8ca745bc" /&gt;</description>
      <comments>http://www.efficientcoder.net/CommentView,guid,3257d29f-9390-400d-a1b1-b8fc8ca745bc.aspx</comments>
      <category>ASP.NET;Silverlight</category>
    </item>
  </channel>
</rss>