<?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 - Ajax</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=a3de41e6-2d25-42d8-8ca2-814eee20835c</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,a3de41e6-2d25-42d8-8ca2-814eee20835c.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,a3de41e6-2d25-42d8-8ca2-814eee20835c.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=a3de41e6-2d25-42d8-8ca2-814eee20835c</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <img src="http://www.publicvoid.dk/content/binary/visualstudio_logo.gif" style="float: right;" /> Great
news from <a href="http://weblogs.asp.net/scottgu/archive/2007/11/19/visual-studio-2008-and-net-3-5-released.aspx">ScottGu's
blog: The final Visual Studio 2008 version and .NET 3.5</a> were just released :) 
<br /><br />
I have been waiting the whole day and kept refreshing the MSDN page, but I could not
really believe that they actually ship today ^^ 
<br /><br />
VS 2008 will probably not be much of a change for me because we have been working
with the VS 2008 betas for over a year now. 
<br /><br />
I might also blog a little bit about IronPython, which I have used for smaller projects
and plan using for bigger stuff in the future too. The best feed for IronPython News
is: <a href="http://ironpython-urls.blogspot.com/">IronPython Url's</a><br /><br />
Btw: Pretty quiet on my blog for a while now, I should continue blogging. Always being
too busy to write anything here is not a good thing. Gladly all my current projects
work really good and are still fun to maintain, even as they grow bigger and bigger.<br /><br /><b>Update 2007-11-20</b>: I have to say the ASP.NET Designer in VS2008 is really good
again. The designer did not work well for most of my projects in VS2008 beta 2 and
it was always annoying to have the million ASP.NET errors poluting the ErrorList (now
they are just warnings and can easily be switched off). Overall I'm very pleased with
the VS2008 so far, uninstalling VS2008 beta2 was a bit of work, but everything is
working nicely now. More info and improvements in VS2008 can be found on <a href="http://weblogs.asp.net/scottgu/">ScottGu's
blog</a><br /><br /><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=a3de41e6-2d25-42d8-8ca2-814eee20835c" /></body>
      <title>Visual Studio 2008 and .NET 3.5 released</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,a3de41e6-2d25-42d8-8ca2-814eee20835c.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/11/19/VisualStudio2008AndNET35Released.aspx</link>
      <pubDate>Mon, 19 Nov 2007 19:59:45 GMT</pubDate>
      <description>&lt;img src="http://www.publicvoid.dk/content/binary/visualstudio_logo.gif" style="float: right;"&gt; Great
news from &lt;a href="http://weblogs.asp.net/scottgu/archive/2007/11/19/visual-studio-2008-and-net-3-5-released.aspx"&gt;ScottGu's
blog: The final Visual Studio 2008 version and .NET 3.5&lt;/a&gt; were just released :) 
&lt;br&gt;
&lt;br&gt;
I have been waiting the whole day and kept refreshing the MSDN page, but I could not
really believe that they actually ship today ^^ 
&lt;br&gt;
&lt;br&gt;
VS 2008 will probably not be much of a change for me because we have been working
with the VS 2008 betas for over a year now. 
&lt;br&gt;
&lt;br&gt;
I might also blog a little bit about IronPython, which I have used for smaller projects
and plan using for bigger stuff in the future too. The best feed for IronPython News
is: &lt;a href="http://ironpython-urls.blogspot.com/"&gt;IronPython Url's&lt;/a&gt; 
&lt;br&gt;
&lt;br&gt;
Btw: Pretty quiet on my blog for a while now, I should continue blogging. Always being
too busy to write anything here is not a good thing. Gladly all my current projects
work really good and are still fun to maintain, even as they grow bigger and bigger.&lt;br&gt;
&lt;br&gt;
&lt;b&gt;Update 2007-11-20&lt;/b&gt;: I have to say the ASP.NET Designer in VS2008 is really good
again. The designer did not work well for most of my projects in VS2008 beta 2 and
it was always annoying to have the million ASP.NET errors poluting the ErrorList (now
they are just warnings and can easily be switched off). Overall I'm very pleased with
the VS2008 so far, uninstalling VS2008 beta2 was a bit of work, but everything is
working nicely now. More info and improvements in VS2008 can be found on &lt;a href="http://weblogs.asp.net/scottgu/"&gt;ScottGu's
blog&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=a3de41e6-2d25-42d8-8ca2-814eee20835c" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,a3de41e6-2d25-42d8-8ca2-814eee20835c.aspx</comments>
      <category>Ajax;All;Development;IronPython;Programming;Reviews</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=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=96983850-cc43-4572-a54a-453ced39db25</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,96983850-cc43-4572-a54a-453ced39db25.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,96983850-cc43-4572-a54a-453ced39db25.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=96983850-cc43-4572-a54a-453ced39db25</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <a href="http://www.microsoft.com/silverlight/">
          <img src="http://www.microsoft.com/silverlight/images/logo_main_sl.gif" border="0" />
        </a>
        <br />
