[英]MVC App works in IIS 7, does not work in Cassini (IIS 7, too)
i have a mixed app (asp.net webforms, later mvc added) and it runs in iis 7 on vista but does not run on cassini on the same box and with the exact same files in the webroot. 我有一个混合应用程序(asp.net webforms,后来添加了mvc),它在vista的iis 7中运行,但在同一盒子上的cassini上运行,并且在webroot中具有完全相同的文件。 actually, webforms work as expected but all mvc routes are 404. what can i do to diagnose this issue? 实际上,webforms可以正常工作,但是所有的mvc路由都是404。我该怎么做才能诊断出此问题?
Try using the Phil's Haack Routing Debugger first. 首先尝试使用Phil的Haack路由调试器。 You can find it there: http://haacked.com/archive/2008/03/13/url-routing-debugger.aspx 您可以在这里找到它: http : //haacked.com/archive/2008/03/13/url-routing-debugger.aspx
What is your project structure? 您的项目结构是什么?
I remember having a solution that consisted of several different web forms applications - when I ran the solution in Cassini each application opened in a different port. 我记得有一个包含几个不同Web窗体应用程序的解决方案-当我在Cassini中运行该解决方案时,每个应用程序都在不同的端口中打开。 Is it maybe so that when you test on Cassini, you click a url from the web forms app that is browsed on one port, and the MVC app can't be found because it's running on a different port? 也许是这样,所以当您在Cassini上进行测试时,您从Web窗体应用程序中单击了在一个端口上浏览的URL,却找不到MVC应用程序,因为它在另一个端口上运行?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.