MVC 应用程序在 IIS 7 中工作,在 Cassini 中不起作用(IIS 7 也是如此)

发布于 2024-07-22 05:15:38 字数 166 浏览 5 评论 0原文

我有一个混合应用程序(asp.net webforms,后来添加了 mvc),它在 vista 上的 iis 7 中运行,但不在同一个盒子上的 cassini 上运行,并且在 webroot 中具有完全相同的文件。 实际上,Webforms 按预期工作,但所有 MVC 路由都是 404。我可以做什么来诊断这个问题?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

灵芸 2024-07-29 05:15:39

您的项目结构是什么?

我记得有一个由几个不同的 Web 表单应用程序组成的解决方案 - 当我在 Cassini 中运行该解决方案时,每个应用程序都在不同的端口中打开。 是否可能是这样,当您在 Cassini 上测试时,您单击在一个端口上浏览的 Web 表单应用程序中的 url,并且无法找到 MVC 应用程序,因为它在不同的端口上运行?

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?

美男兮 2024-07-29 05:15:38

首先尝试使用 Phil 的 Haack 路由调试器。
你可以在那里找到它:
http://haacked.com/archive/2008/03/ 13/url-routing-debugger.aspx

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文