安装 ASP.NET MVC 是否需要重新启动服务器?
安装 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,它没有(至少在 Win2k8 x64、Win2k3 x64 中)
善良,
Dan
No it doesn't (at least in Win2k8 x64, Win2k3 x64)
Kindness,
Dan