I'm using VS2010 Express with SP1 on XP Pro SP3. I have a web development site on a local drive that was running fine under IIS Express. Now when I launch under IISEx it give "cannot display web page" the first time, and the second time IISEx goes up
to 50% CPU usage and doesn't come done, eventually freezing the machine for at least several minutes (at which point I do a hard restart). The site works fine under the VS Development Server (Cassini).
I made two changes that might have affected things. 1) I made a copy of the site for operations testing and got it to run under IIS 5.1. Then I pointed IIS at the development site, and could not get it to run (can't remember why, exactly, could be I just
didn't configure IIS properly). 2) I renamed the folder that the development site was in, and then could not figure out how to get VS2010Ex to recognize it on the start page; it keeps showing the site only as localhost:4XXX (I'm not at that computer right
now). Also, the site keep reverting to VS Dev server, so I have to reselect IISEx each time I try to test it.
I tried uninstaling IISEx and reinstalling, no joy.
Any suggestions on how to get IIS Express back up and running would be appreciated.
Thanks for the input. Unfortunately I don't know anything about application pools and folder permissions for IIS Express. Any pointer on this would be appreciated.
Thanks for the input. I appreciate the link, however, there's a lot going on in the config file and even in the application pools, and without more detailed guidance this is going to be hit and miss. I'm willing to do the technical research, if anyone
has further information specific to IIS Express issues.
I've gone through the exception trace and found one error @ 123.GENERAL_RESPONSE_ENTITY_BUFFER event.
as details suggested, application is not able to open File located at
An attempt to attach an auto-named database for file G:\1610_NEW_SW_DEV\0100_AMPTK_NEW_SW_DEV\App_Data\AMPTKDB_CTLS.MDF failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
which is your Database file.. (May be problem with folder access permission).
some solutions for the same problem are provided here:
gnosischief: Thanks for your help on this. It is much appreciated.
Update
re the "attempt to attach an auto-named database" error: I modified the web.config and I may have I eliminated that, but I can't be sure because I can't get another TraceLog with the "hang"; the system apparently hangs before generating the TraceLog.
Then I ran some more tests, below, in which I changed site start page. This initially generated a "cannot display page" error instead of the hang, so I thought the error might be more page specific. But then it generated the hang error on both of the target
pages, so that the "cannot display page" versus the hang is not consistent.
> Changed a connection string in web.config => it had two for the CTLS.mdb, a) one with a folder path, b) another with [DataDirectory]; removed b)
> Ran under VS Development Server => Worked
> Closed VS2010 Express
> Restarted VS2010 Express
> Ran Debug for site under IIS Express => instead of hang, gave "IE cannot display page"
> Repeated Debug for site under IIS Express => again, "cannot display page"
> In VS2010 Express, changed the start page to "SiteEntrance.aspx", repeated Debug under IIS Express => IIS Express hangs
> Rebooted PC
> Restarted VS2010, changed start page to "zTestLaunch.aspx", run Debug under IIS Express => "IE cannot display page"
> In VS2010 Express, changed the start page to "SiteEntrance.aspx", repeated Debug under IIS Express => "IE cannot display page"
> Stopped debug, restarted debug => cannot display page
> Stopped debug, restarted debug => cannot display page
> Closed VS2010 Express, noted it's pointing to IIS Express, restarted debug => cannot display page (page = SiteEntrance.aspx)
> Restarted VS2010, changed start page to "zTestLaunch.aspx", run Debug under IIS Express => IIS Express hangs
here's the TraceLog from one of the "cannot display page" events
Well, this problem is apparently so peculiar that nobody has heard of it in four forums and one paid service. Next stop $259 at Microsoft support. EXCEPT - dumb me, I discovered don't NEED IIS Express to debug javascript in VS Studio Express( (which I
thought I did - some misperception probably confused IIS Express with IE, which you do need) so, that being my driver, I don't need to work on this any further.
Thanks to anyone who read this far, and particular thanks to gnosischief for giving it a try.
Done!
Marked as answer by codequest on Jan 03, 2013 07:20 PM
codequest
Contributor
2130 Points
484 Posts
IIS Express Hangs
Dec 31, 2012 04:00 AM|LINK
I'm using VS2010 Express with SP1 on XP Pro SP3. I have a web development site on a local drive that was running fine under IIS Express. Now when I launch under IISEx it give "cannot display web page" the first time, and the second time IISEx goes up to 50% CPU usage and doesn't come done, eventually freezing the machine for at least several minutes (at which point I do a hard restart). The site works fine under the VS Development Server (Cassini).
I made two changes that might have affected things. 1) I made a copy of the site for operations testing and got it to run under IIS 5.1. Then I pointed IIS at the development site, and could not get it to run (can't remember why, exactly, could be I just didn't configure IIS properly). 2) I renamed the folder that the development site was in, and then could not figure out how to get VS2010Ex to recognize it on the start page; it keeps showing the site only as localhost:4XXX (I'm not at that computer right now). Also, the site keep reverting to VS Dev server, so I have to reselect IISEx each time I try to test it.
I tried uninstaling IISEx and reinstalling, no joy.
Any suggestions on how to get IIS Express back up and running would be appreciated.
Thanks!
gnosischief
Participant
1022 Points
222 Posts
Re: IIS Express Hangs
Dec 31, 2012 07:15 AM|LINK
1. I Suggest to check Application pool setting and Folder permission for this error.
2. and for same one more troubleshooting (AS xp comes with IIS 5.XX) http://msdn.microsoft.com/en-us/library/k6h9cz8h%28v=vs.80%29.aspx
1. We can limit CPU usage of w3wp.exe by make changes in app pool setting.
After making all changes, please restart IIS and app. pools.
codequest
Contributor
2130 Points
484 Posts
Re: IIS Express Hangs
Dec 31, 2012 05:31 PM|LINK
Thanks for the input. Unfortunately I don't know anything about application pools and folder permissions for IIS Express. Any pointer on this would be appreciated.
gnosischief
Participant
1022 Points
222 Posts
Re: IIS Express Hangs
Jan 01, 2013 06:11 AM|LINK
Here you Go:
http://www.iis.net/configreference/system.applicationhost/applicationpools
codequest
Contributor
2130 Points
484 Posts
Re: IIS Express Hangs
Jan 01, 2013 07:14 PM|LINK
Thanks for the input. I appreciate the link, however, there's a lot going on in the config file and even in the application pools, and without more detailed guidance this is going to be hit and miss. I'm willing to do the technical research, if anyone has further information specific to IIS Express issues.
codequest
Contributor
2130 Points
484 Posts
Re: IIS Express Hangs
Jan 01, 2013 10:07 PM|LINK
The TraceError Log for one such event is here
https://www.yousendit.com/download/UW13UGhTSWVwaFRvS3NUQw
gnosischief
Participant
1022 Points
222 Posts
Re: IIS Express Hangs
Jan 02, 2013 06:20 AM|LINK
Sir,
I've gone through the exception trace and found one error @ 123.GENERAL_RESPONSE_ENTITY_BUFFER event.
as details suggested, application is not able to open File located at
An attempt to attach an auto-named database for file G:\1610_NEW_SW_DEV\0100_AMPTK_NEW_SW_DEV\App_Data\AMPTKDB_CTLS.MDF failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
which is your Database file.. (May be problem with folder access permission).
some solutions for the same problem are provided here:
http://forums.asp.net/t/1830924.aspx/1
http://social.msdn.microsoft.com/forums/en-US/sqlexpress/thread/6dfdcc22-7a81-4e8f-a947-c1ce6982d4b3/
hope this will solve your problem.
codequest
Contributor
2130 Points
484 Posts
Re: IIS Express Hangs
Jan 02, 2013 05:43 PM|LINK
gnosischief: Thanks for your help on this. It is much appreciated.
Update
re the "attempt to attach an auto-named database" error: I modified the web.config and I may have I eliminated that, but I can't be sure because I can't get another TraceLog with the "hang"; the system apparently hangs before generating the TraceLog.
Then I ran some more tests, below, in which I changed site start page. This initially generated a "cannot display page" error instead of the hang, so I thought the error might be more page specific. But then it generated the hang error on both of the target pages, so that the "cannot display page" versus the hang is not consistent.
> Changed a connection string in web.config => it had two for the CTLS.mdb, a) one with a folder path, b) another with [DataDirectory]; removed b)
> Ran under VS Development Server => Worked
> Closed VS2010 Express
> Restarted VS2010 Express
> Ran Debug for site under IIS Express => instead of hang, gave "IE cannot display page"
> Repeated Debug for site under IIS Express => again, "cannot display page"
> In VS2010 Express, changed the start page to "SiteEntrance.aspx", repeated Debug under IIS Express => IIS Express hangs
> Rebooted PC
> Restarted VS2010, changed start page to "zTestLaunch.aspx", run Debug under IIS Express => "IE cannot display page"
> In VS2010 Express, changed the start page to "SiteEntrance.aspx", repeated Debug under IIS Express => "IE cannot display page"
> Stopped debug, restarted debug => cannot display page
> Stopped debug, restarted debug => cannot display page
> Closed VS2010 Express, noted it's pointing to IIS Express, restarted debug => cannot display page (page = SiteEntrance.aspx)
> Restarted VS2010, changed start page to "zTestLaunch.aspx", run Debug under IIS Express => IIS Express hangs
here's the TraceLog from one of the "cannot display page" events
https://www.yousendit.com/download/UW16aXRJNHY4Q1RvS3NUQw
If we could figure out the "cannot display page" error then the hang might be resolvable behind it.
Any further assistance would be appreciated.
Thanks!
codequest
Contributor
2130 Points
484 Posts
Re: IIS Express Hangs
Jan 03, 2013 07:20 PM|LINK
Well, this problem is apparently so peculiar that nobody has heard of it in four forums and one paid service. Next stop $259 at Microsoft support. EXCEPT - dumb me, I discovered don't NEED IIS Express to debug javascript in VS Studio Express( (which I thought I did - some misperception probably confused IIS Express with IE, which you do need) so, that being my driver, I don't need to work on this any further.
Thanks to anyone who read this far, and particular thanks to gnosischief for giving it a try.
Done!