安装 ASP.NET MVC 是否需要重新启动服务器?

发布于 2024-08-14 13:16:47 字数 387 浏览 4 评论 0原文

安装 ASP.NET MVC 是否需要重新启动服务器?

我曾在生产服务器上设置过不少 ASP.NET MVC 站点,但今天,我要部署到没有 MVC 的服务器第一次安装。

因此,我安装了最新的 MVC 版本,重新启动 IIS,并按照常规步骤在 IIS6 上设置 MVC 网站(aspnet_isapi.dll、设置正确的 .NET 版本等)。

然而,该网站的行为与非 MVC 网站完全相同。根 url 清楚地映射到 default.aspx,但任何控制器/操作 url 都会导致 404。

我有两个同事检查了站点配置,两人都竖起了大拇指。

如果没有充分的理由,我不会重新启动服务器。 你们有人知道安装 ASP.NET MVC 后是否需要重新启动吗?

Does installing ASP.NET MVC require a server reboot?

I've set up quite a few ASP.NET MVC sites on production servers in my time, but today, I'm deploying to a server without MVC installed for the first time.

So, I installed the latest MVC release, restarted the IIS and went through the usual hoops to set up a MVC website on IIS6 (aspnet_isapi.dll, setting the correct .NET version, etc).

However, the site behaves exactly like a non-MVC website. The root url clearly maps to default.aspx, but any controller/action urls all result in a 404.

I've had two colleagues check the site configuration, both giving thumbs up.

I won't reboot the server without a very good reason.
Does any of you know, whether I need to reboot after installation of ASP.NET MVC?

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

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

发布评论

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

评论(1

伴我老 2024-08-21 13:16:47

不,它没有(至少在 Win2k8 x64、Win2k3 x64 中)

善良,

Dan

No it doesn't (at least in Win2k8 x64, Win2k3 x64)

Kindness,

Dan

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