<?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>abi.exdream.com - Benjamin Nitschke's Blog - Silverlight</title>
    <link>http://exdream.no-ip.info/blog/</link>
    <description>Benjamin Nitschke's Blog about .NET, Game Development and my daily life.</description>
    <language>en-us</language>
    <copyright>abi.exdream.com</copyright>
    <lastBuildDate>Mon, 28 Jan 2008 15:21:17 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 1.9.6264.0</generator>
    <managingEditor>abi@exDream.com</managingEditor>
    <webMaster>abi@exDream.com</webMaster>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=c81aabe2-e19c-4639-9b09-908378bf1fb1</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,c81aabe2-e19c-4639-9b09-908378bf1fb1.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,c81aabe2-e19c-4639-9b09-908378bf1fb1.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=c81aabe2-e19c-4639-9b09-908378bf1fb1</wfw:commentRss>
      <slash:comments>2</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">Hi everyone,<br /><br />
I prepared some new exciting blog posts, especially about XNA and I will post them
shortly and also quite a few things will change at this blog. Stay tuned.<br /><br />
Recently one of my companies (namely <a href="http://realis-communities.com">realis</a>)
moved to Hamburg and I have a new PC at the new office, where I installed Visual Studio
2008 and everything else I needed. After I downloaded the latest source code files
from <a href="http://msdn2.microsoft.com/en-us/teamsystem/default.aspx">Team System</a>,
I ran into some problems. BTW: The Team System trial will end next month and I will
probably not switch back to <a href="http://subversion.tigris.org/">SubVersion</a>,
but instead go back to <a href="http://msdn2.microsoft.com/en-us/vs2005/aa718670.aspx">Visual
SourceSafe</a> since the integration is the best in Visual Studio. Team System is
nice to have but absolutely not something important for me as I'm most of the time
the only guy using it anyways.<br /><br />
Back to the Problem. After I loaded the main solution the 2 web applications in it
were unable to be loaded. The rest of the projects did load fine and worked after
a while until I had all the missing Assemblies installed (<a href="http://www.codeplex.com/xunit">xunit</a>, <a href="http://www.asp.net/ajax/">Ajax
stuff</a>, <a href="http://silverlight.net/">Silverlight</a>, <a href="http://www.codeplex.com/Wiki/View.aspx?ProjectName=IronPython">IronPython</a>, <a href="http://www.entityspaces.net/Portal/Default.aspx">EntitySpaces</a>,
etc.). But even after making sure Silverlight and the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=25144C27-6514-4AD4-8BCB-E2E051416E03&amp;displaylang=en">Silverlight
Tools for Visual Studio Alpha</a> was installed and working (checked it by creating
a new Silverlight project, which worked fine), I was still unable to load those projects.
I thought at first maybe something went wrong when I checked in or out all the files,
but after testing it on my laptop this was not the issue, all files are intact. Everything
worked just fine on my laptop, where I had done most of my work during the move and
first weeks until everything was finally working here.<br /><br />
After digging around a bit I went back to the IIS were those 2 websites should run
on and they did not run yet (not compiled yet, no wonder). But even after I pointed
to some dummy website the IIS did throw out some errors (first some dlls were missing,
they were quickly replaced, then some security issues with Vista, also easy). Then
I pointed back to the location of the projects and made sure IIS was working this
time. Now I could go back to Visual Studio and finally load the web projects.<br /><br />
If you have such a <b>InteropServices.COMException</b>, try to see if you have missed
something like the Silverlight Tools for Visual Studio Alpha and then figure out if
your IIS is working. You can also edit the .csproj file and remove the references
to IIS at the very end of the file to see if the project can then be loaded (using
IIS again is not hard through the project properties).<br /><br />
Hope this helps (phase stolen from <a href="http://weblogs.asp.net/scottgu/">ScottGu</a>,
btw: really cool stuff going on over there, the <a href="http://weblogs.asp.net/scottgu/archive/2007/12/09/asp-net-mvc-framework-part-4-handling-form-edit-and-post-scenarios.aspx">ASP.NET
MVC framework</a> is nice and <a href="http://weblogs.asp.net/scottgu/archive/2008/01/16/net-framework-library-source-code-now-available.aspx">the
.NET Framework SourceCode</a> is very helpful!)<br /><p></p><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=c81aabe2-e19c-4639-9b09-908378bf1fb1" /></body>
      <title>What to do if you receive the System.Runtime. InteropServices.COMException error in Visual Studio</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,c81aabe2-e19c-4639-9b09-908378bf1fb1.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2008/01/28/WhatToDoIfYouReceiveTheSystemRuntimeInteropServicesCOMExceptionErrorInVisualStudio.aspx</link>
      <pubDate>Mon, 28 Jan 2008 15:21:17 GMT</pubDate>
      <description>Hi everyone,&lt;br&gt;
&lt;br&gt;
I prepared some new exciting blog posts, especially about XNA and I will post them
shortly and also quite a few things will change at this blog. Stay tuned.&lt;br&gt;
&lt;br&gt;
Recently one of my companies (namely &lt;a href="http://realis-communities.com"&gt;realis&lt;/a&gt;)
moved to Hamburg and I have a new PC at the new office, where I installed Visual Studio
2008 and everything else I needed. After I downloaded the latest source code files
from &lt;a href="http://msdn2.microsoft.com/en-us/teamsystem/default.aspx"&gt;Team System&lt;/a&gt;,
I ran into some problems. BTW: The Team System trial will end next month and I will
probably not switch back to &lt;a href="http://subversion.tigris.org/"&gt;SubVersion&lt;/a&gt;,
but instead go back to &lt;a href="http://msdn2.microsoft.com/en-us/vs2005/aa718670.aspx"&gt;Visual
SourceSafe&lt;/a&gt; since the integration is the best in Visual Studio. Team System is
nice to have but absolutely not something important for me as I'm most of the time
the only guy using it anyways.&lt;br&gt;
&lt;br&gt;
Back to the Problem. After I loaded the main solution the 2 web applications in it
were unable to be loaded. The rest of the projects did load fine and worked after
a while until I had all the missing Assemblies installed (&lt;a href="http://www.codeplex.com/xunit"&gt;xunit&lt;/a&gt;, &lt;a href="http://www.asp.net/ajax/"&gt;Ajax
stuff&lt;/a&gt;, &lt;a href="http://silverlight.net/"&gt;Silverlight&lt;/a&gt;, &lt;a href="http://www.codeplex.com/Wiki/View.aspx?ProjectName=IronPython"&gt;IronPython&lt;/a&gt;, &lt;a href="http://www.entityspaces.net/Portal/Default.aspx"&gt;EntitySpaces&lt;/a&gt;,
etc.). But even after making sure Silverlight and the &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=25144C27-6514-4AD4-8BCB-E2E051416E03&amp;amp;displaylang=en"&gt;Silverlight
Tools for Visual Studio Alpha&lt;/a&gt; was installed and working (checked it by creating
a new Silverlight project, which worked fine), I was still unable to load those projects.
I thought at first maybe something went wrong when I checked in or out all the files,
but after testing it on my laptop this was not the issue, all files are intact. Everything
worked just fine on my laptop, where I had done most of my work during the move and
first weeks until everything was finally working here.&lt;br&gt;
&lt;br&gt;
After digging around a bit I went back to the IIS were those 2 websites should run
on and they did not run yet (not compiled yet, no wonder). But even after I pointed
to some dummy website the IIS did throw out some errors (first some dlls were missing,
they were quickly replaced, then some security issues with Vista, also easy). Then
I pointed back to the location of the projects and made sure IIS was working this
time. Now I could go back to Visual Studio and finally load the web projects.&lt;br&gt;
&lt;br&gt;
If you have such a &lt;b&gt;InteropServices.COMException&lt;/b&gt;, try to see if you have missed
something like the Silverlight Tools for Visual Studio Alpha and then figure out if
your IIS is working. You can also edit the .csproj file and remove the references
to IIS at the very end of the file to see if the project can then be loaded (using
IIS again is not hard through the project properties).&lt;br&gt;
&lt;br&gt;
Hope this helps (phase stolen from &lt;a href="http://weblogs.asp.net/scottgu/"&gt;ScottGu&lt;/a&gt;,
btw: really cool stuff going on over there, the &lt;a href="http://weblogs.asp.net/scottgu/archive/2007/12/09/asp-net-mvc-framework-part-4-handling-form-edit-and-post-scenarios.aspx"&gt;ASP.NET
MVC framework&lt;/a&gt; is nice and &lt;a href="http://weblogs.asp.net/scottgu/archive/2008/01/16/net-framework-library-source-code-now-available.aspx"&gt;the
.NET Framework SourceCode&lt;/a&gt; is very helpful!)&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=c81aabe2-e19c-4639-9b09-908378bf1fb1" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,c81aabe2-e19c-4639-9b09-908378bf1fb1.aspx</comments>
      <category>Ajax;All;Development;IronPython;Programming;Reviews;Silverlight;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=fc3ecad7-cf29-40df-b852-70cd6424c95e</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,fc3ecad7-cf29-40df-b852-70cd6424c95e.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,fc3ecad7-cf29-40df-b852-70cd6424c95e.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=fc3ecad7-cf29-40df-b852-70cd6424c95e</wfw:commentRss>
      <slash:comments>3</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <img src="http://silverlight.net/Themes/silverlight/images/logo.jpg" style="float: right;" /> From <a href="http://nerddawg.blogspot.com/2007/09/nothing-beats-shipping-silverlight-10.html">http://nerddawg.blogspot.com/2007/09/
nothing-beats-shipping-silverlight-10.html</a>:<br />
Today Microsoft <a href="http://www.microsoft.com/presspass/press/2007/sep07/09-04SilverlightPR.mspx" title="Silverlight 1.0 press release">announced </a>the
debut release of <a href="http://www.microsoft.com/silverlight">Silverlight</a>, the
new cross-browser, cross-platform technology for developing compelling media experiences
and RIAs. I joined the Silverlight effort around November of 2006 from working on
WPF 3.5 feature areas, and it has been a wonderful ride. Working on two different
product releases – Silverlight 1.0 and 1.1 - simultaneously is a very unique experience
not easily summarized in a blog post. The kind of stuff this team has done in a matter
of months is nothing short of amazing. We joke internally about how someday books
will be written about these episodes; and needless to say, about the giants upon whose
shoulders people like me stood. But for now, I’m happy and tremendously fortunate
to have been a part of shipping a great product that millions will use and love.<br /><br />
I agree with that statement, not much I can add. I'm glad to see Silverlight 1.0 is
now final and <a href="http://weblogs.asp.net/scottgu/">Scott Guthrie</a> and his
team will now focus on improving Silverlight 1.1. In our german sport community website <a href="http://meinSport.de">meinSport.de</a> we
already use Silverlight too and we plan to add even more features with that exciting
technology in the near future.<br /><br /><a href="http://www.microsoft.com/Silverlight/Install.aspx">You can get Silverlight
at Silverlight.net<br /></a><p></p><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=fc3ecad7-cf29-40df-b852-70cd6424c95e" /></body>
      <title>Silverlight 1.0 Final Released</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,fc3ecad7-cf29-40df-b852-70cd6424c95e.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/09/05/Silverlight10FinalReleased.aspx</link>
      <pubDate>Wed, 05 Sep 2007 17:15:37 GMT</pubDate>
      <description>&lt;img src="http://silverlight.net/Themes/silverlight/images/logo.jpg" style="float: right;"&gt; From &lt;a href="http://nerddawg.blogspot.com/2007/09/nothing-beats-shipping-silverlight-10.html"&gt;http://nerddawg.blogspot.com/2007/09/
