Solved

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

Posted on 2006-11-08
22
1,106 Views
Last Modified: 2012-08-13
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.

0
Comment
Question by:rodmjay
  • 6
  • 5
  • 4
  • +2
22 Comments
 
LVL 2

Expert Comment

by:santhoshx
ID: 17903840
Using visual studio command prompt run regiis_asp -a. If you jsut type in regiis_asp  you will get different options
0
 
LVL 2

Expert Comment

by:santhoshx
ID: 17903856
sorry regiis_asp -i
0
 
LVL 1

Expert Comment

by:Orlando15767
ID: 17903875
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.
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 
LVL 8

Author Comment

by:rodmjay
ID: 17903947
when i run that command i get

'regiis_asp' is not recognized as ain internal or extarnal command, operable program of batch file.
0
 
LVL 8

Author Comment

by:rodmjay
ID: 17903964
I ran aspnet_regiis -i and it still doesnt work.
0
 
LVL 2

Expert Comment

by:santhoshx
ID: 17904295
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

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vsdebug.asp
0
 
LVL 8

Author Comment

by:rodmjay
ID: 17904531
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.
0
 
LVL 2

Expert Comment

by:santhoshx
ID: 17904576

 I think this a problem with user rights for ASPNET, IWAM_ XXX and  IUSER_XXXX users. Grand them admin rights and give a try
0
 
LVL 12

Expert Comment

by:sandip132
ID: 17904652
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.



0
 
LVL 12

Expert Comment

by:sandip132
ID: 17904660
Make sure the "ASP.NET State Service" Service is running.
0
 
LVL 8

Author Comment

by:rodmjay
ID: 17904701
ive tried everything you guys have thrown at me, ive even uninstalled and re-installed visual studio.

Any more ideas?
0
 
LVL 2

Accepted Solution

by:
santhoshx earned 168 total points
ID: 17904733
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,
I
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!
"
0
 
LVL 8

Author Comment

by:rodmjay
ID: 17904746
i did that too.  What do you mean "ran the install for my asp.net application"?
0
 
LVL 8

Author Comment

by:rodmjay
ID: 17904762
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?
0
 
LVL 12

Assisted Solution

by:sandip132
sandip132 earned 166 total points
ID: 17904885
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.
0
 
LVL 1

Assisted Solution

by:siobi
siobi earned 166 total points
ID: 17904919
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
0
 
LVL 1

Expert Comment

by:siobi
ID: 18206484
I need my point!!!!
0
 
LVL 1

Expert Comment

by:siobi
ID: 18241502
where is my point???????

I want my point!!!!!
0
 
LVL 1

Expert Comment

by:siobi
ID: 18249761
I need my point!!!!
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question