简体   繁体   English

IIS 5.1 ASP.NET MVC Visual Studio 2008

[英]IIS 5.1 ASP.NET MVC Visual Studio 2008

I'm trying to debug Facebook API on my local machine. 我正在尝试在本地计算机上调试Facebook API。 After reading many websites, I realize I need to set up my ASP.NET MVC application to run on IIS instead of Visual Studio 2008 Web Server. 在阅读了很多网站之后,我意识到我需要将我的ASP.NET MVC应用程序设置为在IIS而不是Visual Studio 2008 Web Server上运行。 I created the virtual directory but I'm getting this error. 我创建了虚拟目录,但出现此错误。 The program works fine under VS Web Server. 该程序在VS Web Server下运行良好。

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

Any suggestions? 有什么建议么?

is /Views/Shared/ set up as a Virtual Directory in IIS? /Views/Shared/在IIS中设置为虚拟目录? Remove that and it should go away. 删除它,它应该消失。

It turns out that any reference to Views/Shared/Main.Master needs to be changed to ~/Views/Shared/Main.Master. 事实证明,对Views / Shared / Main.Master的任何引用都需要更改为〜/ Views / Shared / Main.Master。

Thanks everyone. 感谢大家。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM