How do you map "localhost" to inetpub/wwwroot?

Nirvana1979

Junior Member
Nov 24, 2002
23
0
0
I'm having a very frustrating problem with visual studio.net. I have a webappliction project in my wwwroot directory, but when I try to open it I get the error c:\localhost\webapplication1 does not map to inetpub\wwwroot. My IIS is working and everything, and I can load html documents remotly from my iis, but VS projects won't open! Does anyone have any ideas on how I can fix this?
 

Nirvana1979

Junior Member
Nov 24, 2002
23
0
0
I am trying to open a c# project file named WebApplication1. I am able to open .aspx files and any other file individually with visual studio, but I cannot open up project files. The exact error messages is Unable to open webapplication1, the filepath c:\inetpub\wwwroot\webapplication1 does not correspond to http://localhost:/webapplication1 the two need to map to the same server location. HTTP Error 404.

This file opens up fine on my school network, and i have it in the same directory. Do I have to configure my server to open up visual studio project files???
 

dexter333

Senior member
Oct 9, 2000
442
0
0
Are you using whatever IIS' equivalent of Apache's name based virtual servers is? Because I had to deal with this at school on Friday. Go into the site properties in IIS, choose advanced for the ip's it's listening on, and add localhost in there.