I heard about all the <a href="http://www.microsoft.com/silverlight/">Silverlight </a>fuss
from the MIX2007 conference last week, but I did not have time to check it out with
all the stress and projects I'm currently involved in. I already use VS Orcas for
a while (see post from last month) and I played around with WPF in the past (formerly
Avalon, now <a href="http://www.microsoft.com/silverlight/">Silverlight</a>, which
is still in beta, but will be released this summer finally), but I did not find anything
compelling for a game programmer since we use DirectX or XNA anyway. But with the
ability to build websites with Silverlight and still allowing the .NET framework to
exist in that environment while simplifying the development process and getting away
from building static html like pages with some dynamic features (ajax or not, it is
still somewhat static and hard to do), Silverlight gets much sexier than just WPF
on a windows app by itself.<br /><br />
Why is Silverlight cool? It is .NET, it runs on Firefox, IE, Safari, Mac, etc. it
is just 2 MB download, it is amazingly fast, it has many cool new features, it allows
many windows-only apps to be developed for the browser in a more natural way, it will
be pushed like crazy and a lot of people will have it till the end of this year, there
are already some cool tools out there including the Expression toolkit and Visual
Studio Orcas, and probably <a href="http://www.microsoft.com/silverlight/why-compelling.aspx">a
lot of other reasons you can checkout yourself</a>!<br /><br />
Maybe it is even possible to interop with some DirectX or XNA stuff somehow. I have
no idea if this is possible at all or if there are security issues or this kind of
functionality is not possible at all, but instead of waiting for another week until
I find a few minutes to test this out, why not announce it here first that this would
be cool and maybe someone else can test it for me :)<br /><br />
Even for just doing websites, Silverlight will definitely become a BIG competitor
to Flash based websites, developing in .NET will be a lot easier than working with
Flash/Actionscript/whatever and I would bet that there are more VB/C# developers that
can now do some great websites without having to learn much while creating Flash sites
or even doing ASP.NET (with or without Ajax) development is much harder and less compelling
for certain kinds of applications. Great examples are the <a href="http://go.microsoft.com/fwlink/?linkid=89068&amp;clcid=0x409">FOX
Movies site</a> and some <a href="http://go.microsoft.com/fwlink/?linkid=89367&amp;clcid=0x409">widgets
on MSDN</a> or <a href="http://www.telerik.com/products/silverlight/overview.aspx">some
early test controls from Telerik</a>.<br /><br />
BTW: <a href="http://games.archor.com/">Archor </a>wrote me an email about his <a href="http://xbox360.archor.com/">Cyber
Car XNA</a> game he wanted to submit to the XnaProjects.Net site I made last week.
This is actually a Racing Game Mod, I first guessed he used the simple racing game
version, but this one is based on the full racing game from the XNA creators website.
Pretty cool style in my opinion. Thanks Archor!<br /><br /><a href="http://xbox360.archor.com/">http://xbox360.archor.com/</a><br /><br /><a href="http://xbox360.archor.com/"><img src="http://www.archorwright.com/games/xbox360/cybercar1s.jpg" border="0" /></a><p></p><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=96983850-cc43-4572-a54a-453ced39db25" /></body>
      <title>Silverlight and I spotted A Racing Game Mod: Cyber Car</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,96983850-cc43-4572-a54a-453ced39db25.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/05/08/SilverlightAndISpottedARacingGameModCyberCar.aspx</link>
      <pubDate>Tue, 08 May 2007 03:55:20 GMT</pubDate>
      <description>&lt;a href="http://www.microsoft.com/silverlight/"&gt;&lt;img src="http://www.microsoft.com/silverlight/images/logo_main_sl.gif" border="0"&gt;&lt;/a&gt;
