.net 在IIS6上发布MVC应用程序时出现问题
我有一个在本地运行的小型MVC应用程序,但是当我将它发布到服务器(运行IIS6)时,所有的链接都被弄乱了 例如,在本地运行时的典型链接是:.net 在IIS6上发布MVC应用程序时出现问题,.net,asp.net-mvc,visual-studio-2008,model-view-controller,iis-6,.net,Asp.net Mvc,Visual Studio 2008,Model View Controller,Iis 6,我有一个在本地运行的小型MVC应用程序,但是当我将它发布到服务器(运行IIS6)时,所有的链接都被弄乱了 例如,在本地运行时的典型链接是: http://localhost:3467/Exceptions?exdate=20090108 但是,当我在\\deverserver\apps\MyProject将其发布到我们的开发服务器时,请注意相同链接的URL中存在重复: http://devserver/apps/MyProject/MyProject/Exceptions?exdate=200
http://localhost:3467/Exceptions?exdate=20090108
但是,当我在\\deverserver\apps\MyProject
将其发布到我们的开发服务器时,请注意相同链接的URL中存在重复:
http://devserver/apps/MyProject/MyProject/Exceptions?exdate=20090108
知道发生了什么吗
注意:这些链接都是通过Html.ActionLink()
构建的
更新:如果我在我的项目| Web |使用Visual Studio Development Server:
- 特定端口:1234
- 虚拟路径:/apps/MyProject
- 结果URL:
http://localhost:1234/apps/MyProject/MyProject/Exceptions?exdate=20090108