nothing-beats-shipping-silverlight-10.html&lt;/a&gt;:&lt;br&gt;
Today Microsoft &lt;a href="http://www.microsoft.com/presspass/press/2007/sep07/09-04SilverlightPR.mspx" title="Silverlight 1.0 press release"&gt;announced &lt;/a&gt;the
debut release of &lt;a href="http://www.microsoft.com/silverlight"&gt;Silverlight&lt;/a&gt;, the
new cross-browser, cross-platform technology for developing compelling media experiences
and RIAs. I joined the Silverlight effort around November of 2006 from working on
WPF 3.5 feature areas, and it has been a wonderful ride. Working on two different
product releases – Silverlight 1.0 and 1.1 - simultaneously is a very unique experience
not easily summarized in a blog post. The kind of stuff this team has done in a matter
of months is nothing short of amazing. We joke internally about how someday books
will be written about these episodes; and needless to say, about the giants upon whose
shoulders people like me stood. But for now, I’m happy and tremendously fortunate
to have been a part of shipping a great product that millions will use and love.&lt;br&gt;
&lt;br&gt;
I agree with that statement, not much I can add. I'm glad to see Silverlight 1.0 is
now final and &lt;a href="http://weblogs.asp.net/scottgu/"&gt;Scott Guthrie&lt;/a&gt; and his
team will now focus on improving Silverlight 1.1. In our german sport community website &lt;a href="http://meinSport.de"&gt;meinSport.de&lt;/a&gt; we
already use Silverlight too and we plan to add even more features with that exciting
technology in the near future.&lt;br&gt;
&lt;br&gt;
&lt;a href="http://www.microsoft.com/Silverlight/Install.aspx"&gt;You can get Silverlight
at Silverlight.net&lt;br&gt;
&lt;/a&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=fc3ecad7-cf29-40df-b852-70cd6424c95e" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,fc3ecad7-cf29-40df-b852-70cd6424c95e.aspx</comments>
      <category>All;Programming;Reviews;Silverlight</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=5a146202-65f6-429e-84d1-acaa1a866d05</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,5a146202-65f6-429e-84d1-acaa1a866d05.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,5a146202-65f6-429e-84d1-acaa1a866d05.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=5a146202-65f6-429e-84d1-acaa1a866d05</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">When you have some Silverlight 1.1 alpha
code and want to use it with the new Silverlight 1.1 alpha refresh bits, you should
make sure to replace all assemblies and recompile any libraries you have. You still
might get quite a few errors because of some minor changes in the javascript code.
I haven't fixed all issues yet, but the main one was replacing the Silverlight.js
and fixing the .js files for html (or aspx) pages to the new syntax. Sys.Silverlight
is now just Silverlight, the version is now not longer called 0.95, but 1.1 and enableHtmlAccess
has to be set to "true" instead of just true before.<br /><br />
When you get the 2211 error code with Silverlight 1.1 alpha refresh with that nice
AG_E_RUNTIME_HTML_ACCESS_RESTRICTED error follow this steps:<br /><ul><li>
Replace Silverlight.js with the newer version from alpha refresh (you probably have
done that already)</li></ul><ul><li>
Replace Sys.Silverlight.createObjectEx with Silverlight.createObjectEx in all your
.js files</li></ul><ul><li>
Also replace all version="0.95" with version="1.1" in all .js files!</li></ul><ul><li>
Finally replace enableHtmlAccess: true with enableHtmlAccess: "true"<br />
This change is very important and will finally get rid of the Html access restricted
error above.<br />
If you like the error, you can "enable" it again by setting enableHtmlAccess to "false"
^^</li></ul><br />
There are probably much more little changes and fixes, but this should get the simpler
pages up and running again.<br /><p></p><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=5a146202-65f6-429e-84d1-acaa1a866d05" /></body>
      <title>Migrating from Silverlight 1.1 alpha to 1.1 alpha refresh and that lovely AG_E_RUNTIME_ HTML_ACCESS_RESTRICTED error</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,5a146202-65f6-429e-84d1-acaa1a866d05.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/07/29/MigratingFromSilverlight11AlphaTo11AlphaRefreshAndThatLovelyAGERUNTIMEHTMLACCESSRESTRICTEDError.aspx</link>
      <pubDate>Sun, 29 Jul 2007 18:57:29 GMT</pubDate>
      <description>When you have some Silverlight 1.1 alpha code and want to use it with the new Silverlight 1.1 alpha refresh bits, you should make sure to replace all assemblies and recompile any libraries you have. You still might get quite a few errors because of some minor changes in the javascript code. I haven't fixed all issues yet, but the main one was replacing the Silverlight.js and fixing the .js files for html (or aspx) pages to the new syntax. Sys.Silverlight is now just Silverlight, the version is now not longer called 0.95, but 1.1 and enableHtmlAccess has to be set to "true" instead of just true before.&lt;br&gt;
&lt;br&gt;
When you get the 2211 error code with Silverlight 1.1 alpha refresh with that nice
AG_E_RUNTIME_HTML_ACCESS_RESTRICTED error follow this steps:&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
Replace Silverlight.js with the newer version from alpha refresh (you probably have
done that already)&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
Replace Sys.Silverlight.createObjectEx with Silverlight.createObjectEx in all your
.js files&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
Also replace all version="0.95" with version="1.1" in all .js files!&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
Finally replace enableHtmlAccess: true with enableHtmlAccess: "true"&lt;br&gt;
This change is very important and will finally get rid of the Html access restricted
error above.&lt;br&gt;
If you like the error, you can "enable" it again by setting enableHtmlAccess to "false"
^^&lt;/li&gt;
&lt;/ul&gt;
&lt;br&gt;
There are probably much more little changes and fixes, but this should get the simpler
pages up and running again.&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=5a146202-65f6-429e-84d1-acaa1a866d05" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,5a146202-65f6-429e-84d1-acaa1a866d05.aspx</comments>
      <category>All;Development;Programming;Reviews;Silverlight</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=d7585559-9415-4f62-9f0b-76777de1621b</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,d7585559-9415-4f62-9f0b-76777de1621b.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,d7585559-9415-4f62-9f0b-76777de1621b.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=d7585559-9415-4f62-9f0b-76777de1621b</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">After VS2008 beta 2 is available now, Silverlight
was also updated. For Javascript development the Silverlight 1.0 RC means you are
not longer in beta mode and the version will stay the same. For .NET development Silverlight
1.1 is still in alpha, which propably means there are still a lot of features missing,
a lot of bugs in there and it is still hard to work with it. However, over 2000 bugs
where fixed since the Silverlight 1.1 Alpha release 3 months ago.<br /><br />
For Silverlight designers: Blend 2 was also updated to an August CTP, a lot of small
improvements here too. The best thing here is the ability to create and compile user
controls and some nice changes to the Storyboard editing process.<br /><br />
Download links:<br /><ul><li><a href="http://go.microsoft.com/fwlink/?LinkID=89015&amp;clcid=0x409">Silverlight
1.0 RC (for da browser)<br /></a></li><li><a href="http://go.microsoft.com/fwlink/?LinkID=88986&amp;clcid=0x409">Silverlight
1.1 Alpha Refresh (for da browser)<br /></a></li><li><a href="http://go.microsoft.com/fwlink/?LinkID=89145&amp;clcid=0x409">Silverlight
1.1 Alpha Refresh SDK (some new samples and updated code)<br /></a></li><li><a href="http://go.microsoft.com/fwlink/?LinkID=79076&amp;clcid=0x409">Blend 2 Preview
(August CTP, important for designers)</a></li><li><a href="http://go.microsoft.com/fwlink/?LinkID=89149&amp;clcid=0x409">Microsoft Silverlight
Tools Alpha for VS2008 Beta 2 (for Alpha Refresh, July 2007)</a></li><li><a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=A5189BCB-EF81-4C12-9733-E294D13A58E6&amp;displaylang=en">Microsoft
ASP.NET Futures (July 2007, also kinda important for ASP.NET Ajax and Silverlight)</a><br /></li></ul>
Seen first on:<br /><ul><li><a href="http://www.codeflakes.net/blog/">http://www.codeflakes.net/blog/<br /></a></li><li><a href="http://silverlight.net/blogs/jesseliberty/archive/2007/07/27/silverlight-1-0-rc-and-1-1-alpha-refresh.aspx">http://silverlight.net/blogs/jesseliberty/archive/2007/07/27/<br />
silverlight-1-0-rc-and-1-1-alpha-refresh.aspx</a><br /></li></ul>
Scott Guthrie also has a nice blog entry about VS2008 Intellisense improvements, a
lot of small improvements, which might impress you if you have never used Resharper
and CodeRush before. It is always nice to see the overall coding experience becoming
easier, even if it is in small steps.<br /><ul><li><a href="http://weblogs.asp.net/scottgu/archive/2007/07/28/nice-vs-2008-code-editing-improvements.aspx">Scott
Gu's Blog about VS2008 Intellisense</a><br /></li></ul><p></p><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=d7585559-9415-4f62-9f0b-76777de1621b" /></body>
      <title>Silverlight 1.0 RC and 1.1 Alpha Refresh released</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,d7585559-9415-4f62-9f0b-76777de1621b.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/07/29/Silverlight10RCAnd11AlphaRefreshReleased.aspx</link>
      <pubDate>Sun, 29 Jul 2007 12:43:40 GMT</pubDate>
      <description>After VS2008 beta 2 is available now, Silverlight was also updated. For Javascript development the Silverlight 1.0 RC means you are not longer in beta mode and the version will stay the same. For .NET development Silverlight 1.1 is still in alpha, which propably means there are still a lot of features missing, a lot of bugs in there and it is still hard to work with it. However, over 2000 bugs where fixed since the Silverlight 1.1 Alpha release 3 months ago.&lt;br&gt;
&lt;br&gt;
For Silverlight designers: Blend 2 was also updated to an August CTP, a lot of small
improvements here too. The best thing here is the ability to create and compile user
controls and some nice changes to the Storyboard editing process.&lt;br&gt;
&lt;br&gt;
Download links:&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="http://go.microsoft.com/fwlink/?LinkID=89015&amp;amp;clcid=0x409"&gt;Silverlight
1.0 RC (for da browser)&lt;br&gt;
&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://go.microsoft.com/fwlink/?LinkID=88986&amp;amp;clcid=0x409"&gt;Silverlight
1.1 Alpha Refresh (for da browser)&lt;br&gt;
&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://go.microsoft.com/fwlink/?LinkID=89145&amp;amp;clcid=0x409"&gt;Silverlight
1.1 Alpha Refresh SDK (some new samples and updated code)&lt;br&gt;
&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://go.microsoft.com/fwlink/?LinkID=79076&amp;amp;clcid=0x409"&gt;Blend 2 Preview
(August CTP, important for designers)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://go.microsoft.com/fwlink/?LinkID=89149&amp;amp;clcid=0x409"&gt;Microsoft Silverlight
Tools Alpha for VS2008 Beta 2 (for Alpha Refresh, July 2007)&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=A5189BCB-EF81-4C12-9733-E294D13A58E6&amp;amp;displaylang=en"&gt;Microsoft
ASP.NET Futures (July 2007, also kinda important for ASP.NET Ajax and Silverlight)&lt;/a&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
Seen first on:&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="http://www.codeflakes.net/blog/"&gt;http://www.codeflakes.net/blog/&lt;br&gt;
&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href="http://silverlight.net/blogs/jesseliberty/archive/2007/07/27/silverlight-1-0-rc-and-1-1-alpha-refresh.aspx"&gt;http://silverlight.net/blogs/jesseliberty/archive/2007/07/27/&lt;br&gt;
silverlight-1-0-rc-and-1-1-alpha-refresh.aspx&lt;/a&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
Scott Guthrie also has a nice blog entry about VS2008 Intellisense improvements, a
lot of small improvements, which might impress you if you have never used Resharper
and CodeRush before. It is always nice to see the overall coding experience becoming
easier, even if it is in small steps.&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="http://weblogs.asp.net/scottgu/archive/2007/07/28/nice-vs-2008-code-editing-improvements.aspx"&gt;Scott
Gu's Blog about VS2008 Intellisense&lt;/a&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=d7585559-9415-4f62-9f0b-76777de1621b" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,d7585559-9415-4f62-9f0b-76777de1621b.aspx</comments>
      <category>All;Development;Other;Programming;Reviews;Silverlight</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=3b72e1d9-7e04-4fa8-861c-25f240848e0b</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,3b72e1d9-7e04-4fa8-861c-25f240848e0b.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,3b72e1d9-7e04-4fa8-861c-25f240848e0b.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=3b72e1d9-7e04-4fa8-861c-25f240848e0b</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">Great News, read all about it on Scott