&lt;br&gt;
I heard about all the &lt;a href="http://www.microsoft.com/silverlight/"&gt;Silverlight &lt;/a&gt;fuss
from the MIX2007 conference last week, but I did not have time to check it out with
all the stress and projects I'm currently involved in. I already use VS Orcas for
a while (see post from last month) and I played around with WPF in the past (formerly
Avalon, now &lt;a href="http://www.microsoft.com/silverlight/"&gt;Silverlight&lt;/a&gt;, which
is still in beta, but will be released this summer finally), but I did not find anything
compelling for a game programmer since we use DirectX or XNA anyway. But with the
ability to build websites with Silverlight and still allowing the .NET framework to
exist in that environment while simplifying the development process and getting away
from building static html like pages with some dynamic features (ajax or not, it is
still somewhat static and hard to do), Silverlight gets much sexier than just WPF
on a windows app by itself.&lt;br&gt;
&lt;br&gt;
Why is Silverlight cool? It is .NET, it runs on Firefox, IE, Safari, Mac, etc. it
is just 2 MB download, it is amazingly fast, it has many cool new features, it allows
many windows-only apps to be developed for the browser in a more natural way, it will
be pushed like crazy and a lot of people will have it till the end of this year, there
are already some cool tools out there including the Expression toolkit and Visual
Studio Orcas, and probably &lt;a href="http://www.microsoft.com/silverlight/why-compelling.aspx"&gt;a
lot of other reasons you can checkout yourself&lt;/a&gt;!&lt;br&gt;
&lt;br&gt;
Maybe it is even possible to interop with some DirectX or XNA stuff somehow. I have
no idea if this is possible at all or if there are security issues or this kind of
functionality is not possible at all, but instead of waiting for another week until
I find a few minutes to test this out, why not announce it here first that this would
be cool and maybe someone else can test it for me :)&lt;br&gt;
&lt;br&gt;
Even for just doing websites, Silverlight will definitely become a BIG competitor
to Flash based websites, developing in .NET will be a lot easier than working with
Flash/Actionscript/whatever and I would bet that there are more VB/C# developers that
can now do some great websites without having to learn much while creating Flash sites
or even doing ASP.NET (with or without Ajax) development is much harder and less compelling
for certain kinds of applications. Great examples are the &lt;a href="http://go.microsoft.com/fwlink/?linkid=89068&amp;amp;clcid=0x409"&gt;FOX
Movies site&lt;/a&gt; and some &lt;a href="http://go.microsoft.com/fwlink/?linkid=89367&amp;amp;clcid=0x409"&gt;widgets
on MSDN&lt;/a&gt; or &lt;a href="http://www.telerik.com/products/silverlight/overview.aspx"&gt;some
early test controls from Telerik&lt;/a&gt;.&lt;br&gt;
&lt;br&gt;
BTW: &lt;a href="http://games.archor.com/"&gt;Archor &lt;/a&gt;wrote me an email about his &lt;a href="http://xbox360.archor.com/"&gt;Cyber
Car XNA&lt;/a&gt; game he wanted to submit to the XnaProjects.Net site I made last week.
This is actually a Racing Game Mod, I first guessed he used the simple racing game
version, but this one is based on the full racing game from the XNA creators website.
Pretty cool style in my opinion. Thanks Archor!&lt;br&gt;
&lt;br&gt;
&lt;a href="http://xbox360.archor.com/"&gt;http://xbox360.archor.com/&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
&lt;a href="http://xbox360.archor.com/"&gt;&lt;img src="http://www.archorwright.com/games/xbox360/cybercar1s.jpg" border="0"&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=96983850-cc43-4572-a54a-453ced39db25" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,96983850-cc43-4572-a54a-453ced39db25.aspx</comments>
      <category>Ajax;All;Development;Game Development;Other;Programming;Racing Game;Reviews;XNA</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=89ec28c3-19f2-4da2-8ccd-01b2cdfb2a22</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,89ec28c3-19f2-4da2-8ccd-01b2cdfb2a22.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,89ec28c3-19f2-4da2-8ccd-01b2cdfb2a22.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=89ec28c3-19f2-4da2-8ccd-01b2cdfb2a22</wfw:commentRss>
      <slash:comments>2</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">Yeah, blogging every 5 minutes. I'm really
trying to blog more again, let's see how this works out.<br /><br />
Ok, here is there problem: Visual Studio Orcas (March CTP) does support ASP.NET web
projects and you can even load and use previously created ASP.NET Ajax projects, but
you can't create new projects because the Ajax templates are missing!<br /><br />
The solution: Just point the user projects templates directory to your old VS 2005
project templates directory (or copy the templates over to your user projects template
directory) like in the following picture. Make you you have <a href="http://ajax.asp.net/">ASP.NET
Ajax</a> installed and working in your VS 2005 installation.<br /><br />
Path to set:<br /><br /><b>    C:\Program files\Microsoft Visual Studio 8\Common7\IDE\ProjectTemplates\Web\CSharp\<br /><br /></b>Btw: The new path in VS Orcas is:<br /><br /><b>    C:\Program files\Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplates\CSharp\Web\<br /><br /></b>But just copying the files over there will not do it because VS 9.0 will still
use the cached templates, which are not updated automatically when you change something
there. Just point to the VS 8 template files, that is much easier:<b><br /></b><p></p><img src="http://unifaces.de/blog/content/binary/VisualStudioOrcasAjax1.png" border="0" /><br /><br /><br />
Now you can create new ASP.NET Ajax projects in Visual Studio Orcas with File -&gt;
New -&gt; Web Site:<br /><br /><img src="http://unifaces.de/blog/content/binary/VisualStudioOrcasAjax2.png" border="0" /><img src="http://unifaces.de/blog/cptrk.ashx?id=ff1bb812-9c68-4ec7-bcd9-6fbcb9b48368" height="0" width="0" /><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=89ec28c3-19f2-4da2-8ccd-01b2cdfb2a22" /></body>
      <title>ASP.NET Ajax Template support in Visual Studio Orcas</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,89ec28c3-19f2-4da2-8ccd-01b2cdfb2a22.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/04/04/ASPNETAjaxTemplateSupportInVisualStudioOrcas.aspx</link>
      <pubDate>Wed, 04 Apr 2007 02:41:47 GMT</pubDate>
      <description>Yeah, blogging every 5 minutes. I'm really trying to blog more again, let's see how this works out.&lt;br&gt;
