Windows 8.1/Windows 10 破坏了我的 ASP.NET/IIS:“服务不可用" [英] Windows 8.1 / Windows 10 breaks my ASP.NET / IIS : "Service unavailable"

查看:27
本文介绍了Windows 8.1/Windows 10 破坏了我的 ASP.NET/IIS:“服务不可用"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天 Windows 8.1 终于发布到 MSDN/Technet,我在使用 Win 8.1 RTM 进行就地升级后,在运行我的 ASP.NET 应用程序时遇到了以下问题:

<块引用>

服务不可用

HTTP 错误 503.服务不可用.

  • AppPool 已终止并显示 Stopped

    状态
  • IIS 日志没有任何内容

  • Windows 应用程序日志中有一条线索,其中包含此错误

    模块 DLL C:\WINDOWS\system32\inetsrv\rewrite.dll 加载失败.数据就是错误.

如何恢复我的 IIS 使其再次运行?

解决方案

看起来只需卸载并重新安装重写模块即可.

正如其他人所说 - 先尝试修复 - 如果它有效,那么应该会更快.

看起来 Microsoft Web Platform Installer 无法卸载它,所以就去吧到 Programs and Features 卸载它.

您会发现它列为 IIS URL Rewrite Module 2,只需点击顶部的 Uninstall 按钮即可.

然后从这里重新安装它:

http://www.iis.net/downloads/microsoft/url-rewrite>

确保您的应用程序池已启动 - 或者只是重新启动 IIS,它应该会再次正常工作.

<小时>

编辑:2016 年 8 月 30 日:如果您安装了新的".NET 核心并更新到 Win 10 周年纪念版,可能会出现类似但不相关的错误.请参阅此处:https://github.com/aspnet/Home/issues/1583 - 在 VS 上运行修复2015 Tooling Preview 应该修复它.想在这里添加它,因为错误与这个答案非常相似.

With Windows 8.1 finally released to MSDN/Technet today I came across the following issue running my ASP.NET application after doing an in place upgrade with Win 8.1 RTM:

Service Unavailable

HTTP Error 503. The service is unavailable.

  • The AppPool has died and shows a status of Stopped

  • The IIS log has nothing

  • There's a clue is in the Windows Application log which contains this error

    The Module DLL C:\WINDOWS\system32\inetsrv\rewrite.dll failed to load. The data is the error.

How can I recover my IIS to make it work again?

解决方案

It looks like a simple uninstall and re-install of the rewrite module will do the trick.

Edit: As others have said - try a repair first - if it works then that should be faster.

It doesn't look like the Microsoft Web Platform Installer is able to uninstall it so just go to Programs and Features to uninstall it.

You'll find it listed as IIS URL Rewrite Module 2 and just click the Uninstall button on top.

Then reinstall it from here:

http://www.iis.net/downloads/microsoft/url-rewrite

Make sure your App Pool is started - or just restart IIS and it should all work again.


Edit: 8/30/16 : A similar but unrelated error can occur if you have the 'new' .NET core installed and update to Win 10 Anniversary edition. See here: https://github.com/aspnet/Home/issues/1583 - Running a repair on VS 2015 Tooling Preview should fix it. Wanted to add it here since the errors are very similar to this answer.

这篇关于Windows 8.1/Windows 10 破坏了我的 ASP.NET/IIS:“服务不可用"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