开发者

Application Root Operator (~) problem with Virtual Directory in IIS 6.0

开发者 https://www.devze.com 2023-01-05 20:57 出处:网络
I have a web application that runs fi开发者_开发百科ne locally, but when I move it to a virtual directory on the web server (let\'s call it \"VirDir\"), it adds the directory name to the relative path

I have a web application that runs fi开发者_开发百科ne locally, but when I move it to a virtual directory on the web server (let's call it "VirDir"), it adds the directory name to the relative path.

For example, if I try to access ~/Default.aspx, it will tell me that it cannot find /VirDir/VirDir/Default.aspx.

Is it something boneheaded, or do I just have to use absolute addressing to make it work (if I try to access /Default.aspx, it finds it fine)?


That's the way it is... Use absolute addressing as /default.aspx.

Might help explain your case:

http://forums.asp.net/t/1521537.aspx

Take a look here to better understand iis 6 and virtual directories:

http://msdn.microsoft.com/en-us/library/zwk103ab.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消