Guthries Blog:<br /><a href="http://weblogs.asp.net/scottgu/archive/2007/07/26/vs-2008-and-net-3-5-beta-2-released.aspx">http://weblogs.asp.net/scottgu/archive/2007/07/26/<br />
vs-2008-and-net-3-5-beta-2-released.aspx</a><br /><br />
It features major improvements to ASP.NET Ajax, Linq, the build in Webdesigner and
CSS/Javascript.<br />
Seems like nothing for Silverlight yet, still awaiting some updates there :)<br /><br />
Have to check VS 2008 out now ^^<br /><p></p><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=3b72e1d9-7e04-4fa8-861c-25f240848e0b" /></body>
      <title>VS 2008 and .NET 3.5 Beta 2 Released</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,3b72e1d9-7e04-4fa8-861c-25f240848e0b.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/07/27/VS2008AndNET35Beta2Released.aspx</link>
      <pubDate>Fri, 27 Jul 2007 04:52:59 GMT</pubDate>
      <description>Great News, read all about it on Scott Guthries Blog:&lt;br&gt;
&lt;a href="http://weblogs.asp.net/scottgu/archive/2007/07/26/vs-2008-and-net-3-5-beta-2-released.aspx"&gt;http://weblogs.asp.net/scottgu/archive/2007/07/26/&lt;br&gt;
vs-2008-and-net-3-5-beta-2-released.aspx&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
It features major improvements to ASP.NET Ajax, Linq, the build in Webdesigner and
CSS/Javascript.&lt;br&gt;
Seems like nothing for Silverlight yet, still awaiting some updates there :)&lt;br&gt;
&lt;br&gt;
Have to check VS 2008 out now ^^&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=3b72e1d9-7e04-4fa8-861c-25f240848e0b" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,3b72e1d9-7e04-4fa8-861c-25f240848e0b.aspx</comments>
      <category>Ajax;All;Development;Programming;Reviews;Silverlight</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=66be904a-7091-4a08-87ed-4d21a93c61a6</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,66be904a-7091-4a08-87ed-4d21a93c61a6.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,66be904a-7091-4a08-87ed-4d21a93c61a6.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=66be904a-7091-4a08-87ed-4d21a93c61a6</wfw:commentRss>
      <slash:comments>5</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">Side note: <a href="http://developer.nvidia.com/object/fx_composer_home.html">FX
Composer 2 RC1 </a>is out. Check it out, works even better now.<br /><br />
I worked a bit with Silverlight 1.1 (alpha) over the last few weeks and I noticed
a lot of annoying<br />
javascript error messages with just stupid error codes and no stack trace for the
exceptions.<br />
This is definately the worst thing about Silverlight, you have to do a lot of trial
and error testing,<br />
unit testing and debugging silverlight is also hard to do.<br /><br />
I wrote down all the errors I have encountered and some solutions to them, which might
be<br />
helpful to other people coding Silverlight too. Now whenever I get an error I just
look into this<br />
list and follow the steps from top to bottom and this way I save a lot of time ^^
maybe I will<br />
also rewrite the javascript on_error code that throws these errors to a more useful
version.<br /><br />
Silverlight Error Codes:<br /><ul><li>
1001: usually AG_E_UNKNOWN_ERROR (yeah, thats really helpful)</li></ul><blockquote><ul><li>
some element is null while loading a control<br />
Fix: Check all controls constructors and fields, set breakpoints there!<br /></li></ul></blockquote><blockquote><ul><li>
Namespace duplicate found (usually error code 2254)<br />
Fix: Check all namespaces, make sure each name and namespace is only set once<br /><br /></li><li>
Control has no default Constructor and can't be instantiated<br />
Fix: Provide a default constructor with no parameters, it can be empty!<br /></li></ul></blockquote><blockquote><ul><li>
NullReferenceException (or other exceptions) happend somewhere<br />
(usually in the Control constructor somewhere)<br />
Fix: Catch the exception or set breakpoints to find it, then fix it.<br />
Often it is also useful to comment code out and test if it works again.<br /><br /></li><li>
If this all not helps and the 1001 errors keeps coming up when you use the 
<br />
control use the following approach:<br /><br />
Fix: Comment out the control, the page should now work.<br />
Comment it in again and check every single property you set, try removing<br />
as much as possible and test again. If it still does not work, check out<br />
the control itself, comment everything out here inside the control canvas.<br />
It should work now except for some errors of missing inner control names.<br />
Now slowly comment everything in again and try to see which inner control<br />
did not work. Often a depreciacted, commented out or deleted property is<br />
used and causes this error. Again try to work with as little as possible<br />
control properties and increase until the error pops up again.<br /><br />
This more complex case will hopefully not happen to you in the beginning,<br />
but the more controls you build, the more likely it is that this one<br />
will annoy the hell out of you. Keep calm and go forward as methodically<br />
as possible, it will also help you for future error encounters.<br /></li></ul></blockquote><blockquote><ul><li>
Can happen if a TargetName for a Storyboard (or something similar) cannot<br />
be found. Make sure the target control name is still valid.<br /></li></ul></blockquote><br /><ul><li>
2005:    ParserError: Unknown namespace xy</li></ul><blockquote><ul><li>
The line should tell you which namespace is unknown and this should<br />
be quite easy to fix. It usually means you have either forgotten to<br />
add a namespace or add an element into an unsupported location.<br />
E.g. adding something to a nested Canvas can sometimes cause this error.<br /></li></ul></blockquote><br /><ul><li>
2024: ParserError:</li></ul><blockquote><ul><li>
Invalid attribute value text/python, usually happens in the main xaml file.<br />
Similar to 2265, use the same fixes.<br /><br /></li><li>
It can also happen when the mime type<br />
is not available (e.g. in IIS) and .py files can't be used.<br />
Fix: Define .py as mime type in IIS as 'text/ironpython'<br /></li></ul></blockquote>        <br /><ul><li>
2101: can be:</li></ul><blockquote><ul><li>
LostFocus event (or similar) not supported here<br />
Fix: Move global events to the main canvas, they are only supported there!<br /></li></ul></blockquote><br /><ul><li>
2207: AG_E_RUNTIME_METHOD</li></ul><blockquote><ul><li>
playing media failed, unable to play it, loading probably failed with 403<br />
or 404<br /></li></ul></blockquote><br /><ul><li>
2210: AG_E_INVALID_ARGUMENT</li></ul><blockquote><ul><li>
Short: In 90% of your cases the embedded resource cannot be found, make<br />
sure that the name of your embedded resource is correct in the<br />
GetManifestResourceStream function in your control constructor. Also make<br />
sure the file is marked as an embedded resource in VS Orcas!<br /></li></ul></blockquote><blockquote><ul><li>
This means the embedded resource could not be found, which means either the<br />
call to GetManifestResourceStream uses the wrong string OR the resource<br />
is just not existant because of a wrong content type! make sure the<br />
control you are trying to access is actually an Embedded Resource and not<br />
just a Content or Silverlight Page.<br /><br />
Fix: Set control xaml as Embedded Resource and make sure all strings are<br />
correct! GetManifestResourceStream should succeed! Using the Silverlight<br />
1.1 API UI Controls is also helpful because they figure out the path<br />
for you (just leaving you with misstyping the control name or forgetting<br />
to set the embedded resource type or one of the million errors below).<br /><br />
Note: This is very annoying because SourceControl sometimes messes this up<br />
and just merges 2 files and setting it as Content or Silverlight Page,<br />
which make this error hard to track, so always check for the correct<br />
file build action first, it should always be Embedded Resource for controls.<br /></li></ul></blockquote><blockquote><ul><li>
Another way this error can happen is when inside the control a namespace<br />
error occurs (similar to 1001 or 2254), you just get 2210 and trying to<br />
find why it does not work while all names are set ok and the resource is<br />
found, etc. One example of this failing is that a namespace or assembly<br />
used inside a control to reference other controls cannot be found or is<br />
misspelled (e.g. path does not longer fit, can be stupid things like<br />
ClientBin/Some.dll should be ../ClientBin/Some.dll)<br /><br />
Fix: Check all namespaces in the control too, make sure all names are<br />
correct and files (especially assemblies) can be found the way they<br />
are specified!<br /><br />
Advanced Fix: I use reflection to find out about the class name and use<br />
that same name for the .xaml file, this way I never have to specify<br />
any name and merging files does not lead to problems as long as the xaml<br />
file has the same name as the class (which is easy to spot in VS Orcas).<br /></li></ul></blockquote><blockquote><ul><li>
Another VERY crazy way for this to happen is when one of your controls is<br />
using the partial keyword for its control class and overwrites some of the<br />
autogenerated background fields (through x:Class in the main Canvas of the<br />
control), it is probably better to always remove the partial and make sure<br />
the control is all managed by you (like in the SDK samples).<br /><br />
Fix: Remove the partial in c# and the x:Class in xaml if you get compile<br />
errors, after that it usually just works :)<br /></li></ul></blockquote><blockquote><ul><li>
Older notes (before I figured this out):<br />
Seems to happen with perfectly fine xaml code, no c# breakpoint is ever<br />
hit, so this must happen while parsing the xaml. Often also changes to error<br />
2254 if some name or namespace is wrong, but then gets back to 2210 if that<br />
is fixed.<br /></li></ul></blockquote><blockquote><ul><li>
Someone here traced the 2210 back to “InitializeFromXaml” being called<br />
with an invalid resource stream (GetManifestResourceStream), which failed<br />
one line above it:<br /><a href="http://silverlight.net/forums/t/1755.aspx">http://silverlight.net/forums/t/1755.aspx</a><br /></li></ul></blockquote>    <br /><ul><li>
2251: ParserError, AG_E_RUNTIME_MANAGED_ACTIVATION</li></ul><blockquote><ul><li>
Probably a security issue, seems to happen on a Max when the xaml file<br />
could not be loaded or accesses something that is not available (assemblies)<br />
Fix: Seems to be a Mac bug, will hopefully be fixed in the future.<br /></li></ul></blockquote>        <br /><ul><li>
2252: can be:</li></ul><blockquote><ul><li>
Canvas Load Error, canvas could not be loaded because something is wrong<br />
it may help to check out the line and error description for more details.<br />
Fix: Look through the xaml line by line, annoying, but something is wrong<br /></li></ul></blockquote><blockquote><ul><li>
AG_E_RUNTIME_MANAGED_ASSEMBLY_DOWNLOAD:<br />
When this happens the control at the line specified failed to load.<br />
This can be because it crashed somewhere in the constructor, setting a<br />
breakpoint usually tells you wether it crashed in C# or already in the<br />
xaml. If it is in the xaml, you have to figure out the error there (try<br />
to uncomment, check namings, etc.). If it happens in C# setting a<br />
breakpoint makes it much easier, but the error is still annoying. For<br />
that reason you should make sure to test your controls as much as<br />
possible before using them on a complex page.<br /><br />
Fix: Set a breakpoint in the constructor of the control and fix the<br />
exception! Or if that does not help, take a close look at the xaml<br />
and comment it out to see what works and what does not.<br /></li></ul></blockquote><blockquote><ul><li>
More help about 2252 from <a href="http://silverlight.net/forums/t/370.aspx">http://silverlight.net/forums/t/370.aspx</a><br />
Assembly loading failed, this can happen because of the IIS being<br />
misconfigured (unlikely if you doing development) or because the<br />
path to the assembly could not be found (much more likely).<br /><br />
Fix: Make sure both the page xaml and the control xaml point to the<br />
correct directory for the dll and make sure this works from the<br />
perspective of the page, not the directories the xaml files are in!<br />
In my case changing ClientBin/.dll to ../ClientBin/.dll often did<br />
the trick!<br /></li></ul></blockquote><blockquote><ul><li>
Another issue can happen when you rename the assembly, but not all the<br />
.dll links are correct. It can also be problematic if there are special<br />
letters like - in the assembly, which will get renamed to _, but the<br />
filename is still with -, see here:<br /><a href="http://silverlight.net/forums/t/370.aspx">http://silverlight.net/forums/t/370.aspx</a><br /><br />
Fix: Just check all .dll links and make sure both the name and the path<br />
are correct.<br /></li></ul></blockquote>        <br /><ul><li>
2254: AG_E_RUNTIME_MANAGER_ASSEMBLY_DOWNLOAD, can be:</li></ul><blockquote><ul><li>
Control type not found because a namespace is not set correctly, this can<br />
happen if you just copy a file from another project and do not change the<br />
namespace accordingly.<br />
Fix: Make sure all namespaces are correct (same in xaml as in the controls)<br /><br /></li><li>
Namespace duplicate found, make sure that all namespaces and names only<br />
occur once.<br />
Fix: See above 1001<br /></li></ul></blockquote>        <br /><ul><li>
2255: AG_E_PARSER_BAD_TYPE</li></ul><blockquote><ul><li>
An unsupported type was found, which usually means you are specifying a<br />
control or class for the xaml, which does not exist (anymore). Make sure<br />
that the x:Class parameter points to an existing class and uses a correct<br />
namespace.<br /></li></ul></blockquote><blockquote><ul><li>
Also seems to happen when there are multiple comment blocks mixed in the<br />
xaml file or some name contains an invalid character because of that.<br />
Clear the xaml file and test until it works again, then insert the removed<br />
code again to figure out where the error is happening. The line/position<br />
information of this error is usually not very helpful!<br /></li></ul></blockquote>        <br /><ul><li>
2265: Error: Parser code</li></ul><blockquote><ul><li>
Parsing xaml failed, this has been reported after saving some xaml in Blend<br />
but it could not be parsed in Visual Studio.<br />
Fix: Try using only parts of the xaml, use smaller files, dunno.<br /><br /></li><li>
Parsing xmal failed, some syntax error.<br />
Fix: You should be able to spot the error and fix it if it is a smaller<br />
file, for bigger files comment most of it out and comment it back in until<br />
it breaks again. Then fix the issue.<br /></li></ul></blockquote><br /><ul><li>
3001: AG_E_INVALID_FILE_FORMAT</li></ul><blockquote><ul><li>
Often a ImageError, which usually means you are trying to load an<br />
unsupported image format like the .GIF format, which is not supported<br />
by Silverlight yet.<br />
Fix: Use .PNG instead of .GIF, etc.<br /></li></ul></blockquote>        <br /><ul><li>
3002: AG_E_NOT_FOUND:</li></ul><blockquote><ul><li>
Error type should describe which kind of resource was not found (usually<br />
ImageError). Check your constructor and Page_Loaded methods and check<br />
all the files that are loaded there and make sure they exist. This is<br />
probably the equivalent of FileNotFoundException, just all the helpful<br />
information (which file, why, etc.) is missing. Sometimes the error type is<br />
confusing because it may report an ImageError, but in reality just the xaml<br />
file could not be loaded, always check the xaml file (name, loading, etc.)!<br /></li></ul></blockquote>        <br /><ul><li>
3010: can be:</li></ul><blockquote><ul><li>
Silverlight installation is not complete yet, restart browser (or computer<br />
if this error persists).<br />
Fix: Tell user to restart browser.<br /></li></ul></blockquote><br />
Link to the silverlight.net forum (post this here too), 13 known issues<br />
with Silverlight 1.1. It is good to know them:<br /><a href="http://silverlight.net/forums/t/2400.aspx">http://silverlight.net/forums/t/2400.aspx</a><br /><br />
Other helpful links:<br /><a href="http://blogs.conchango.com/stevenevans/archive/2007/06/06/Silverlight-Adventures-with-Blend.aspx">http://blogs.conchango.com/stevenevans/archive/2007/06/06/<br />
Silverlight-Adventures-with-Blend.aspx</a><br /><a href="http://www.thescripts.com/forum/thread650457.html">http://www.thescripts.com/forum/thread650457.html</a><br /><a href="http://silverlight.org/forums/t/1422.aspx">http://silverlight.org/forums/t/1422.aspx</a><br /><br />
Note: I will add more errors to this list for Silverlight 1.1 alpha, but I will probably
just<br />
write a new blog entry for newer Silverlight versions. Still pretty excited about
the new<br />
VS Orcas Beta 2 release ^^<br /><p></p><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=66be904a-7091-4a08-87ed-4d21a93c61a6" /></body>
      <title>Silverlight Error Codes Explained!</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,66be904a-7091-4a08-87ed-4d21a93c61a6.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/07/20/SilverlightErrorCodesExplained.aspx</link>
      <pubDate>Fri, 20 Jul 2007 23:49:28 GMT</pubDate>
      <description>Side note: &lt;a href="http://developer.nvidia.com/object/fx_composer_home.html"&gt;FX Composer
