Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1125
  • Last Modified:

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.

0
rodmjay
Asked:
rodmjay
  • 6
  • 5
  • 4
  • +2
3 Solutions
 
santhoshxCommented:
Using visual studio command prompt run regiis_asp -a. If you jsut type in regiis_asp  you will get different options
0
 
santhoshxCommented:
sorry regiis_asp -i
0
 
Orlando15767Commented:
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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.
0
 
rodmjayAuthor Commented:
I ran aspnet_regiis -i and it still doesnt work.
0
 
santhoshxCommented:
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
 
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.
0
 
santhoshxCommented:

 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
 
sandip132Commented:
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
 
sandip132Commented:
Make sure the "ASP.NET State Service" Service is running.
0
 
rodmjayAuthor Commented:
ive tried everything you guys have thrown at me, ive even uninstalled and re-installed visual studio.

Any more ideas?
0
 
santhoshxCommented:
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
 
rodmjayAuthor Commented:
i did that too.  What do you mean "ran the install for my asp.net application"?
0
 
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?
0
 
sandip132Commented:
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
 
siobiCommented:
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
 
siobiCommented:
I need my point!!!!
0
 
siobiCommented:
where is my point???????

I want my point!!!!!
0
 
siobiCommented:
I need my point!!!!
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 6
  • 5
  • 4
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now