开发者

IIS 5.1 ASP.NET MVC Visual Studio 2008

I'm trying to debug Facebook API on my local machine. 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. I created the virtual directory but I'm getting this error. The program works fine under VS开发者_StackOverflow 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? 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.

Thanks everyone.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