IIS 5.1 ASP.NET MVC Visual Studio 2008

问题描述:

我想在本地机器上调试Facebook API。在阅读了很多网站之后,我意识到我需要将我的ASP.NET MVC应用程序设置为在IIS上运行,而不是在Visual Studio 2008 Web Server上运行。我创建了虚拟目录,但是我收到了这个错误。该程序在VS Web服务器下正常工作。IIS 5.1 ASP.NET MVC Visual Studio 2008

The virtual path '/Views/Shared/Main.Master' maps to another application, which is not allowed. 

有什么建议吗?

/Views/Shared/在IIS中设置为虚拟目录?删除它,它应该消失。

+0

我没有/ Views/Shared设置为虚拟目录。我阅读这个博客:http://itscommonsensestupid.blogspot.com/2008/11/deploy-aspnet-mvc-app-on-windows-xp-iis.html,但它添加映射后仍然无法工作配置文件。 – Dean 2010-11-24 15:46:03

事实证明,任何对Views/Shared/Main.Master的引用都需要更改为〜/ Views/Shared/Main.Master。

谢谢大家。