&lt;br&gt;
Ok, here is there problem: Visual Studio Orcas (March CTP) does support ASP.NET web
projects and you can even load and use previously created ASP.NET Ajax projects, but
you can't create new projects because the Ajax templates are missing!&lt;br&gt;
&lt;br&gt;
The solution: Just point the user projects templates directory to your old VS 2005
project templates directory (or copy the templates over to your user projects template
directory) like in the following picture. Make you you have &lt;a href="http://ajax.asp.net/"&gt;ASP.NET
Ajax&lt;/a&gt; installed and working in your VS 2005 installation.&lt;br&gt;
&lt;br&gt;
Path to set:&lt;br&gt;
&lt;br&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C:\Program files\Microsoft Visual Studio 8\Common7\IDE\ProjectTemplates\Web\CSharp\&lt;br&gt;
&lt;br&gt;
&lt;/b&gt;Btw: The new path in VS Orcas is:&lt;br&gt;
&lt;br&gt;
&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C:\Program files\Microsoft Visual Studio 9.0\Common7\IDE\ProjectTemplates\CSharp\Web\&lt;br&gt;
&lt;br&gt;
&lt;/b&gt;But just copying the files over there will not do it because VS 9.0 will still
use the cached templates, which are not updated automatically when you change something
there. Just point to the VS 8 template files, that is much easier:&lt;b&gt;
&lt;br&gt;
&lt;/b&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img src="http://unifaces.de/blog/content/binary/VisualStudioOrcasAjax1.png" border="0"&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Now you can create new ASP.NET Ajax projects in Visual Studio Orcas with File -&amp;gt;
New -&amp;gt; Web Site:&lt;br&gt;
&lt;br&gt;
&lt;img src="http://unifaces.de/blog/content/binary/VisualStudioOrcasAjax2.png" border="0"&gt;&lt;img src="http://unifaces.de/blog/cptrk.ashx?id=ff1bb812-9c68-4ec7-bcd9-6fbcb9b48368" height="0" width="0"&gt;&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=89ec28c3-19f2-4da2-8ccd-01b2cdfb2a22" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,89ec28c3-19f2-4da2-8ccd-01b2cdfb2a22.aspx</comments>
      <category>Ajax;All;Other;Programming</category>
    </item>
    <item>
      <trackback:ping>http://exdream.no-ip.info/blog/Trackback.aspx?guid=9c026a06-6d24-4ee2-9485-7db1f89ed573</trackback:ping>
      <pingback:server>http://exdream.no-ip.info/blog/pingback.aspx</pingback:server>
      <pingback:target>http://exdream.no-ip.info/blog/PermaLink,guid,9c026a06-6d24-4ee2-9485-7db1f89ed573.aspx</pingback:target>
      <dc:creator>Benjamin Nitschke (abi)</dc:creator>
      <wfw:comment>http://exdream.no-ip.info/blog/CommentView,guid,9c026a06-6d24-4ee2-9485-7db1f89ed573.aspx</wfw:comment>
      <wfw:commentRss>http://exdream.no-ip.info/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=9c026a06-6d24-4ee2-9485-7db1f89ed573</wfw:commentRss>
      <slash:comments>2</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <img src="http://www.publicvoid.dk/content/binary/VisualStudioLogo.gif" />
        <br />
        <br />
