【问题标题】:IIS 5.1 ASP.NET MVC Visual Studio 2008IIS 5.1 ASP.NET MVC Visual Studio 2008
【发布时间】:2010-11-24 15:29:35
【问题描述】:

我正在尝试在我的本地机器上调试 Facebook API。在阅读了许多网站之后,我意识到我需要将我的 ASP.NET MVC 应用程序设置为在 IIS 而不是 Visual Studio 2008 Web Server 上运行。我创建了虚拟目录,但出现此错误。该程序在 VS Web Server 下运行良好。

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

有什么建议吗?

【问题讨论】:

    标签: asp.net-mvc visual-studio-2008 iis


    【解决方案1】:

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

    【讨论】:

    【解决方案2】:

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

    谢谢大家。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-06-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多