2 RC1 &lt;/a&gt;is out. Check it out, works even better now.&lt;br&gt;
&lt;br&gt;
I worked a bit with Silverlight 1.1 (alpha) over the last few weeks and I noticed
a lot of annoying&lt;br&gt;
javascript error messages with just stupid error codes and no stack trace for the
exceptions.&lt;br&gt;
This is definately the worst thing about Silverlight, you have to do a lot of trial
and error testing,&lt;br&gt;
unit testing and debugging silverlight is also hard to do.&lt;br&gt;
&lt;br&gt;
I wrote down all the errors I have encountered and some solutions to them, which might
be&lt;br&gt;
helpful to other people coding Silverlight too. Now whenever I get an error I just
look into this&lt;br&gt;
list and follow the steps from top to bottom and this way I save a lot of time ^^
maybe I will&lt;br&gt;
also rewrite the javascript on_error code that throws these errors to a more useful
version.&lt;br&gt;
&lt;br&gt;
Silverlight Error Codes:&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
1001: usually AG_E_UNKNOWN_ERROR (yeah, thats really helpful)&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
some element is null while loading a control&lt;br&gt;
Fix: Check all controls constructors and fields, set breakpoints there!&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
Namespace duplicate found (usually error code 2254)&lt;br&gt;
Fix: Check all namespaces, make sure each name and namespace is only set once&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;li&gt;
Control has no default Constructor and can't be instantiated&lt;br&gt;
Fix: Provide a default constructor with no parameters, it can be empty!&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
NullReferenceException (or other exceptions) happend somewhere&lt;br&gt;
(usually in the Control constructor somewhere)&lt;br&gt;
Fix: Catch the exception or set breakpoints to find it, then fix it.&lt;br&gt;
Often it is also useful to comment code out and test if it works again.&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;li&gt;
If this all not helps and the 1001 errors keeps coming up when you use the 
&lt;br&gt;
control use the following approach:&lt;br&gt;
&lt;br&gt;
Fix: Comment out the control, the page should now work.&lt;br&gt;
Comment it in again and check every single property you set, try removing&lt;br&gt;
as much as possible and test again. If it still does not work, check out&lt;br&gt;
the control itself, comment everything out here inside the control canvas.&lt;br&gt;
It should work now except for some errors of missing inner control names.&lt;br&gt;
Now slowly comment everything in again and try to see which inner control&lt;br&gt;
did not work. Often a depreciacted, commented out or deleted property is&lt;br&gt;
used and causes this error. Again try to work with as little as possible&lt;br&gt;
control properties and increase until the error pops up again.&lt;br&gt;
&lt;br&gt;
This more complex case will hopefully not happen to you in the beginning,&lt;br&gt;
but the more controls you build, the more likely it is that this one&lt;br&gt;
will annoy the hell out of you. Keep calm and go forward as methodically&lt;br&gt;
as possible, it will also help you for future error encounters.&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
Can happen if a TargetName for a Storyboard (or something similar) cannot&lt;br&gt;
be found. Make sure the target control name is still valid.&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
2005:&amp;nbsp;&amp;nbsp; &amp;nbsp;ParserError: Unknown namespace xy&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
The line should tell you which namespace is unknown and this should&lt;br&gt;
be quite easy to fix. It usually means you have either forgotten to&lt;br&gt;
add a namespace or add an element into an unsupported location.&lt;br&gt;
E.g. adding something to a nested Canvas can sometimes cause this error.&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
2024: ParserError:&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
Invalid attribute value text/python, usually happens in the main xaml file.&lt;br&gt;
Similar to 2265, use the same fixes.&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;li&gt;
It can also happen when the mime type&lt;br&gt;
is not available (e.g. in IIS) and .py files can't be used.&lt;br&gt;
Fix: Define .py as mime type in IIS as 'text/ironpython'&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
2101: can be:&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
LostFocus event (or similar) not supported here&lt;br&gt;
Fix: Move global events to the main canvas, they are only supported there!&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
2207: AG_E_RUNTIME_METHOD&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
playing media failed, unable to play it, loading probably failed with 403&lt;br&gt;
or 404&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
2210: AG_E_INVALID_ARGUMENT&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
Short: In 90% of your cases the embedded resource cannot be found, make&lt;br&gt;
sure that the name of your embedded resource is correct in the&lt;br&gt;
GetManifestResourceStream function in your control constructor. Also make&lt;br&gt;
sure the file is marked as an embedded resource in VS Orcas!&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
This means the embedded resource could not be found, which means either the&lt;br&gt;
call to GetManifestResourceStream uses the wrong string OR the resource&lt;br&gt;
is just not existant because of a wrong content type! make sure the&lt;br&gt;
control you are trying to access is actually an Embedded Resource and not&lt;br&gt;
just a Content or Silverlight Page.&lt;br&gt;
&lt;br&gt;
Fix: Set control xaml as Embedded Resource and make sure all strings are&lt;br&gt;
correct! GetManifestResourceStream should succeed! Using the Silverlight&lt;br&gt;
1.1 API UI Controls is also helpful because they figure out the path&lt;br&gt;
for you (just leaving you with misstyping the control name or forgetting&lt;br&gt;
to set the embedded resource type or one of the million errors below).&lt;br&gt;
&lt;br&gt;
Note: This is very annoying because SourceControl sometimes messes this up&lt;br&gt;
and just merges 2 files and setting it as Content or Silverlight Page,&lt;br&gt;
which make this error hard to track, so always check for the correct&lt;br&gt;
file build action first, it should always be Embedded Resource for controls.&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
Another way this error can happen is when inside the control a namespace&lt;br&gt;
error occurs (similar to 1001 or 2254), you just get 2210 and trying to&lt;br&gt;
find why it does not work while all names are set ok and the resource is&lt;br&gt;
found, etc. One example of this failing is that a namespace or assembly&lt;br&gt;
used inside a control to reference other controls cannot be found or is&lt;br&gt;
misspelled (e.g. path does not longer fit, can be stupid things like&lt;br&gt;
ClientBin/Some.dll should be ../ClientBin/Some.dll)&lt;br&gt;
&lt;br&gt;
Fix: Check all namespaces in the control too, make sure all names are&lt;br&gt;
correct and files (especially assemblies) can be found the way they&lt;br&gt;
are specified!&lt;br&gt;
&lt;br&gt;
Advanced Fix: I use reflection to find out about the class name and use&lt;br&gt;
that same name for the .xaml file, this way I never have to specify&lt;br&gt;
any name and merging files does not lead to problems as long as the xaml&lt;br&gt;
file has the same name as the class (which is easy to spot in VS Orcas).&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
Another VERY crazy way for this to happen is when one of your controls is&lt;br&gt;
using the partial keyword for its control class and overwrites some of the&lt;br&gt;
autogenerated background fields (through x:Class in the main Canvas of the&lt;br&gt;
control), it is probably better to always remove the partial and make sure&lt;br&gt;
the control is all managed by you (like in the SDK samples).&lt;br&gt;
&lt;br&gt;
Fix: Remove the partial in c# and the x:Class in xaml if you get compile&lt;br&gt;
errors, after that it usually just works :)&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
Older notes (before I figured this out):&lt;br&gt;
Seems to happen with perfectly fine xaml code, no c# breakpoint is ever&lt;br&gt;
hit, so this must happen while parsing the xaml. Often also changes to error&lt;br&gt;
2254 if some name or namespace is wrong, but then gets back to 2210 if that&lt;br&gt;
is fixed.&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
Someone here traced the 2210 back to “InitializeFromXaml” being called&lt;br&gt;
with an invalid resource stream (GetManifestResourceStream), which failed&lt;br&gt;
one line above it:&lt;br&gt;
&lt;a href="http://silverlight.net/forums/t/1755.aspx"&gt;http://silverlight.net/forums/t/1755.aspx&lt;/a&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
2251: ParserError, AG_E_RUNTIME_MANAGED_ACTIVATION&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
Probably a security issue, seems to happen on a Max when the xaml file&lt;br&gt;
could not be loaded or accesses something that is not available (assemblies)&lt;br&gt;
Fix: Seems to be a Mac bug, will hopefully be fixed in the future.&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
2252: can be:&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
Canvas Load Error, canvas could not be loaded because something is wrong&lt;br&gt;
it may help to check out the line and error description for more details.&lt;br&gt;
Fix: Look through the xaml line by line, annoying, but something is wrong&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
AG_E_RUNTIME_MANAGED_ASSEMBLY_DOWNLOAD:&lt;br&gt;
When this happens the control at the line specified failed to load.&lt;br&gt;
This can be because it crashed somewhere in the constructor, setting a&lt;br&gt;
breakpoint usually tells you wether it crashed in C# or already in the&lt;br&gt;
xaml. If it is in the xaml, you have to figure out the error there (try&lt;br&gt;
to uncomment, check namings, etc.). If it happens in C# setting a&lt;br&gt;
breakpoint makes it much easier, but the error is still annoying. For&lt;br&gt;
that reason you should make sure to test your controls as much as&lt;br&gt;
possible before using them on a complex page.&lt;br&gt;
&lt;br&gt;
Fix: Set a breakpoint in the constructor of the control and fix the&lt;br&gt;
exception! Or if that does not help, take a close look at the xaml&lt;br&gt;
and comment it out to see what works and what does not.&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
More help about 2252 from &lt;a href="http://silverlight.net/forums/t/370.aspx"&gt;http://silverlight.net/forums/t/370.aspx&lt;/a&gt;
&lt;br&gt;
Assembly loading failed, this can happen because of the IIS being&lt;br&gt;
misconfigured (unlikely if you doing development) or because the&lt;br&gt;
path to the assembly could not be found (much more likely).&lt;br&gt;
&lt;br&gt;
Fix: Make sure both the page xaml and the control xaml point to the&lt;br&gt;
correct directory for the dll and make sure this works from the&lt;br&gt;
perspective of the page, not the directories the xaml files are in!&lt;br&gt;
In my case changing ClientBin/.dll to ../ClientBin/.dll often did&lt;br&gt;
the trick!&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
Another issue can happen when you rename the assembly, but not all the&lt;br&gt;
.dll links are correct. It can also be problematic if there are special&lt;br&gt;
letters like - in the assembly, which will get renamed to _, but the&lt;br&gt;
filename is still with -, see here:&lt;br&gt;
&lt;a href="http://silverlight.net/forums/t/370.aspx"&gt;http://silverlight.net/forums/t/370.aspx&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
Fix: Just check all .dll links and make sure both the name and the path&lt;br&gt;
are correct.&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
2254: AG_E_RUNTIME_MANAGER_ASSEMBLY_DOWNLOAD, can be:&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
Control type not found because a namespace is not set correctly, this can&lt;br&gt;
happen if you just copy a file from another project and do not change the&lt;br&gt;
namespace accordingly.&lt;br&gt;
Fix: Make sure all namespaces are correct (same in xaml as in the controls)&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;li&gt;
Namespace duplicate found, make sure that all namespaces and names only&lt;br&gt;
occur once.&lt;br&gt;
Fix: See above 1001&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
2255: AG_E_PARSER_BAD_TYPE&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
An unsupported type was found, which usually means you are specifying a&lt;br&gt;
control or class for the xaml, which does not exist (anymore). Make sure&lt;br&gt;
that the x:Class parameter points to an existing class and uses a correct&lt;br&gt;
namespace.&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
Also seems to happen when there are multiple comment blocks mixed in the&lt;br&gt;
xaml file or some name contains an invalid character because of that.&lt;br&gt;
Clear the xaml file and test until it works again, then insert the removed&lt;br&gt;
code again to figure out where the error is happening. The line/position&lt;br&gt;
information of this error is usually not very helpful!&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
2265: Error: Parser code&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
Parsing xaml failed, this has been reported after saving some xaml in Blend&lt;br&gt;
but it could not be parsed in Visual Studio.&lt;br&gt;
Fix: Try using only parts of the xaml, use smaller files, dunno.&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;li&gt;
Parsing xmal failed, some syntax error.&lt;br&gt;
Fix: You should be able to spot the error and fix it if it is a smaller&lt;br&gt;
file, for bigger files comment most of it out and comment it back in until&lt;br&gt;
it breaks again. Then fix the issue.&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
3001: AG_E_INVALID_FILE_FORMAT&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
Often a ImageError, which usually means you are trying to load an&lt;br&gt;
unsupported image format like the .GIF format, which is not supported&lt;br&gt;
by Silverlight yet.&lt;br&gt;
Fix: Use .PNG instead of .GIF, etc.&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
3002: AG_E_NOT_FOUND:&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
Error type should describe which kind of resource was not found (usually&lt;br&gt;
ImageError). Check your constructor and Page_Loaded methods and check&lt;br&gt;
all the files that are loaded there and make sure they exist. This is&lt;br&gt;
probably the equivalent of FileNotFoundException, just all the helpful&lt;br&gt;
information (which file, why, etc.) is missing. Sometimes the error type is&lt;br&gt;
confusing because it may report an ImageError, but in reality just the xaml&lt;br&gt;
file could not be loaded, always check the xaml file (name, loading, etc.)!&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
3010: can be:&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
Silverlight installation is not complete yet, restart browser (or computer&lt;br&gt;
if this error persists).&lt;br&gt;
Fix: Tell user to restart browser.&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;br&gt;
Link to the silverlight.net forum (post this here too), 13 known issues&lt;br&gt;
with Silverlight 1.1. It is good to know them:&lt;br&gt;
&lt;a href="http://silverlight.net/forums/t/2400.aspx"&gt;http://silverlight.net/forums/t/2400.aspx&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
Other helpful links:&lt;br&gt;
&lt;a href="http://blogs.conchango.com/stevenevans/archive/2007/06/06/Silverlight-Adventures-with-Blend.aspx"&gt;http://blogs.conchango.com/stevenevans/archive/2007/06/06/&lt;br&gt;
Silverlight-Adventures-with-Blend.aspx&lt;/a&gt;
&lt;br&gt;
&lt;a href="http://www.thescripts.com/forum/thread650457.html"&gt;http://www.thescripts.com/forum/thread650457.html&lt;/a&gt;
&lt;br&gt;
&lt;a href="http://silverlight.org/forums/t/1422.aspx"&gt;http://silverlight.org/forums/t/1422.aspx&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
Note: I will add more errors to this list for Silverlight 1.1 alpha, but I will probably
just&lt;br&gt;
write a new blog entry for newer Silverlight versions. Still pretty excited about
the new&lt;br&gt;
VS Orcas Beta 2 release ^^&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=66be904a-7091-4a08-87ed-4d21a93c61a6" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,66be904a-7091-4a08-87ed-4d21a93c61a6.aspx</comments>
      <category>All;Development;Game Development;Other;Programming;Reviews;Silverlight</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=0fe65b3e-7d53-49d5-a001-c2d4b8cece7d</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,0fe65b3e-7d53-49d5-a001-c2d4b8cece7d.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,0fe65b3e-7d53-49d5-a001-c2d4b8cece7d.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=0fe65b3e-7d53-49d5-a001-c2d4b8cece7d</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">When you try to implement a Silverlight
