views:

267

answers:

4

I spent some time debugging a SL3 application with VS 2010 in IE9 beta today and noticed a few quirks. Sometimes when launching the Silverlight app in VS it fails to load in the browser, but refreshing with F5 tends to fix the problem. Also, there are sporadic scripting errors that pop up a debug dialog - these also seem to be fixed by refreshing the page. Has anyone run into these problems and found a fix?

EDIT: My most prevalent error is: Error: ASP.NET Ajax client-side framework failed to load.

+1  A: 

I noticed this as well with Silverlight 4, but also when I start a simple web project.

Dennis Doomen
+1  A: 

IE9 has a shorter startup time that IE8. Debugging a Silverlight application starts the development web server to host the http:// site. The time that it took to start up the web server was less than the time to start up IE8 and greater than the time it takes to start up IE9.

Michael S. Scherotter
+4  A: 

I don't understand why, but someone without a name at the Silverlight forums has found a solution that worked for me:

Just add or uncomment this entry to your hosts file (%SystemRoot%\system32\drivers\etc\hosts): 127.0.0.1 localhost

Dennis Doomen
This worked for me.
James Cadd
http://www.windowsreference.com/windows-7/edit-hosts-file-in-windows-7-windows-vista/ - How to edit the hosts file
Harry
A: 

@Dennis Doomen You saved my day ... the mentioned fix works 100%! Thank you!

Torben