Today I found some time to install <a href="http://www.microsoft.com/downloads/details.aspx?familyid=CF76FCBA-07AF-47AC-8822-4AD346210670&amp;displaylang=en#filelist">Visual
Studio Codename Orcas CTP March 2007</a> (see below for all the download links), which
came out last month. I have worked a lot with ASP.NET Atlas (now ASP.NET Ajax) and
LINQ (C# 3.0) before, but they are now beautifully integrated in the latest CTP and
intellisense works so much better than in the early days of LINQ, so getting this
up and running for future projects would be a good thing since I'm an early adopter
anyway.<br /><br />
Initially VS Orcas would not even install at all and I thought maybe my Visual Studio
2005 is messed up because I had some problems with ASP.NET Ajax before and had to
repair VS 2005 a couple of times this year already. After completely uninstalling
VS 2005 and trying again the same fatal error message was still coming up in the Installer:<br /><br /><span id="_ctl0_MainContent_PostFlatView"><span>Microsoft Web Designer Tools failed
.. </span></span><span id="_ctl0_MainContent_PostFlatView"><span>EventType : visualstudio8setup
and then a lot of crazy numbers, which do not help (<a href="http://www.google.com">google</a>ing
did not return anything).<br /><br />
As usual clicking on the '</span></span><span id="_ctl0_MainContent_PostFlatView"><span>view
error log' gets you a site not found page, while the installer creates a couple of
log files in c:\something or c:\program files\microsoft visual studio 9\logs\ like
"dd_vserror80.txt". Those files look interessting, but they only tell me the exact
same crazy numbers and that this component failed. After googleing some more and only
finding similar problems like <a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1363516&amp;SiteID=1">this
one</a> I uninstalled everything that could even remotely being used by .NET. After
restarting and trying again the exact same freaking error message appeared. Grrr ...<br /><br />
To make a long story a little bit shorter: I finally found out that Office 2007 was
the root of all the problems, after uninstalling that one (what the hell does this
have to do with web designer tools?) the Orcas installer was working and I could launch
the new version:</span></span><br /><p></p><img src="http://unifaces.de/blog/content/binary/VisualStudioOrcas.png" border="0" /><br /><br />
As you can see it looks the same way as Visual Studio 2005, some colors were just
enhanced. As you can also see I'm back to Windows XP just because so many games do
not work correctly in Vista and many drivers (hello Nvidia) are still shitty and slow.<br /><br /><a href="http://TestDriven.NET">TestDriven.NET</a> works beautifully in VS Orcas and
the developer Jamie Cansdale really does a great job updating the product so often.
He even added VS Express support again recently, which might be cool for XNA Express
developers. I also like the relatively new 'Go to Reflector' feature and especially
the 'Rerun test' I use all the time.<br /><br />
Other plugins I use like CodeRush, VisualSVN, Explorer, LineCounter and whatever do
not show up however. And reinstalling them does not help because the developers of
those just did not update the installers yet. I can live without most plugins, but
not without CodeRush and my CR_Commenter plugin, so I had to get this working. I thought
this would be a long day ahead with all the problems even installing VS Orcas, but
it turned out to be quite easy to add your existing VS 2005 addins to VS Orcas.<br /><br />
If you install VS Orcas after VS 2005 and have all your addins already installed it
will migrate most of them over to VS Orcas, but if you install VS Orcas first (like
I did because I killed VS 2005 before, see above) or install new addins, then you
will need the following tricks to make them work in VS Orcas. Some addins like CodeRush
will not be added by the VS Orcas installation because it misses the "Addins" (CodeRush
1.x) or "PreloadAddinStateManaged" (CodeRush 2.x) registry keys, but you can easily
copy them over from VS 2005 (vs 8.0) to VS Orcas (vs 9.0) the following way:<br /><ul><li>
Open up regedit</li><li>
Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\AddIns</li><li>
Search for the CodeRush key and export it</li><li>
If you can't find a CodeRush key here try (probably CodeRush 2.x specific): [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\PreloadAddinStateManaged]</li><li>
If you can't find it there either try the reg installers below!</li><li>
Now edit the exported .reg file and just change the \8.0\ to \9.0\ and save.</li><li>
Finally doubleclick the file to merge it with your registry (at your own risk btw
^^)</li><li>
Start VS Orcas and enjoy the DevExpress menu and the CodeRush functionality :)<br /></li></ul><br />
If you had not installed CodeRush before installing VS Orcas most important registry
keys will be missing and you will probably get some "package could not be loaded error"
like I did. This will also happen if you install other plugins to VS 2005, which are
not installed to VS Orcas like TestDriven.NET does it. Then you have to apply the
following process:<br /><br /><ul><li>
Open up regedit again (you have to repeat this probably a few more times if you miss
any important reg key)</li><li>
Search for your Addin name or navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\InstalledProducts</li><li>
Find your product, it might not be just the name of the product, but something similar
(like DXCore for CodeRush).</li><li>
You need to open up the key and copy the internal package GUID (the long ugly id)
like {BD359A86-BF88-4c4e-A7D2-6CDDA36C3B79} for DXCore</li><li>
Now search the whole HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\ namespace
for this key and export everything to external files.</li><li>
Merge those exported .reg files and replace \8.0\ with \9.0\ like above.</li><li>
Save, import again and start Orcas to test. Repeat until it works ^^<br /></li></ul>
It would probably be better to write some tool for this, especially since there is
almost no addin that will install itself correctly to VS Orcas, but I'm too lazy right
now and have no time for that anyway. But here are a couple of .reg files I used to
restore the 2 most important addins for me:<br /><br /><ul><li>
Install CodeRush 2.1.2 to VS Orcas, uses the default paths (english), change if you
have installed it somewhere else</li><ul><li><a href="http://unifaces.de/blog/content/binary/install_coderush2_vs9.reg">install_coderush2_vs9.reg
(3.08 KB)</a><a href="http://unifaces.de/blog/content/binary/install_visualsvn_vs9_german_paths.reg"></a></li></ul><li>
Same with german paths (the documents and program files are different in german),
change this to other languages if your windows is not english or german:</li><ul><li><a href="http://unifaces.de/blog/content/binary/install_coderush2_vs9_german_paths.reg">install_coderush2_vs9_german_paths.reg
(3.08 KB)</a><a href="http://unifaces.de/blog/content/binary/install_visualsvn_vs9_german_paths.reg"></a></li></ul><li>
Same for VisualSVN 1.2.1:</li><ul><li><a href="http://unifaces.de/blog/content/binary/install_visualsvn_vs9.reg">install_visualsvn_vs9.reg
(1.23 KB)</a><a href="http://unifaces.de/blog/content/binary/install_visualsvn_vs9_german_paths.reg"></a></li></ul><ul><li><a href="http://unifaces.de/blog/content/binary/install_visualsvn_vs9_german_paths.reg">install_visualsvn_vs9_german_paths.reg
(1.22 KB)</a></li></ul></ul>
This will probably only work with the same versions of these addins, but the process
is the same if you need other addins to work. I also tested it on vista and it worked
there too. Again, if you just installed VS Orcas over your existing VS 2005 installation
most addins will be copied and work out of the box. And even addins like CodeRush
can easily be fixed with the tricks above. You probably won't need the .reg files
here, but they may still be useful for someone and if you need additional addins to
work.<br /><br />
I hope this helps if you want to work with VS Orcas too. It did not crash at my computer
yet and I did some nasty things to the registry ^^ It only crashed once at my colleagues
computer so far (and we both set the AutoRecover to 2 minutes just in case, we were
early adopters for VS 2005 too and learned our lessons).<br /><br /><br />
Links:<br /><ul><li><a href="http://www.codeproject.com/useritems/OrcasPreview.asp">A Sneaky Peek At Orcas,
short article showing you how to create a new project with lots of screenshots</a></li></ul><ul><li><a href="http://www.codeproject.com/vista/LINQ_1.asp">LINQ Introduction, very long
article, good information, especially if you need a good introduction and overview
about all features.</a></li></ul><ul><li><a href="http://msdn2.microsoft.com/en-us/vcsharp/aa336746.aspx">101 LINQ Samples:
Very useful resource to get started and see some useful examples of the new language
features.</a></li></ul><ul><li><a href="http://blogs.msdn.com/charlie/archive/2007/03/04/samples-update.aspx">LINQ
Samples Update for VS Orcas March CTP</a></li></ul><ul><li><a href="http://www.microsoft.com/downloads/details.aspx?familyid=CF76FCBA-07AF-47AC-8822-4AD346210670&amp;displaylang=en#filelist">Download
VS Orcas March CTP (self-extracting install) 4.5 GB</a></li></ul><ul><li><a href="http://www.microsoft.com/downloads/details.aspx?familyid=B533619A-0008-4DD6-9ED1-47D482683C78&amp;displaylang=en#filelist">Download
VS Orcas March CTP (Virtual Image for Virtual PC or Virtual Server in case you are
a pussy) 6.1 GB</a></li></ul><ul><li><a href="http://www.microsoft.com/downloads/details.aspx?familyid=C17C9FB8-2A4A-426D-B08B-6AE614D16A0D&amp;displaylang=en#filelist">Download
VS Orcas March CTP (Team Foundation Server) 860 MB</a></li></ul><a href="http://unifaces.de/blog/content/binary/install_visualsvn_vs9_german_paths.reg"></a><img src="http://unifaces.de/blog/cptrk.ashx?id=8693c085-5b5b-4eea-bc2b-2a14d357da4c" height="0" width="0" /><img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=9c026a06-6d24-4ee2-9485-7db1f89ed573" /></body>
      <title>Installing Visual Studio Orcas March CTP and getting Addins like CodeRush to work with it</title>
      <guid isPermaLink="false">http://exdream.no-ip.info/blog/PermaLink,guid,9c026a06-6d24-4ee2-9485-7db1f89ed573.aspx</guid>
      <link>http://exdream.no-ip.info/blog/2007/04/04/InstallingVisualStudioOrcasMarchCTPAndGettingAddinsLikeCodeRushToWorkWithIt.aspx</link>
      <pubDate>Wed, 04 Apr 2007 02:28:26 GMT</pubDate>
      <description>&lt;img src="http://www.publicvoid.dk/content/binary/VisualStudioLogo.gif"&gt;
