Getting the IE9 Beta to Play Well with Visual Studio 2010

image

I’ve been playing with IE9 quite a bit lately and really like what I’m seeing in the browser. It’s fast, standards compliant (from what I’ve seen so far anyway), sleek and leaves a lot of room to display web content. However, I’ve been running into problems with “page not found” errors when trying to load ASP.NET or Silverlight web pages from Visual Studio 2010. I’ve also seen calls to web services fail sporadically when the calls are made directly from the browser (AJAX or Silverlight). I don’t have the problem at all with other browsers so I knew it must be related to the IE9 beta.

After doing a little searching I came across a bug reported on Microsoft’s Connect site. There’s a “Workaround” tab that provides some simple instructions for fixing the issue. In sum, you need to remove a comment from the localhost line in the hosts file on your system (located at C:\Windows\System32\drivers\etc). Once I did that everything started working perfectly and I don’t get “page not found” errors anymore.

image

Published Wednesday, November 10, 2010 10:27 AM by dwahlin

Comments

# Twitter Trackbacks for Getting the IE9 Beta to Play Well with Visual Studio 2010 - Dan Wahlin's WebLog [asp.net] on Topsy.com

Pingback from  Twitter Trackbacks for                 Getting the IE9 Beta to Play Well with Visual Studio 2010 - Dan Wahlin's WebLog         [asp.net]        on Topsy.com

# re: Getting the IE9 Beta to Play Well with Visual Studio 2010

Wednesday, November 10, 2010 1:59 PM by MJ Hufford

Looks like IE9 is going for some native IP v6 support, eh?

# re: Getting the IE9 Beta to Play Well with Visual Studio 2010

Wednesday, November 10, 2010 2:06 PM by G. Andrew Duthie

Dan, thanks for passing this along...works great!

# re: Getting the IE9 Beta to Play Well with Visual Studio 2010

Wednesday, November 10, 2010 2:25 PM by john galt

BTW, this isn't just IE 9. Any page on any server (mostly aspx pages) will cause this since an update around May of this year. (I don't know which one but I can repro that a Windows 7 clean machine does not do this). The page will come back with not found or similar with a timeout. All other browsers wait and the page comes up.

Real pain when doing testing and the site is warming up.

# Dew Drop – November 11, 2010 | Alvin Ashcraft's Morning Dew

Thursday, November 11, 2010 8:04 AM by Dew Drop – November 11, 2010 | Alvin Ashcraft's Morning Dew

Pingback from  Dew Drop – November 11, 2010 | Alvin Ashcraft's Morning Dew

# re: Getting the IE9 Beta to Play Well with Visual Studio 2010

Thursday, November 11, 2010 1:53 PM by Jatin Mehta

Thanks a lot Dan. I was running into the same issue, getting lots of 404 with IE9 Beta, when starting ASP.NET, MVC, Silverlight apps from Visual Studio. Thanks for pointing to the solution.

# re: Getting the IE9 Beta to Play Well with Visual Studio 2010

Thursday, November 11, 2010 2:00 PM by Jatin Mehta

Thanks again Dan. But in my hosts file localhost was already uncommented as mentioned in the fix. Other people(JKallie) also said that the hosts file was fine for them but they still got 404's. I am still getting 404's. One reason seems to be "Seems like IE9 starts before Cassini is ready. " and the comments section shows that

connect.microsoft.com/.../page-not-found-with-ie9-beta-and-start-debug-of-silverlight-project

So, Microsoft is still working on the issue and hope they solve it soon.

# re: Getting the IE9 Beta to Play Well with Visual Studio 2010

Friday, November 12, 2010 2:18 PM by dwahlin

John:

Thanks for the info. I haven't had that problem since the update you mention but it's definitely good to know in case I run into again.

Jatin:

That's a bummer you're still seeing the problem even with the hosts file fixed up like in the workaround. I don't know the answer there but if you happen to find a solution please let us all know.

# re: Getting the IE9 Beta to Play Well with Visual Studio 2010

Thursday, December 09, 2010 12:53 PM by Registry Cleaner

I was just thinking to try out the new IE9 Beta and I was searching on the internet for details about the new browser, when I found your post. Your tip will be of great value for me because I have installed Visual Studio 2010 in my computer. Thanks!