Under "Windows Features" in Windows 7 64-bit, I've enabled IIS. Accessing
http://localhost gives me the default IIS7 page which presumes its been setup correctly.
Created a new Web Application project in VS, set it to use IIS with the project url:
http://localhost/myApp and created the Virtual Directory in the Project Properties. Directory created successfully.
Created a page (default.aspx) under my new project, tried running it, get "Unable to start debugging on the web server" message.
Tried manually building the project then use the "View in browser" for the page, but it brings up the "Error 500.21 - Internal Server Error".
I've enabled all the IIS features, but still no use...
My server experience is very lacking so I am completely lost as to what to do next.
Any help to point me in the right direction would be greatly appreciated.
Do you mean if VS is running correctly (with a standard website project - bebugging-wise) and "Windows Features > Internet Information Services > World Wide Web Services > Application Development Features > ASP.NET" enabled? Or is there another test I could
do for this?
bbcompent1
2. make sure that the NETWORK SERVICE account has permissions to the site.
I'm only using this under Win7 for testing purposes... I would eventually want to upload the project to a hosting site. Do I need to check the network service? If so, how?
Apologies for more questioning, server stuff is really scary stuff for me.
pizzaboy
Member
298 Points
494 Posts
IIS 7 HTTP Error 500.21 - Internal Server Error
May 06, 2011 08:16 AM|LINK
Under "Windows Features" in Windows 7 64-bit, I've enabled IIS. Accessing http://localhost gives me the default IIS7 page which presumes its been setup correctly.
Created a new Web Application project in VS, set it to use IIS with the project url: http://localhost/myApp and created the Virtual Directory in the Project Properties. Directory created successfully.
Created a page (default.aspx) under my new project, tried running it, get "Unable to start debugging on the web server" message.
Tried manually building the project then use the "View in browser" for the page, but it brings up the "Error 500.21 - Internal Server Error".
I've enabled all the IIS features, but still no use...
My server experience is very lacking so I am completely lost as to what to do next.
Any help to point me in the right direction would be greatly appreciated.
Thanks.
bbcompent1
All-Star
33063 Points
8516 Posts
Moderator
Re: IIS 7 HTTP Error 500.21 - Internal Server Error
May 06, 2011 12:58 PM|LINK
What you'll need to check is
1. make sure that IIS is allowing ASP.NET pages.
See this for more: http://forums.iis.net/t/1000561.aspx
2. make sure that the NETWORK SERVICE account has permissions to the site.
A good explanation of this group http://learn.iis.net/page.aspx/140/understanding-built-in-user-and-group-accounts-in-iis-7/
3. make sure that asp.net user account is part of the Worker Process group.
http://technet.microsoft.com/en-us/library/bb633256.aspx for more info
pizzaboy
Member
298 Points
494 Posts
Re: IIS 7 HTTP Error 500.21 - Internal Server Error
May 06, 2011 09:11 PM|LINK
Thanks for the reply, but still a bit losted...
Do you mean if VS is running correctly (with a standard website project - bebugging-wise) and "Windows Features > Internet Information Services > World Wide Web Services > Application Development Features > ASP.NET" enabled? Or is there another test I could do for this?
I'm only using this under Win7 for testing purposes... I would eventually want to upload the project to a hosting site. Do I need to check the network service? If so, how?
Apologies for more questioning, server stuff is really scary stuff for me.
Thanks for your patience...
bbcompent1
All-Star
33063 Points
8516 Posts
Moderator
Re: IIS 7 HTTP Error 500.21 - Internal Server Error
May 06, 2011 10:54 PM|LINK
1. This would be in IIS itself. VS in this case is not consequential.
2. NETWORK SERVICE would be set as an authorized user inside IIS.
pizzaboy
Member
298 Points
494 Posts
Re: IIS 7 HTTP Error 500.21 - Internal Server Error
May 07, 2011 08:57 AM|LINK
Can't seem to find NETWORK SERVICE under the IIS Manager.
Can you talk me through it or provide somewhere which does?
I don't have any users setup on my Win7 64-bit setup apart from the defaults.
bbcompent1
All-Star
33063 Points
8516 Posts
Moderator
Re: IIS 7 HTTP Error 500.21 - Internal Server Error
May 07, 2011 02:36 PM|LINK
Maybe this might give you some idea of what to look for?
http://technet.microsoft.com/en-us/library/dd367859(WS.10).aspx
kctt
Contributor
5004 Points
948 Posts
Re: IIS 7 HTTP Error 500.21 - Internal Server Error
May 10, 2011 03:08 AM|LINK
Instruction how to troubleshoot error "Unable to start debugging on the web server"
http://msdn.microsoft.com/en-us/library/dwesw3ee%28v=VS.100%29.aspx