简体   繁体   English

MVC App可在IIS 7中运行,而不能在Cassini中运行(IIS 7也可)

[英]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.

相关问题 ASP.NET应用程序可在Cassini上运行,但不能在xp上的IIS中运行? - ASP.NET app works on Cassini but not in IIS on xp? HTTP Handler使用Cassini,但不适用于IIS 6 - HTTP Handler works using Cassini, but not with IIS 6 从CASSINI传递到IIS 7 - Passing from CASSINI to IIS 7 我的HttpHandler不适用于IIS7中的虚拟目录,但是使用cassini可以吗? - My HttpHandler doesn't work with a virtual directory in IIS7, but using cassini it does? 为什么Application_Start在Cassini中运行而在IIS7中不运行? - Why does Application_Start run in Cassini but not in IIS7? http处理程序在MVC IIS 8.0中不起作用 - http handler does no work in MVC IIS 8.0 jQuery位置适用于Localhost Cassini,jsFiddle,但在IIS或IIS Express中始终返回0 - jQuery position works on Localhost Cassini, jsFiddle, but always return 0 when IIS or IIS express MVC 身份验证在 IIS 中不起作用(在 IIS Express 中起作用) - MVC Authentication not working in IIS (works in IIS Express) 连接字符串可从Visual Studio使用,但不适用于IIS - Connection string works from Visual Studio, but does not work from IIS 在IIS 7上运行时,命名管道提供程序错误40,但在Cassini中工作正常 - Named Pipes provider error 40 when running on IIS 7, but works fine in cassini
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM