M
Microsoft
Hello all,
Here's the setup:
I've got VS.NET 2003 installed on a Windows 2003 Server. I've got multiple
sites configured as listed below using host headers:
dev.mydomain.com
ip: 127.0.0.1
host headers: dev.mydomain.com, empty (as in no value)
root directory: e:\web sites\dev.mydomain.com
root directory is shared as wwwroot$
www.someotherdomain.com
ip: my server's only external ip
hostheaders: www.someotherdomain.com, someotherdomain.com
root directory: e:\web sites\www.someotherdomain.com
Now, when I try to create an ASP.NET application using
http://localhost/appname, I get the dreaded web access failed message. The
weird part is, the physical path it is trying to use is the physical root
directory of the second web site (i.e. e:\web
sites\www.someotherdomain.com). Since of course, I am specifying localhost,
the first website, the paths are conflicting and visual studio .net is
complaining about a valid conflict. This I understand.
What I don't understand is, given that the dev.mydomain.com website is the
only website configured to listen on 127.0.0.1 on my server, and also given
that I am specifying localhost in the url, which cannot resolve to anything
other than 127.0.0.1 (as specified in the hosts file), how in the heck is
VS.NET obtaining the physical root path for the OTHER domain? Sure, I can
make the site work if I manually type in the correct path each time I create
a project, but I shouldn't have to, and I don't want to force my other
developers to do so.
Any thoughts?
Here's the setup:
I've got VS.NET 2003 installed on a Windows 2003 Server. I've got multiple
sites configured as listed below using host headers:
dev.mydomain.com
ip: 127.0.0.1
host headers: dev.mydomain.com, empty (as in no value)
root directory: e:\web sites\dev.mydomain.com
root directory is shared as wwwroot$
www.someotherdomain.com
ip: my server's only external ip
hostheaders: www.someotherdomain.com, someotherdomain.com
root directory: e:\web sites\www.someotherdomain.com
Now, when I try to create an ASP.NET application using
http://localhost/appname, I get the dreaded web access failed message. The
weird part is, the physical path it is trying to use is the physical root
directory of the second web site (i.e. e:\web
sites\www.someotherdomain.com). Since of course, I am specifying localhost,
the first website, the paths are conflicting and visual studio .net is
complaining about a valid conflict. This I understand.
What I don't understand is, given that the dev.mydomain.com website is the
only website configured to listen on 127.0.0.1 on my server, and also given
that I am specifying localhost in the url, which cannot resolve to anything
other than 127.0.0.1 (as specified in the hosts file), how in the heck is
VS.NET obtaining the physical root path for the OTHER domain? Sure, I can
make the site work if I manually type in the correct path each time I create
a project, but I shouldn't have to, and I don't want to force my other
developers to do so.
Any thoughts?