简体   繁体   中英

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. actually, webforms work as expected but all mvc routes are 404. what can i do to diagnose this issue?

Try using the Phil's Haack Routing Debugger first. You can find it there: 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. 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?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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