project into an existing ASP.NET Ajax<br />
website you will just click Add Silverlight link to a specific directory in your<br />
website (don't spam everything into your main directory). Then you might want<br />
to use same the html code from your test sites in the ASPX page, like this:<br /><b><br />
&lt;head runat="server"&gt;<br />
  &lt;title&gt;Some title&lt;/title&gt;<br />
  &lt;script type="text/javascript" src="Silverlight.js"&gt;&lt;/script&gt;<br />
  &lt;script type="text/javascript" src="Default.aspx.js"&gt;&lt;/script&gt;<br />
&lt;/head&gt;</b><br /><br />
And the SilverlightControlHost somewhere in the body (in the form).<br />
You also might want to move the body onload method to a div panel in case you<br />
are using a master page or you want multiple silverlight controls:<br /><br />
  <b>      &lt;div id="SilverlightControlHost"<br />
            onload="document.getElementById('SilverlightControl').focus()"&gt;<br />
            &lt;script type="text/javascript"&gt;<br />
                createSilverlight();<br />
            &lt;/script&gt;<br />
        &lt;/div&gt;</b><br /><br />
You might be able to compile and start that without any problems, BUT if you<br />
already have a lot of ASP.NET Ajax code you might end up with this error (and<br />
a bunch more, most of them with Sys.Res in the error description).<br /><b><br />
Line: 967<br />
Error: Sys.Res.namespaceContainsObject is null or not an object<br /></b><br /><img src="http://exdream.no-ip.info/blog/content/binary/SilverlightScriptSysResError.png" border="0" /><br /><br />
The problem is that both Silverlight and some generated ASP.NET Ajax javascript<br />
files use the same javascript object (Sys.Res), but overwrite it and disable the<br />
functionality that is needed. You won't find much information on that with<br />
google, but the solution is very simple! Just put the scripts directly into<br />
your ScriptManager of the site like this and remove the scripts from the header:<br /><br /><b>        &lt;asp:ScriptManager ID="ScriptManager1"
runat="server"&gt;<br />
            &lt;Scripts&gt;<br />
                &lt;asp:ScriptReference
Path="Silverlight.js" /&gt;<br />
                &lt;asp:ScriptReference
Path="Default.aspx.js" /&gt;<br />
            &lt;/Scripts&gt;<br />
        &lt;/asp:ScriptManager&gt;</b><br />
        <br />
Hope this helps and saves you some time.<img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=0fe65b3e-7d53-49d5-a001-c2d4b8cece7d" /></body>
      <title>Fixing the Sys.Res. namespaceContainsObject error with ASP.NET Ajax+Silverlight</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,0fe65b3e-7d53-49d5-a001-c2d4b8cece7d.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/07/17/FixingTheSysResNamespaceContainsObjectErrorWithASPNETAjaxSilverlight.aspx</link>
      <pubDate>Tue, 17 Jul 2007 18:58:07 GMT</pubDate>
      <description>When you try to implement a Silverlight project into an existing ASP.NET Ajax&lt;br&gt;
website you will just click Add Silverlight link to a specific directory in your&lt;br&gt;
website (don't spam everything into your main directory). Then you might want&lt;br&gt;
to use same the html code from your test sites in the ASPX page, like this:&lt;br&gt;
&lt;b&gt;
&lt;br&gt;
&amp;lt;head runat="server"&amp;gt;&lt;br&gt;
&amp;nbsp; &amp;lt;title&amp;gt;Some title&amp;lt;/title&amp;gt;&lt;br&gt;
&amp;nbsp; &amp;lt;script type="text/javascript" src="Silverlight.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;br&gt;
&amp;nbsp; &amp;lt;script type="text/javascript" src="Default.aspx.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;br&gt;
&amp;lt;/head&amp;gt;&lt;/b&gt;
&lt;br&gt;
&lt;br&gt;
And the SilverlightControlHost somewhere in the body (in the form).&lt;br&gt;
You also might want to move the body onload method to a div panel in case you&lt;br&gt;
are using a master page or you want multiple silverlight controls:&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&lt;b&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;div id="SilverlightControlHost"&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;onload="document.getElementById('SilverlightControl').focus()"&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;script type="text/javascript"&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;createSilverlight();&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/script&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/div&amp;gt;&lt;/b&gt;
&lt;br&gt;
&lt;br&gt;
You might be able to compile and start that without any problems, BUT if you&lt;br&gt;
already have a lot of ASP.NET Ajax code you might end up with this error (and&lt;br&gt;
a bunch more, most of them with Sys.Res in the error description).&lt;br&gt;
&lt;b&gt;
&lt;br&gt;
Line: 967&lt;br&gt;
Error: Sys.Res.namespaceContainsObject is null or not an object&lt;br&gt;
&lt;/b&gt;
&lt;br&gt;
&lt;img src="http://exdream.no-ip.info/blog/content/binary/SilverlightScriptSysResError.png" border="0"&gt;
&lt;br&gt;
&lt;br&gt;
The problem is that both Silverlight and some generated ASP.NET Ajax javascript&lt;br&gt;
files use the same javascript object (Sys.Res), but overwrite it and disable the&lt;br&gt;
functionality that is needed. You won't find much information on that with&lt;br&gt;
google, but the solution is very simple! Just put the scripts directly into&lt;br&gt;
your ScriptManager of the site like this and remove the scripts from the header:&lt;br&gt;
&lt;br&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;asp:ScriptManager ID="ScriptManager1"
runat="server"&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;Scripts&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:ScriptReference
Path="Silverlight.js" /&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:ScriptReference
Path="Default.aspx.js" /&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/Scripts&amp;gt;&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/asp:ScriptManager&amp;gt;&lt;/b&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br&gt;
Hope this helps and saves you some time.&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=0fe65b3e-7d53-49d5-a001-c2d4b8cece7d" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,0fe65b3e-7d53-49d5-a001-c2d4b8cece7d.aspx</comments>
      <category>Ajax;All;Development;Programming;Silverlight</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=7fda5289-b11c-4c62-b961-0c4b12b59897</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,7fda5289-b11c-4c62-b961-0c4b12b59897.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,7fda5289-b11c-4c62-b961-0c4b12b59897.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=7fda5289-b11c-4c62-b961-0c4b12b59897</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">Using a webservice in silverlight can be
very problematic. It does not work out of the<br />
box when you just add a web reference and try to use it. You will get a lot of<br />
501 - Internal Server Errors, WebException - Error invoking service, etc.<br /><br />
Instead of repeating what so many people have already reported for Silverlight<br />
and Web services I will just link to them and give you a small comment about<br />
each link. My solution is below (it was something completely different than<br />
the links I present here, but maybe I did not read all of them carefully).<br /><br /><font size="4">Links:<br /></font><ul><li>
Silverlight documentation about using remoting and webservices. Two solutions are
presented, but the help is very short and if you have not done it before there can
be many problems that are not discussed here. But this two ways are the standard solutions
that almost everyone uses.<br /><a href="http://www.silverlight.net/QuickStarts/Remote/default.aspx">http://www.silverlight.net/QuickStarts/Remote/default.aspx</a><br /></li></ul><br /><ul><li>
Silverlight board with the System.Net.WebException I mentioned above, the forum posters
recomment using a static port.<br /><a href="http://silverlight.net/forums/p/2575/7132.aspx">http://silverlight.net/forums/p/2575/7132.aspx</a><br /></li></ul><br /><ul><li>
Jon Galloway fixes the problem by assigning a static port to the webservice and silverlight
app, I couldn't reproduce it in VS Orcas on Vista x64, the webservice always uses
a new random port, no matter which one I gave it. But if you can use his technique,
it is probably one of the easier solutions. He also explains the main problem very
good and give detailed insight on the IsCrossDomainRequest method that causes the
problem!<br /><a href="http://weblogs.asp.net/jgalloway/archive/2007/06/14/calling-an-asmx-webservice-from-silverlight-use-a-static-port.aspx">http://weblogs.asp.net/jgalloway/archive/2007/06/14/<br />
calling-an-asmx-webservice-from-silverlight-use-a-static-port.aspx</a><br /></li></ul><br /><ul><li>
I used another solution to put all websites, web services and silverlight projects
onto my IIS 7 server in Vista x64, but I had troubles debugging them. I moved also
to IIS because it was annoying to test the website with the fun crashes VS Orcas gives
you from time to time and it also has the advantage to show a working version on your
colleagues computers by pointing to your computer's IIS.</li></ul><br /><blockquote><ul><li>
The following article might be helpful on which things you have to keep your eyes
open for when working with Vista and IIS 7. <a href="http://mvolo.com/blogs/serverside/archive/2006/12/28/Fix-problems-with-Visual-Studio-F5-debugging-of-ASP.NET-applications-on-IIS7-Vista.aspx">http://mvolo.com/blogs/serverside/archive/2006/12/28/<br />
Fix-problems-with-Visual-Studio-F5-debugging-of-ASP.NET-applications-on-IIS7-Vista.aspx</a></li></ul></blockquote><br /><blockquote><ul><li>
Here is another quick article on debugging websites on IIS:<br /><a href="http://ryanfarley.com/blog/archive/2005/08/23/8540.aspx">http://ryanfarley.com/blog/archive/2005/08/23/8540.aspx</a><br /></li></ul></blockquote><br /><blockquote><ul><li>
And another one from MSDN (little bit dated, but can be useful):<br /><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vsdebug.asp">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vsdebug.asp</a><br /></li></ul></blockquote><br /><blockquote><ul><li>
Another MSDN article on Vista and IIS7: 
<br /><a href="http://msdn.microsoft.com/msdnmag/issues/07/03/IIS7/default.aspx">http://msdn.microsoft.com/msdnmag/issues/07/03/IIS7/default.aspx</a><br /></li></ul></blockquote><br />
        In short this is what I had to do to get debugging
and executing working for web sites and web services in IIS7 with VS Orcas:<br /><blockquote><ul><li>
Install IIS (Internet Information Services) first, you can find it in the Control
Panel -&gt; Programs/Features -&gt; Turn Windows features on or off.</li></ul></blockquote><blockquote><ul><li>
Open the IIS tree and select the Web Management Tools (just install all of them).
Also make sure you install ASP.NET in World Wide Web Services/  Application Development
Features, it will also select all the other required components.<br /></li></ul></blockquote><blockquote><ul><li>
Last but not least select the Basic, IP, URL and Windows Authentications in the Security
tree below World Wide Web Services.<br /></li></ul></blockquote><br /><ul><li>
After installing it you probably need to restart (it did not work without restarting
at my colleagues computer). With the IIS Manager (in Computer Management) navigate
to your Default Web Site and go into Authentication. Only Anonymous Authentication
will be enabled, also enable Windows Authentication (and whatever else you need).
You should also switch from the Default AppPool to the Classic .NET AppPool in the
Default Web Site -&gt; Right Click -&gt; Advanced Settings -&gt; Application Pool,
else debugging will probably not work (Ctrl+F5 works fine even when you do not do
this).</li></ul><ul><li>
All websites you create from now will use the Classic .NET AppPool, if you already
have websites in IIS, make sure to change them too if you want to debug them.</li></ul><ul><li>
If you still cannot debug you probably do not have sufficiant rights for the user
account that is used in IIS. I usually create a new account with Admin rights (plus
password), set it to the IIS (Anonymous Authentication, click edit to select a new
user) and then downgrade the Account until it does not work anymore, then you can
set the appropriate rights (directory access, etc.) to the account. If you only use
your IIS for yourself, you can also use your own user account for testing and debugging.</li></ul><br /><ul><li>
Debugging silverlight and web services, peter uses a different approach, which is
not easy to implement, but he can use cross-domain web services and can debug easier.<a href="http://peterkellner.net/2007/06/18/silverlightdebugwebservicedotnet/"><br />
http://peterkellner.net/2007/06/18/silverlightdebugwebservicedotnet/</a><br /></li></ul><br /><ul><li>
Don't forget to activate Silverlight debugging if you want to debug it (or disable
it again for ASP.NET Ajax debugging)<br /><a href="http://peterkellner.net/2007/06/20/silverlightdebugonemorething/">http://peterkellner.net/2007/06/20/silverlightdebugonemorething/</a></li></ul><br /><ul><li>
General asp.net web services forum:<br /><a href="http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=46&amp;SiteID=1">http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=46&amp;SiteID=1</a><br /></li></ul><br />
My problem however was the inability to access the web service via HTTP.<br />
You can access it via SOAP and call the main page and execute the methods,<br />
but directly calling Service.asmx/Method?Parameter=Value was not possible<br />
and lead to the:<br /><b>WebException - Error invoking service</b><br />
and <b>Internal Server Error</b><br />
exceptions (depending on the mood and the way I used web services, I used<br />
mainly the first method (Plain XML Requests over HTTP) as described here:<br /><a href="http://www.silverlight.net/QuickStarts/Remote/default.aspx">http://www.silverlight.net/QuickStarts/Remote/default.aspx</a><br /><br />
To test this I called the website directly the way described in the article<br />
I used something like this:<br /><b>http://localhost/TestService/Service.asmx/HelloWorld?SomeText=Hi</b><br />
This returned a<b> 501 Internal Server Error</b> (IIS7) or <b>404 The Page cannot
be found</b><br />
(IIS6), which means this kind of HTTP gets is not supported in this web service<br />
right now. To fix this you have to activate HTTP get in the web.config file with the
following code:<br /><pre class="code"><b> &lt;webServices&gt;<br />
&lt;protocols&gt;<br />
&lt;add name="HttpGet"/&gt;<br />
&lt;add name="HttpPost"/&gt;<br />
&lt;/protocols&gt;<br />
&lt;/webServices&gt;</b></pre><br />
From the MSDN Help on activating HTTP Get and HTTP Post for web sites and web services.<br /><a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;819267">http://support.microsoft.com/default.aspx?scid=kb;en-us;819267</a><br /><br />
Hope this helps, make sure to read the articles mentioned above in detail if you still
have issues.<br /><br />
Update <b>2007-07-14</b>: BTW, if you are interested in webservices for ajax and silverlight,<br />
check out this new project from microsoft live labs:<br /><a href="http://astoria.mslivelabs.com/">http://astoria.mslivelabs.com/</a><br /><blockquote><span style="color: rgb(0, 0, 0); font-size: 9pt; line-height: 11pt; letter-spacing: normal;">From
the astoria website: "The new wave of web applications are built on technologies such
as AJAX and Microsoft Silverlight that enable developers to build better, richer user
experiences. These technologies bring a shift in how applications are organized, including
a stronger separation of presentation from data. </span><br /><span style="color: rgb(0, 0, 0); font-size: 9pt; line-height: 11pt; letter-spacing: normal;"></span><br /><span style="color: rgb(0, 0, 0); font-size: 9pt; line-height: 11pt; letter-spacing: normal;"> The
goal of Microsoft Codename Astoria is to enable applications to expose data as a data
service that can be consumed by web clients within a corporate network and across
the internet. The data service is reachable over HTTP, and URIs are used to identify
the various pieces of information available through the service. Interactions with
the data service happens in terms of HTTP verbs such as GET, POST, PUT and DELETE,
and the data exchanged in those interactions is represented in simple formats such
as XML and JSON. </span><br /><span style="color: rgb(0, 0, 0); font-size: 9pt; line-height: 11pt; letter-spacing: normal;"></span><br /><span style="color: rgb(0, 0, 0); font-size: 9pt; line-height: 11pt; letter-spacing: normal;"> We
are delivering this first early release of Astoria as a Community Tech Preview you
can download and also as an experimental online service you can access over the internet."</span><br /></blockquote><p></p><hints id="hah_hints"></hints><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=7fda5289-b11c-4c62-b961-0c4b12b59897" /></body>
      <title>Silverlight and Web Services</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,7fda5289-b11c-4c62-b961-0c4b12b59897.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/07/13/SilverlightAndWebServices.aspx</link>
      <pubDate>Fri, 13 Jul 2007 20:58:58 GMT</pubDate>
      <description>Using a webservice in silverlight can be very problematic. It does not work out of the&lt;br&gt;
box when you just add a web reference and try to use it. You will get a lot of&lt;br&gt;
501 - Internal Server Errors, WebException - Error invoking service, etc.&lt;br&gt;
&lt;br&gt;
Instead of repeating what so many people have already reported for Silverlight&lt;br&gt;
and Web services I will just link to them and give you a small comment about&lt;br&gt;
each link. My solution is below (it was something completely different than&lt;br&gt;
the links I present here, but maybe I did not read all of them carefully).&lt;br&gt;
&lt;br&gt;
&lt;font size="4"&gt;Links:&lt;br&gt;
&lt;/font&gt;
&lt;ul&gt;
&lt;li&gt;
Silverlight documentation about using remoting and webservices. Two solutions are
presented, but the help is very short and if you have not done it before there can
be many problems that are not discussed here. But this two ways are the standard solutions
that almost everyone uses.&lt;br&gt;
&lt;a href="http://www.silverlight.net/QuickStarts/Remote/default.aspx"&gt;http://www.silverlight.net/QuickStarts/Remote/default.aspx&lt;/a&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
Silverlight board with the System.Net.WebException I mentioned above, the forum posters
recomment using a static port.&lt;br&gt;
&lt;a href="http://silverlight.net/forums/p/2575/7132.aspx"&gt;http://silverlight.net/forums/p/2575/7132.aspx&lt;/a&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
Jon Galloway fixes the problem by assigning a static port to the webservice and silverlight
app, I couldn't reproduce it in VS Orcas on Vista x64, the webservice always uses
a new random port, no matter which one I gave it. But if you can use his technique,
it is probably one of the easier solutions. He also explains the main problem very
good and give detailed insight on the IsCrossDomainRequest method that causes the
problem!&lt;br&gt;
&lt;a href="http://weblogs.asp.net/jgalloway/archive/2007/06/14/calling-an-asmx-webservice-from-silverlight-use-a-static-port.aspx"&gt;http://weblogs.asp.net/jgalloway/archive/2007/06/14/&lt;br&gt;
calling-an-asmx-webservice-from-silverlight-use-a-static-port.aspx&lt;/a&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
I used another solution to put all websites, web services and silverlight projects
onto my IIS 7 server in Vista x64, but I had troubles debugging them. I moved also
to IIS because it was annoying to test the website with the fun crashes VS Orcas gives
you from time to time and it also has the advantage to show a working version on your
colleagues computers by pointing to your computer's IIS.&lt;/li&gt;
&lt;/ul&gt;
&lt;br&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
The following article might be helpful on which things you have to keep your eyes
open for when working with Vista and IIS 7. &lt;a href="http://mvolo.com/blogs/serverside/archive/2006/12/28/Fix-problems-with-Visual-Studio-F5-debugging-of-ASP.NET-applications-on-IIS7-Vista.aspx"&gt;http://mvolo.com/blogs/serverside/archive/2006/12/28/&lt;br&gt;
Fix-problems-with-Visual-Studio-F5-debugging-of-ASP.NET-applications-on-IIS7-Vista.aspx&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
Here is another quick article on debugging websites on IIS:&lt;br&gt;
&lt;a href="http://ryanfarley.com/blog/archive/2005/08/23/8540.aspx"&gt;http://ryanfarley.com/blog/archive/2005/08/23/8540.aspx&lt;/a&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
And another one from MSDN (little bit dated, but can be useful):&lt;br&gt;
&lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vsdebug.asp"&gt;http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vsdebug.asp&lt;/a&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
Another MSDN article on Vista and IIS7: 
&lt;br&gt;
&lt;a href="http://msdn.microsoft.com/msdnmag/issues/07/03/IIS7/default.aspx"&gt;http://msdn.microsoft.com/msdnmag/issues/07/03/IIS7/default.aspx&lt;/a&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; In short this is what I had to do to get debugging
and executing working for web sites and web services in IIS7 with VS Orcas:&lt;br&gt;
&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
Install IIS (Internet Information Services) first, you can find it in the Control
Panel -&amp;gt; Programs/Features -&amp;gt; Turn Windows features on or off.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
Open the IIS tree and select the Web Management Tools (just install all of them).
Also make sure you install ASP.NET in World Wide Web Services/&amp;nbsp; Application Development
Features, it will also select all the other required components.&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;&lt;blockquote&gt;
&lt;ul&gt;
&lt;li&gt;
Last but not least select the Basic, IP, URL and Windows Authentications in the Security
tree below World Wide Web Services.&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
After installing it you probably need to restart (it did not work without restarting
at my colleagues computer). With the IIS Manager (in Computer Management) navigate
to your Default Web Site and go into Authentication. Only Anonymous Authentication
will be enabled, also enable Windows Authentication (and whatever else you need).
You should also switch from the Default AppPool to the Classic .NET AppPool in the
Default Web Site -&amp;gt; Right Click -&amp;gt; Advanced Settings -&amp;gt; Application Pool,
else debugging will probably not work (Ctrl+F5 works fine even when you do not do
this).&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
All websites you create from now will use the Classic .NET AppPool, if you already
have websites in IIS, make sure to change them too if you want to debug them.&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
If you still cannot debug you probably do not have sufficiant rights for the user
account that is used in IIS. I usually create a new account with Admin rights (plus
password), set it to the IIS (Anonymous Authentication, click edit to select a new
user) and then downgrade the Account until it does not work anymore, then you can
set the appropriate rights (directory access, etc.) to the account. If you only use
your IIS for yourself, you can also use your own user account for testing and debugging.&lt;/li&gt;
&lt;/ul&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
Debugging silverlight and web services, peter uses a different approach, which is
not easy to implement, but he can use cross-domain web services and can debug easier.&lt;a href="http://peterkellner.net/2007/06/18/silverlightdebugwebservicedotnet/"&gt;
&lt;br&gt;
http://peterkellner.net/2007/06/18/silverlightdebugwebservicedotnet/&lt;/a&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
Don't forget to activate Silverlight debugging if you want to debug it (or disable
it again for ASP.NET Ajax debugging)&lt;br&gt;
&lt;a href="http://peterkellner.net/2007/06/20/silverlightdebugonemorething/"&gt;http://peterkellner.net/2007/06/20/silverlightdebugonemorething/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
General asp.net web services forum:&lt;br&gt;
&lt;a href="http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=46&amp;amp;SiteID=1"&gt;http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=46&amp;amp;SiteID=1&lt;/a&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;br&gt;
My problem however was the inability to access the web service via HTTP.&lt;br&gt;
You can access it via SOAP and call the main page and execute the methods,&lt;br&gt;
but directly calling Service.asmx/Method?Parameter=Value was not possible&lt;br&gt;
and lead to the:&lt;br&gt;
&lt;b&gt;WebException - Error invoking service&lt;/b&gt;
&lt;br&gt;
and &lt;b&gt;Internal Server Error&lt;/b&gt;
&lt;br&gt;
exceptions (depending on the mood and the way I used web services, I used&lt;br&gt;
mainly the first method (Plain XML Requests over HTTP) as described here:&lt;br&gt;
&lt;a href="http://www.silverlight.net/QuickStarts/Remote/default.aspx"&gt;http://www.silverlight.net/QuickStarts/Remote/default.aspx&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
To test this I called the website directly the way described in the article&lt;br&gt;
I used something like this:&lt;br&gt;
&lt;b&gt;http://localhost/TestService/Service.asmx/HelloWorld?SomeText=Hi&lt;/b&gt;
&lt;br&gt;
This returned a&lt;b&gt; 501 Internal Server Error&lt;/b&gt; (IIS7) or &lt;b&gt;404 The Page cannot
be found&lt;/b&gt;
&lt;br&gt;
(IIS6), which means this kind of HTTP gets is not supported in this web service&lt;br&gt;
right now. To fix this you have to activate HTTP get in the web.config file with the
following code:&lt;br&gt;
&lt;pre class="code"&gt;&lt;b&gt; &amp;lt;webServices&amp;gt;&lt;br&gt;
&amp;lt;protocols&amp;gt;&lt;br&gt;
&amp;lt;add name="HttpGet"/&amp;gt;&lt;br&gt;
&amp;lt;add name="HttpPost"/&amp;gt;&lt;br&gt;
&amp;lt;/protocols&amp;gt;&lt;br&gt;
&amp;lt;/webServices&amp;gt;&lt;/b&gt;&lt;/pre&gt;
&lt;br&gt;
From the MSDN Help on activating HTTP Get and HTTP Post for web sites and web services.&lt;br&gt;
&lt;a href="http://support.microsoft.com/default.aspx?scid=kb;en-us;819267"&gt;http://support.microsoft.com/default.aspx?scid=kb;en-us;819267&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
Hope this helps, make sure to read the articles mentioned above in detail if you still
have issues.&lt;br&gt;
&lt;br&gt;
Update &lt;b&gt;2007-07-14&lt;/b&gt;: BTW, if you are interested in webservices for ajax and silverlight,&lt;br&gt;
check out this new project from microsoft live labs:&lt;br&gt;
&lt;a href="http://astoria.mslivelabs.com/"&gt;http://astoria.mslivelabs.com/&lt;/a&gt;
&lt;br&gt;
&lt;blockquote&gt;&lt;span style="color: rgb(0, 0, 0); font-size: 9pt; line-height: 11pt; letter-spacing: normal;"&gt;From
the astoria website: "The new wave of web applications are built on technologies such
as AJAX and Microsoft Silverlight that enable developers to build better, richer user
experiences. These technologies bring a shift in how applications are organized, including
a stronger separation of presentation from data. &lt;/span&gt;
&lt;br&gt;
&lt;span style="color: rgb(0, 0, 0); font-size: 9pt; line-height: 11pt; letter-spacing: normal;"&gt; &lt;/span&gt;
&lt;br&gt;
&lt;span style="color: rgb(0, 0, 0); font-size: 9pt; line-height: 11pt; letter-spacing: normal;"&gt; The
goal of Microsoft Codename Astoria is to enable applications to expose data as a data
service that can be consumed by web clients within a corporate network and across
the internet. The data service is reachable over HTTP, and URIs are used to identify
the various pieces of information available through the service. Interactions with
the data service happens in terms of HTTP verbs such as GET, POST, PUT and DELETE,
and the data exchanged in those interactions is represented in simple formats such
as XML and JSON. &lt;/span&gt;
&lt;br&gt;
&lt;span style="color: rgb(0, 0, 0); font-size: 9pt; line-height: 11pt; letter-spacing: normal;"&gt; &lt;/span&gt;
&lt;br&gt;
&lt;span style="color: rgb(0, 0, 0); font-size: 9pt; line-height: 11pt; letter-spacing: normal;"&gt; We
are delivering this first early release of Astoria as a Community Tech Preview you
can download and also as an experimental online service you can access over the internet."&lt;/span&gt;
&lt;br&gt;
&lt;/blockquote&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;hints id="hah_hints"&gt;
&lt;/hints&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=7fda5289-b11c-4c62-b961-0c4b12b59897" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,7fda5289-b11c-4c62-b961-0c4b12b59897.aspx</comments>
      <category>Ajax;All;Development;Silverlight</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=28fc066a-3a82-4973-90c6-664ee9905bf4</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,28fc066a-3a82-4973-90c6-664ee9905bf4.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,28fc066a-3a82-4973-90c6-664ee9905bf4.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=28fc066a-3a82-4973-90c6-664ee9905bf4</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">I've been working with VS Orcas for 3-4
months now and while most projects are still in C#, I switch over to IronPython more
and more, especially if I do anything new like some Silverlight website.<br /><br />
CodeRush is working ok in VS Orcas, but there are still some issues, for example expanding/collapsing
regions like in my CR_Commenter plugin does not work at all. Visual Studio's Ctlr+M+M
and Ctlr+M+L work, but they are pretty much useless because they either collapse just
the most inner region (Ctrl+M+M) or just too much (Ctlr+M+L) and pressing these hotkeys
is too complicated anyway.<br /><br />
With CR_Commenter you can press Ctrl+4 to collapse or expand the region you are in
or Ctrl+5 to collapse/expand all regions (but not summaries, methods, etc.). This
works fine in VS 2005, but not in Orcas, there are also some other issues in Orcas
like switch or namespace blocks are not commented anymore. For this reason I started
writing a new addin (without using CodeRush this time) last month, but I never found
time to finish it.<br /><br />
Instead I wrote a new addin this weekend. It just fixes the region issue and adds
support for IronPython, which does not have any regions at all. Now regions for all
classes, defs (methods) and if blocks are generated for you and can be expanded and
collapsed with the same hotkeys (Ctrl+4, Ctrl+5 or the VS defaults). Please note that
I had commenter support for IronPython too and added stuff like #region and #endregion
to it too, but it does not feel like Python anymore if you add too much comments and
blocks. The beauty of Python is its short and self-explaining code and the more I
work with it the more I like it.<br /><br />
RegionAddin Hotkeys:<br /><ul><li>
Ctrl+1, Ctrl+2: Comment code like CR_Commenter (not implemented yet, it is commented
out, too much features from CR_Commenter missing).</li><li>
Ctrl+3: Build region like CodeRush or CR_Commenter, also commented out, CodeRush's
version currently does work much better, but adds comments to #endregion</li><li>
Ctrl+4: Collapse or expand the current region you are in</li><li>
Ctrl+5: Collapse or expand all regions in the current file. In IronPython it has 3
modes: All uncollapsed, All methods collapsed, All classes and methods collapsed</li><li>
Ctrl+6: Regenerate all collapsable blocks in IronPython, this is important because
the IronPython language service does not support any collapseable blocks, maybe I
will implement that later in there ...<br /></li></ul><br />
Lets take a look at the region feature of RegionAddin for IronPython, Ctrl+6 generate
all regions at once, otherwise regions are created automatically as you write code.<br /><br /><p></p><img src="http://exdream.no-ip.info/blog/content/binary/IronPythonRegions600.jpg" border="0" /><br /><br /><br />
As always here is the full SourceCode and a Installer:<br /><ul><li>
   <a href="http://exdream.no-ip.info/blog/content/binary/RegionAddinSourceCode.zip">RegionAddinSourceCode.zip
(25.67 KB)<br /><br /></a></li><li>
   <a href="http://exdream.no-ip.info/blog/content/binary/RegionAddinSetup.exe">RegionAddinSetup.exe
(80.1 KB)<br /></a></li></ul>
This is version 1, I will improve the addin in the future and provide better versions
with more features in the future. Maybe I will also finish the CommenterAddin completely
and add more support for IronPython (have to think about how it makes sense). Hopefully
the RegionAddin is useful for C# and IronPython right now, it also supports all other
C style languages like C++.<br /><br /><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=28fc066a-3a82-4973-90c6-664ee9905bf4" /></body>
      <title>RegionAddin to fix collapsing and expanding regions in Orcas and IronPython region support!</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,28fc066a-3a82-4973-90c6-664ee9905bf4.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/07/09/RegionAddinToFixCollapsingAndExpandingRegionsInOrcasAndIronPythonRegionSupport.aspx</link>
      <pubDate>Mon, 09 Jul 2007 18:19:33 GMT</pubDate>
      <description>I've been working with VS Orcas for 3-4 months now and while most projects are still in C#, I switch over to IronPython more and more, especially if I do anything new like some Silverlight website.&lt;br&gt;
&lt;br&gt;
CodeRush is working ok in VS Orcas, but there are still some issues, for example expanding/collapsing
regions like in my CR_Commenter plugin does not work at all. Visual Studio's Ctlr+M+M
and Ctlr+M+L work, but they are pretty much useless because they either collapse just
the most inner region (Ctrl+M+M) or just too much (Ctlr+M+L) and pressing these hotkeys
is too complicated anyway.&lt;br&gt;
&lt;br&gt;
With CR_Commenter you can press Ctrl+4 to collapse or expand the region you are in
or Ctrl+5 to collapse/expand all regions (but not summaries, methods, etc.). This
works fine in VS 2005, but not in Orcas, there are also some other issues in Orcas
like switch or namespace blocks are not commented anymore. For this reason I started
writing a new addin (without using CodeRush this time) last month, but I never found
time to finish it.&lt;br&gt;
&lt;br&gt;
Instead I wrote a new addin this weekend. It just fixes the region issue and adds
support for IronPython, which does not have any regions at all. Now regions for all
classes, defs (methods) and if blocks are generated for you and can be expanded and
collapsed with the same hotkeys (Ctrl+4, Ctrl+5 or the VS defaults). Please note that
I had commenter support for IronPython too and added stuff like #region and #endregion
to it too, but it does not feel like Python anymore if you add too much comments and
blocks. The beauty of Python is its short and self-explaining code and the more I
work with it the more I like it.&lt;br&gt;
&lt;br&gt;
RegionAddin Hotkeys:&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
Ctrl+1, Ctrl+2: Comment code like CR_Commenter (not implemented yet, it is commented
out, too much features from CR_Commenter missing).&lt;/li&gt;
&lt;li&gt;
Ctrl+3: Build region like CodeRush or CR_Commenter, also commented out, CodeRush's
version currently does work much better, but adds comments to #endregion&lt;/li&gt;
&lt;li&gt;
Ctrl+4: Collapse or expand the current region you are in&lt;/li&gt;
&lt;li&gt;
Ctrl+5: Collapse or expand all regions in the current file. In IronPython it has 3
modes: All uncollapsed, All methods collapsed, All classes and methods collapsed&lt;/li&gt;
&lt;li&gt;
Ctrl+6: Regenerate all collapsable blocks in IronPython, this is important because
the IronPython language service does not support any collapseable blocks, maybe I
will implement that later in there ...&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;br&gt;
Lets take a look at the region feature of RegionAddin for IronPython, Ctrl+6 generate
all regions at once, otherwise regions are created automatically as you write code.&lt;br&gt;
&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img src="http://exdream.no-ip.info/blog/content/binary/IronPythonRegions600.jpg" border="0"&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
As always here is the full SourceCode and a Installer:&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
&amp;nbsp;&amp;nbsp; &lt;a href="http://exdream.no-ip.info/blog/content/binary/RegionAddinSourceCode.zip"&gt;RegionAddinSourceCode.zip
(25.67 KB)&lt;br&gt;
&lt;br&gt;
&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&amp;nbsp;&amp;nbsp; &lt;a href="http://exdream.no-ip.info/blog/content/binary/RegionAddinSetup.exe"&gt;RegionAddinSetup.exe
(80.1 KB)&lt;br&gt;
&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
This is version 1, I will improve the addin in the future and provide better versions
with more features in the future. Maybe I will also finish the CommenterAddin completely
and add more support for IronPython (have to think about how it makes sense). Hopefully
the RegionAddin is useful for C# and IronPython right now, it also supports all other
C style languages like C++.&lt;br&gt;
&lt;br&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=28fc066a-3a82-4973-90c6-664ee9905bf4" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,28fc066a-3a82-4973-90c6-664ee9905bf4.aspx</comments>
      <category>All;Development;IronPython;Other;Programming;Reviews;Silverlight</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=7f81cd8c-b29f-41ac-93b4-03b6f59f8017</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,7f81cd8c-b29f-41ac-93b4-03b6f59f8017.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,7f81cd8c-b29f-41ac-93b4-03b6f59f8017.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=7f81cd8c-b29f-41ac-93b4-03b6f59f8017</wfw:commentRss>
      <slash:comments>2</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <img src="http://studihelp.de/blog/content/binary/microsoft_silverlight.jpg" border="0" />
        <br />
        <br />
Couple of tips if you want to debug Silverlight applications in Visual Studio. Please
note I have not worked myself with Silverlight much, I was just observing my colleagues
and helping them out when they were unable to debug their Silverlight code.<br /><br /><ul><li>
First of all: Visual Studio 2005 is NOT supported, you need Visual Studio Orcas Beta
1 (see my last 2 posts about it)<br /><br /></li><li>
You need the <a href="http://www.microsoft.com/downloads/details.aspx?familyid=6c2b309b-8f2d-44a5-b04f-836f0d4ec1c4&amp;displaylang=en">VS_SilverlightTools_Alpha_Setup.exe</a> setup
file to get started with silverlight and allow debugging<br /><br /></li><li>
The XAML designer view never seems to work and it usually does not even show up. If
you want to hide it, switch the design and xaml views and then click the button on
the very right to hide the design view on the bottom.<br /><br /></li><li>
Most importantly: If debugging does not work for you make sure that:<br /><br /></li><ul><li>
Close ALL your instances of Firefox and Internet Explorer first. Then start the debugger
of VS Orcas with F5 and let it create a new instance of your browser. This is VERY
important because if you leave the browser open and start to set some breakpoints
and debug the application, it won't work. Every time you press F5 in VS Orcas to start
the project a new browser instance must be created, else debugging is just skipped
and you just see the website, the debugger ends immediately. I tested it with Internet
Explorer first, but Firefox is ok too if you can live with the constant opening and
closing. For me it is much more comfortable to use Firefox for browsing and then Internet
Explorer for testing the Silverlight stuff.<br /><br /></li><li>
Your project/website/etc. does not contain any spaces. Like the .NET 3.5 installation
there are still issues with spaces. Just make sure there are none. This wasn't a problem
at my PC, but on a Vista machine it caused problems.<br /><br /></li><li>
Exceptions seem to be ignored and there seems to be some Exception-Eating-Monster
in the Silverlight runtime because no matter what happens or what you throw, it will
not be passed to the debugger. Instead it just seems to end the debugging session
and shows the page as far as it got. It is probably best to catch all exceptions yourself
and display them in some label or flush them to a log file ..</li></ul></ul><br /><img width="0" height="0" src="http://studihelp.de/blog/cptrk.ashx?id=1f5d61a9-2708-47f8-bf17-1ed3c7f23ea9" /><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=7f81cd8c-b29f-41ac-93b4-03b6f59f8017" /></body>
      <title>Debugging Silverlight in Visual Studio</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,7f81cd8c-b29f-41ac-93b4-03b6f59f8017.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/06/08/DebuggingSilverlightInVisualStudio.aspx</link>
      <pubDate>Fri, 08 Jun 2007 10:46:55 GMT</pubDate>
      <description>&lt;img src="http://studihelp.de/blog/content/binary/microsoft_silverlight.jpg" border="0"&gt;
&lt;br&gt;
&lt;br&gt;
Couple of tips if you want to debug Silverlight applications in Visual Studio. Please
note I have not worked myself with Silverlight much, I was just observing my colleagues
and helping them out when they were unable to debug their Silverlight code.&lt;br&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
First of all: Visual Studio 2005 is NOT supported, you need Visual Studio Orcas Beta
1 (see my last 2 posts about it)&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;li&gt;
You need the &lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=6c2b309b-8f2d-44a5-b04f-836f0d4ec1c4&amp;amp;displaylang=en"&gt;VS_SilverlightTools_Alpha_Setup.exe&lt;/a&gt; setup
file to get started with silverlight and allow debugging&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;li&gt;
The XAML designer view never seems to work and it usually does not even show up. If
you want to hide it, switch the design and xaml views and then click the button on
the very right to hide the design view on the bottom.&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;li&gt;
Most importantly: If debugging does not work for you make sure that:&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
Close ALL your instances of Firefox and Internet Explorer first. Then start the debugger
of VS Orcas with F5 and let it create a new instance of your browser. This is VERY
important because if you leave the browser open and start to set some breakpoints
and debug the application, it won't work. Every time you press F5 in VS Orcas to start
the project a new browser instance must be created, else debugging is just skipped
and you just see the website, the debugger ends immediately. I tested it with Internet
Explorer first, but Firefox is ok too if you can live with the constant opening and
closing. For me it is much more comfortable to use Firefox for browsing and then Internet
Explorer for testing the Silverlight stuff.&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;li&gt;
Your project/website/etc. does not contain any spaces. Like the .NET 3.5 installation
there are still issues with spaces. Just make sure there are none. This wasn't a problem
at my PC, but on a Vista machine it caused problems.&lt;br&gt;
&lt;br&gt;
&lt;/li&gt;
&lt;li&gt;
Exceptions seem to be ignored and there seems to be some Exception-Eating-Monster
in the Silverlight runtime because no matter what happens or what you throw, it will
not be passed to the debugger. Instead it just seems to end the debugging session
and shows the page as far as it got. It is probably best to catch all exceptions yourself
and display them in some label or flush them to a log file ..&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;br&gt;
&lt;img width="0" height="0" src="http://studihelp.de/blog/cptrk.ashx?id=1f5d61a9-2708-47f8-bf17-1ed3c7f23ea9"&gt;&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=7f81cd8c-b29f-41ac-93b4-03b6f59f8017" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,7f81cd8c-b29f-41ac-93b4-03b6f59f8017.aspx</comments>
      <category>All;Development;Programming;Silverlight</category>
    </item>
  </channel>
</rss>