VS Installed Before IIS - Unable to start debugging on the server - Cant use localhost as server

I have came across this problem before...

IIS was installed after VS was.  Last time i had to uninstall visual studio, and do it in the right order.  I was wondering if anyone knew the tricks to making IIS configured to work normally with Visual Studio in this situation.  Here is the error i am getting

I am using VS2005 with IIS5 (for XP Pro)

"Unable to start debugging on the web server.  <html><head><title>Server Application Error </title></head><body><h1>Server Application Error</h1>The server has encountered an error while loading an application during the processing of your request.  Please refer to the event log for more detail information.  Please contect the server administrator for assistence.</body></html>

Make sure the server is operating correctly.  Berify there are no syntax errors in web.config by doing a Debug.Start Without Debugging. You may also want to refer to the ASP.NET and ALT Server debugging topic in the online documentation."

Any help greatly appreciated.  Or if there is a way to configure this to work with Cassini that would be great as well.  This is a website that i loaded from VSS and it automatically loaded as http://localhost/MyWebsite, so if there is a way for this to work for cassini for me, but keep it as localhost for vss, that would be great as well.

Who is Participating?
santhoshxConnect With a Mentor Commented:
So everything is bouncing , did u re-install IIS also ?

http://www.codecomments.com/ASP_.NET/message333121.html  - wrote

Irealized that I hadn't uninstalled and reinstalled IIS.  So I did that.
Still didn't work.  Then, I ran aspnet_regiis -i. Still didn't work.  then,
ran the install for my little ASP.NET application.  It worked!  I then
uninstalled my application and recreated the links in IIS to my source
directories for the various ASP.NET projects.  It still worked!
Using visual studio command prompt run regiis_asp -a. If you jsut type in regiis_asp  you will get different options
sorry regiis_asp -i
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

you may also want to check if your iis is running (service is started) as well as check your web.config and make sure you are in debug mode.
rodmjayAuthor Commented:
when i run that command i get

'regiis_asp' is not recognized as ain internal or extarnal command, operable program of batch file.
rodmjayAuthor Commented:
I ran aspnet_regiis -i and it still doesnt work.
Check yor IIS check Directory Security of your application. Does it allow Anonymous access + Windows Integrated Authen.
Also In your machine - Admin tools - computer management - Local Users and Groups -> check to which group does ASPNET belongs

Check this article on VS2003, this will give some hints for you

rodmjayAuthor Commented:
I look in the event viewer and this is the message i get

The server failed to load application '/LM/W3SVC'.  The error was 'The specified metadata was not found.
For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

 I think this a problem with user rights for ASPNET, IWAM_ XXX and  IUSER_XXXX users. Grand them admin rights and give a try
Search and get the path for aspnet_regiis.exe.
Go to .net framework command prompt.
Paste the whole  path + aspnet_regiis.exe -i   (Press Enter)

Reboot... n' Check it.

Make sure the "ASP.NET State Service" Service is running.
rodmjayAuthor Commented:
ive tried everything you guys have thrown at me, ive even uninstalled and re-installed visual studio.

Any more ideas?
rodmjayAuthor Commented:
i did that too.  What do you mean "ran the install for my asp.net application"?
rodmjayAuthor Commented:
another option would be to make change the project to use cassini instead of iis.  The project is source controlled, how could i do this?
sandip132Connect With a Mentor Commented:
try this :
go in iis settings
right click you website, select property.
Go in "Directory security".
Click the button there, and verify that the first and last checkbox is checked.
siobiConnect With a Mentor Commented:
I had encounter the same issue...
What I did was,

Register the IIS, u haddid it...

Start Internet Services Manager from Administrative Tools.
Your computer will appear under Internet Information Services. Right-click on your computer and choose Properties.
Select Master WWW Service in the drop-down, then click Edit....
Select the Directory Security tab.
Under Anonymous access and authentication control click Edit...
In the Authentication Methods form, make sure Anonymous access and windows Authentication is checked, then click Edit....
The default username will be IUSR_NAME. We need to replace this with NAME\IUSR_NAME where NAME is your computer name. You can type it in manually or use these steps:
Click the Browse... button.
On the Select User form click the Advanced... button in the bottom left.
Click the Find Now button in the middle-right of this form.
Select IUSR_NAME in the user list at the bottom of the form, then click OK
Click OK to dismiss the Select User form.
Uncheck Allow IIS to control password. (This is important!)
Click OK to dismiss the Anonymous User Account form.
Click OK to dismiss the Authentication Methods form.
Click OK to dismiss the WWW Service Master Properties form.
Click OK to dismiss the Computername Properties form.

make sure u did this as well

Configure Home Directory
With Internet Services Manager:
Your computer will appear under Internet Information Services. Click on your computer to expand its list of servers.
Right-click on Default Web Server and choose Properties.
Select the Home Directory tab.
In the Application Protection drop-down under Application Settings choose Low (IIS Process).
Click OK to dismiss the form.

remember to give me the 500 points.... :P
I need my point!!!!
where is my point???????

I want my point!!!!!
I need my point!!!!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.