IIS忽略MVC映射

发布于 2025-02-13 10:16:34 字数 352 浏览 5 评论 0原文

我正在尝试部署到IIS 8.5 ASP.NET MVC5应用程序,但我只能看到静态资源(图像)。

似乎未识别映射(模块system.web.routing.urlroutingmodule)。

部署的唯一方法是在本地文件夹中发布应用程序后复制和过去的文件(不可能使用Web部署)。

global.asax文件似乎可以转介CS

<%@ Application Codebehind="Global.asax.cs" Inherits="Xxxxxx.MvcApplication" Language="C#" %>

任何帮助都可以从这个地狱中退出...

谢谢

I'm trying to deploy to IIS 8.5 a ASP.NET MVC5 application but I'm able to see only static resources (images).

It seems like the mapping is not recognized (module System.Web.Routing.UrlRoutingModule).

The only way I have for deploying is to copy and past files after publishing the application in a local folder (no possibility to use Web Deploy).

Global.asax file seems be ok referring the cs

<%@ Application Codebehind="Global.asax.cs" Inherits="Xxxxxx.MvcApplication" Language="C#" %>

Any help is appreciated to exit from this hell...

Thanks

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

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

发布评论

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

评论(1

忘羡 2025-02-20 10:16:34

解决!在服务器中,未安装“ ASP .NET 4.5”和“ .NET扩展性4.5”

。文件夹包含“开发”一词欺骗了我...

Solved! In the server features "ASP .Net 4.5" and ".Net Extensibility 4.5" under "Application Development Features" were not installed :(

The fact that my application uses .Net 4.6 framework (installed on the server) and the fact that the feature folder contains the word "Development" had deceived me...

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