IIS 中缺少 UrlRoutingModule

发布于 2024-11-09 19:51:13 字数 318 浏览 6 评论 0原文

我正在设置一台新服务器,但 IIS 中缺少“UrlRoutingModule-4.0”模块。我在安装 IIS 之前安装了 MVC3 更新。意识到我的错误,我卸载了 MVC3,并安装了 IIS 7 和所有“应用程序开发”角色:ASP.NET、.NET 扩展性、ASP 等...

现在,当我安装 MVC3 (AspNetMVC3ToolsUpdateSetup) 时,我检查 IIS ,“UrlRoutingModule-4.0”模块不存在。显然我的 MVC3 应用程序无法工作。每当我尝试请求控制器时,我都会收到 404。

难道是我在IIS登陆之前安装了MVC3搞砸了?我该如何修复这个盒子?

I am setting up a new server, and the "UrlRoutingModule-4.0" module is missing form IIS. I installed the MVC3 Update before installing IIS. Realizing my mistake, I uninstalled MVC3, and installed IIS 7 with all of the "Application Development" roles: ASP.NET, .NET Extensibility, ASP, etc...

Now, when I install MVC3 (AspNetMVC3ToolsUpdateSetup), and I check IIS, the "UrlRoutingModule-4.0" module is not present. Obviously my MVC3 application does not work. I just get 404s whenever I try to request a controller.

Did I mess up by installing MVC3 before IIS was landed? How can I fix this box?

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

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

发布评论

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

评论(1

像你 2024-11-16 19:51:13

尝试运行以下命令来查看是否可以解决问题:

c:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i

应该使用 IIS 重新安装 .NET 4,以防您以错误的顺序安装它们。

Try running the following command to see if it fixes the problem:

c:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i

That should re-install .NET 4 with IIS, in case you installed them in the wrong order.

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