For quite some time now I'm having problems to start ASP.NET projects from Visual Studio 2010 Professional SP1. I have all actual Windows updates installed. When I debug or start without debugging the browser only displays a white screen and in the status
bar "waiting for answer of localhost". The address bar shows the correct page. The CPU goes up and the fan starts, but the page is not displayed. After some minutes IE displays that the webpage can't be displayd.
If I type in the local address in the browser address bar "localhost/path..." all applications run fine. (First I was not able to run the applications entering the page in the address bar due to missing access rights. I keep websites in the websites library)
When I added IUSR and IIUSR... they run fine directly from the browser. Still I can't run or debug any application out of Visual Studio.
I created a new web application with ASP.Net 2 and 4 inside of Visual Studio. Still I wasn't able to debug or run them from within Visual Studio.
I tried turning of AV and Firewall (GData) and run VS explicit as Administrator—No difference. I tried to set the local IIS as the server, but still IE ramps up the CPU and IE only shows white. So the same problem occurs independet of using IIS or WebDev.
When I switch back to default server and run the page from VS the address bar doesn't show the page name and path anymore. Rather it shows the root folder of the web site project only. Even if I switch back to custom server IE only shows the root folder (localhost/virtdir).
I need to restart VS to have it work again.
If I enter the same URL in a new browser window the page is displayed. So it seems it has nothing to do with WebDev, but rather with VS. Since I can attach the debugger process to IIS when the page is in the browser it seems not to be the debugger. I tested
attaching the debug process to the IIS worker process. This works fine. I can also debug from within Visual Studio WinForms. The issue occurs only when I start aspx pages from within Visual Studio.
I can't recall the exact steps anymore, but if I'm not mistaken I had kind of the same problem before installing SP1. The difference was that it only occurred in one project and IE and VS hang completely. I had to kill both processes. I deleted VS settings
files and it worked again. Then I installed SP1 reading about the debug problems. Now no website project works anymore.
I'm pulling my hair. I already wasted two days when I supposed to have finished this project.
Some more testing provided more insight. I used F5 to debug the page. IE came up and just pumped up the CPU as usual. I closed IE. Normally the debug process stops, but Visual Studio stayed in debug mode. I copied the URL, opened Firefox and pasted the URL...
and... Firefox displayed the website and I was able to debug.
So debugging works with FF and also if I attach the Debugger to the IIS worker process. It seems to be an IE problem now. Does anybody has any clue what the cause is?
Yes, something must be wrong with IE. I did try to reset IE. The only add-ons I have are shockwave (flash) and silverlight. I tried to deactivate them, too. Nothing helpped so far. I might try to update to IE 10.
Marcus
Marked as answer by Angie xu - MSFT on Dec 07, 2012 01:02 AM
MarcusKo
0 Points
6 Posts
Browser hangs / high CPU when starting ASP.NET project from Visual Studio 2010
Nov 16, 2012 07:15 PM|LINK
For quite some time now I'm having problems to start ASP.NET projects from Visual Studio 2010 Professional SP1. I have all actual Windows updates installed. When I debug or start without debugging the browser only displays a white screen and in the status bar "waiting for answer of localhost". The address bar shows the correct page. The CPU goes up and the fan starts, but the page is not displayed. After some minutes IE displays that the webpage can't be displayd.
If I type in the local address in the browser address bar "localhost/path..." all applications run fine. (First I was not able to run the applications entering the page in the address bar due to missing access rights. I keep websites in the websites library) When I added IUSR and IIUSR... they run fine directly from the browser. Still I can't run or debug any application out of Visual Studio.
I created a new web application with ASP.Net 2 and 4 inside of Visual Studio. Still I wasn't able to debug or run them from within Visual Studio.
I tried turning of AV and Firewall (GData) and run VS explicit as Administrator—No difference. I tried to set the local IIS as the server, but still IE ramps up the CPU and IE only shows white. So the same problem occurs independet of using IIS or WebDev.
When I switch back to default server and run the page from VS the address bar doesn't show the page name and path anymore. Rather it shows the root folder of the web site project only. Even if I switch back to custom server IE only shows the root folder (localhost/virtdir). I need to restart VS to have it work again.
If I enter the same URL in a new browser window the page is displayed. So it seems it has nothing to do with WebDev, but rather with VS. Since I can attach the debugger process to IIS when the page is in the browser it seems not to be the debugger. I tested attaching the debug process to the IIS worker process. This works fine. I can also debug from within Visual Studio WinForms. The issue occurs only when I start aspx pages from within Visual Studio.
I can't recall the exact steps anymore, but if I'm not mistaken I had kind of the same problem before installing SP1. The difference was that it only occurred in one project and IE and VS hang completely. I had to kill both processes. I deleted VS settings files and it worked again. Then I installed SP1 reading about the debug problems. Now no website project works anymore.
I'm pulling my hair. I already wasted two days when I supposed to have finished this project.
Does anybody has an idea what the cause is?
Marcus
MarcusKo
0 Points
6 Posts
Re: Browser hangs / high CPU when starting ASP.NET project from Visual Studio 2010
Nov 16, 2012 11:33 PM|LINK
Some more testing provided more insight. I used F5 to debug the page. IE came up and just pumped up the CPU as usual. I closed IE. Normally the debug process stops, but Visual Studio stayed in debug mode. I copied the URL, opened Firefox and pasted the URL... and... Firefox displayed the website and I was able to debug.
So debugging works with FF and also if I attach the Debugger to the IIS worker process. It seems to be an IE problem now. Does anybody has any clue what the cause is?
Marcus
Ruchira
All-Star
42888 Points
7020 Posts
MVP
Re: Browser hangs / high CPU when starting ASP.NET project from Visual Studio 2010
Nov 18, 2012 08:01 AM|LINK
Hello,
I think your IE is not properly installed or something. Try by disabling all the plugings for IE.
My Tech blog | My YouTube ChannelPlease 'Mark as Answer' if this post helps you.MarcusKo
0 Points
6 Posts
Re: Browser hangs / high CPU when starting ASP.NET project from Visual Studio 2010
Nov 18, 2012 05:32 PM|LINK
Yes, something must be wrong with IE. I did try to reset IE. The only add-ons I have are shockwave (flash) and silverlight. I tried to deactivate them, too. Nothing helpped so far. I might try to update to IE 10.
Marcus
Angie xu - M...
All-Star
18295 Points
1550 Posts
Microsoft
Re: Browser hangs / high CPU when starting ASP.NET project from Visual Studio 2010
Nov 23, 2012 01:19 AM|LINK
Hi MarcusKo
If you also have some problems about Internet Explorer, you could post this thread in Internet Explorer Web Development Forums.
Thanks for your support to ASP.NET Forums.
Kind regards
Feedback to us
Develop and promote your apps in Windows Store