&lt;br&gt;
&lt;br&gt;
Today I found some time to install &lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=CF76FCBA-07AF-47AC-8822-4AD346210670&amp;amp;displaylang=en#filelist"&gt;Visual
Studio Codename Orcas CTP March 2007&lt;/a&gt; (see below for all the download links), which
came out last month. I have worked a lot with ASP.NET Atlas (now ASP.NET Ajax) and
LINQ (C# 3.0) before, but they are now beautifully integrated in the latest CTP and
intellisense works so much better than in the early days of LINQ, so getting this
up and running for future projects would be a good thing since I'm an early adopter
anyway.&lt;br&gt;
&lt;br&gt;
Initially VS Orcas would not even install at all and I thought maybe my Visual Studio
2005 is messed up because I had some problems with ASP.NET Ajax before and had to
repair VS 2005 a couple of times this year already. After completely uninstalling
VS 2005 and trying again the same fatal error message was still coming up in the Installer:&lt;br&gt;
&lt;br&gt;
&lt;span id="_ctl0_MainContent_PostFlatView"&gt;&lt;span&gt;Microsoft Web Designer Tools failed
.. &lt;/span&gt;&lt;/span&gt;&lt;span id="_ctl0_MainContent_PostFlatView"&gt;&lt;span&gt;EventType : visualstudio8setup
and then a lot of crazy numbers, which do not help (&lt;a href="http://www.google.com"&gt;google&lt;/a&gt;ing
did not return anything).&lt;br&gt;
&lt;br&gt;
As usual clicking on the '&lt;/span&gt;&lt;/span&gt;&lt;span id="_ctl0_MainContent_PostFlatView"&gt;&lt;span&gt;view
error log' gets you a site not found page, while the installer creates a couple of
log files in c:\something or c:\program files\microsoft visual studio 9\logs\ like
"dd_vserror80.txt". Those files look interessting, but they only tell me the exact
same crazy numbers and that this component failed. After googleing some more and only
finding similar problems like &lt;a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1363516&amp;amp;SiteID=1"&gt;this
one&lt;/a&gt; I uninstalled everything that could even remotely being used by .NET. After
restarting and trying again the exact same freaking error message appeared. Grrr ...&lt;br&gt;
&lt;br&gt;
To make a long story a little bit shorter: I finally found out that Office 2007 was
the root of all the problems, after uninstalling that one (what the hell does this
have to do with web designer tools?) the Orcas installer was working and I could launch
the new version:&lt;/span&gt;&lt;/span&gt;
&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;img src="http://unifaces.de/blog/content/binary/VisualStudioOrcas.png" border="0"&gt;
&lt;br&gt;
&lt;br&gt;
As you can see it looks the same way as Visual Studio 2005, some colors were just
enhanced. As you can also see I'm back to Windows XP just because so many games do
not work correctly in Vista and many drivers (hello Nvidia) are still shitty and slow.&lt;br&gt;
&lt;br&gt;
&lt;a href="http://TestDriven.NET"&gt;TestDriven.NET&lt;/a&gt; works beautifully in VS Orcas and
the developer Jamie Cansdale really does a great job updating the product so often.
He even added VS Express support again recently, which might be cool for XNA Express
developers. I also like the relatively new 'Go to Reflector' feature and especially
the 'Rerun test' I use all the time.&lt;br&gt;
&lt;br&gt;
Other plugins I use like CodeRush, VisualSVN, Explorer, LineCounter and whatever do
not show up however. And reinstalling them does not help because the developers of
those just did not update the installers yet. I can live without most plugins, but
not without CodeRush and my CR_Commenter plugin, so I had to get this working. I thought
this would be a long day ahead with all the problems even installing VS Orcas, but
it turned out to be quite easy to add your existing VS 2005 addins to VS Orcas.&lt;br&gt;
&lt;br&gt;
If you install VS Orcas after VS 2005 and have all your addins already installed it
will migrate most of them over to VS Orcas, but if you install VS Orcas first (like
I did because I killed VS 2005 before, see above) or install new addins, then you
will need the following tricks to make them work in VS Orcas. Some addins like CodeRush
will not be added by the VS Orcas installation because it misses the "Addins" (CodeRush
1.x) or "PreloadAddinStateManaged" (CodeRush 2.x) registry keys, but you can easily
copy them over from VS 2005 (vs 8.0) to VS Orcas (vs 9.0) the following way:&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
Open up regedit&lt;/li&gt;
&lt;li&gt;
Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\AddIns&lt;/li&gt;
&lt;li&gt;
Search for the CodeRush key and export it&lt;/li&gt;
&lt;li&gt;
If you can't find a CodeRush key here try (probably CodeRush 2.x specific): [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\PreloadAddinStateManaged]&lt;/li&gt;
&lt;li&gt;
If you can't find it there either try the reg installers below!&lt;/li&gt;
&lt;li&gt;
Now edit the exported .reg file and just change the \8.0\ to \9.0\ and save.&lt;/li&gt;
&lt;li&gt;
Finally doubleclick the file to merge it with your registry (at your own risk btw
^^)&lt;/li&gt;
&lt;li&gt;
Start VS Orcas and enjoy the DevExpress menu and the CodeRush functionality :)&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;br&gt;
If you had not installed CodeRush before installing VS Orcas most important registry
keys will be missing and you will probably get some "package could not be loaded error"
like I did. This will also happen if you install other plugins to VS 2005, which are
not installed to VS Orcas like TestDriven.NET does it. Then you have to apply the
following process:&lt;br&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
Open up regedit again (you have to repeat this probably a few more times if you miss
any important reg key)&lt;/li&gt;
&lt;li&gt;
Search for your Addin name or navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\InstalledProducts&lt;/li&gt;
&lt;li&gt;
Find your product, it might not be just the name of the product, but something similar
(like DXCore for CodeRush).&lt;/li&gt;
&lt;li&gt;
You need to open up the key and copy the internal package GUID (the long ugly id)
like {BD359A86-BF88-4c4e-A7D2-6CDDA36C3B79} for DXCore&lt;/li&gt;
&lt;li&gt;
Now search the whole HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\ namespace
for this key and export everything to external files.&lt;/li&gt;
&lt;li&gt;
Merge those exported .reg files and replace \8.0\ with \9.0\ like above.&lt;/li&gt;
&lt;li&gt;
Save, import again and start Orcas to test. Repeat until it works ^^&lt;br&gt;
&lt;/li&gt;
&lt;/ul&gt;
It would probably be better to write some tool for this, especially since there is
almost no addin that will install itself correctly to VS Orcas, but I'm too lazy right
now and have no time for that anyway. But here are a couple of .reg files I used to
restore the 2 most important addins for me:&lt;br&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
Install CodeRush 2.1.2 to VS Orcas, uses the default paths (english), change if you
have installed it somewhere else&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="http://unifaces.de/blog/content/binary/install_coderush2_vs9.reg"&gt;install_coderush2_vs9.reg
(3.08 KB)&lt;/a&gt;&lt;a href="http://unifaces.de/blog/content/binary/install_visualsvn_vs9_german_paths.reg"&gt;&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;
Same with german paths (the documents and program files are different in german),
change this to other languages if your windows is not english or german:&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="http://unifaces.de/blog/content/binary/install_coderush2_vs9_german_paths.reg"&gt;install_coderush2_vs9_german_paths.reg
(3.08 KB)&lt;/a&gt;&lt;a href="http://unifaces.de/blog/content/binary/install_visualsvn_vs9_german_paths.reg"&gt;&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;
Same for VisualSVN 1.2.1:&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="http://unifaces.de/blog/content/binary/install_visualsvn_vs9.reg"&gt;install_visualsvn_vs9.reg
(1.23 KB)&lt;/a&gt;&lt;a href="http://unifaces.de/blog/content/binary/install_visualsvn_vs9_german_paths.reg"&gt;&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="http://unifaces.de/blog/content/binary/install_visualsvn_vs9_german_paths.reg"&gt;install_visualsvn_vs9_german_paths.reg
(1.22 KB)&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
This will probably only work with the same versions of these addins, but the process
is the same if you need other addins to work. I also tested it on vista and it worked
there too. Again, if you just installed VS Orcas over your existing VS 2005 installation
most addins will be copied and work out of the box. And even addins like CodeRush
can easily be fixed with the tricks above. You probably won't need the .reg files
here, but they may still be useful for someone and if you need additional addins to
work.&lt;br&gt;
&lt;br&gt;
I hope this helps if you want to work with VS Orcas too. It did not crash at my computer
yet and I did some nasty things to the registry ^^ It only crashed once at my colleagues
computer so far (and we both set the AutoRecover to 2 minutes just in case, we were
early adopters for VS 2005 too and learned our lessons).&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Links:&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="http://www.codeproject.com/useritems/OrcasPreview.asp"&gt;A Sneaky Peek At Orcas,
short article showing you how to create a new project with lots of screenshots&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="http://www.codeproject.com/vista/LINQ_1.asp"&gt;LINQ Introduction, very long
article, good information, especially if you need a good introduction and overview
about all features.&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="http://msdn2.microsoft.com/en-us/vcsharp/aa336746.aspx"&gt;101 LINQ Samples:
Very useful resource to get started and see some useful examples of the new language
features.&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="http://blogs.msdn.com/charlie/archive/2007/03/04/samples-update.aspx"&gt;LINQ
Samples Update for VS Orcas March CTP&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=CF76FCBA-07AF-47AC-8822-4AD346210670&amp;amp;displaylang=en#filelist"&gt;Download
VS Orcas March CTP (self-extracting install) 4.5 GB&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=B533619A-0008-4DD6-9ED1-47D482683C78&amp;amp;displaylang=en#filelist"&gt;Download
VS Orcas March CTP (Virtual Image for Virtual PC or Virtual Server in case you are
a pussy) 6.1 GB&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=C17C9FB8-2A4A-426D-B08B-6AE614D16A0D&amp;amp;displaylang=en#filelist"&gt;Download
VS Orcas March CTP (Team Foundation Server) 860 MB&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;a href="http://unifaces.de/blog/content/binary/install_visualsvn_vs9_german_paths.reg"&gt;&lt;/a&gt;&lt;img src="http://unifaces.de/blog/cptrk.ashx?id=8693c085-5b5b-4eea-bc2b-2a14d357da4c" height="0" width="0"&gt;&lt;img width="0" height="0" src="http://exdream.no-ip.info/blog/aggbug.ashx?id=9c026a06-6d24-4ee2-9485-7db1f89ed573" /&gt;</description>
      <comments>http://exdream.no-ip.info/blog/CommentView,guid,9c026a06-6d24-4ee2-9485-7db1f89ed573.aspx</comments>
      <category>All;Game Development;Other;Programming;Ajax</category>
    </item>
  </channel>
</rss>