c# - IIS 10 灾难性故障(来自 HRESULT 的异常:0x8000FFFF (E_UNEXPECTED))
问题描述
我有一个网站在 Windows Server 2016 中显示“灾难性故障(HRESULT 异常:0x8000FFFF (E_UNEXPECTED))”。该问题仅在 ASP.NET 对来自 Web 浏览器的第一个请求进行初始化时出现。如果您第二次请求该网站,应用程序将最终启动。
尝试以下选项:
- 该网站将应用程序池配置为与 32 位兼容。
- 文件夹列表在安全中添加组用户“IIS_IUSRS”。
- 使用 aspnet_regiis 注册框架。
- 注册用户应用程序池 (aspnet_regiis -ga)。
- 重新安装 Windows 功能“Web-AppInit”
还有其他建议来纠正它吗?
Server Error in '/' Application.
Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[COMException (0x8000ffff): Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))]
[FileLoadException: Could not load file or assembly 'Microsoft.JScript, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))]
System.RuntimeTypeHandle._GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark, Boolean loadTypeFromPartialName) +0
System.RuntimeTypeHandle.GetTypeByName(String name, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +64
System.RuntimeType.PrivateGetType(String typeName, Boolean throwOnError, Boolean ignoreCase, Boolean reflectionOnly, StackCrawlMark& stackMark) +58
System.Type.GetType(String typeName) +50
System.CodeDom.Compiler.CompilerInfo.get_IsCodeDomProviderTypeValid() +9
System.Web.Compilation.CompilationUtil.GetRecompilationHash(CompilationSection ps) +2487
System.Web.Configuration.CompilationSection.get_RecompilationHash() +99
System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate2(StandardDiskBuildResultCache diskCache) +388
System.Web.Compilation.BuildManager.CheckTopLevelFilesUpToDate(StandardDiskBuildResultCache diskCache) +55
System.Web.Compilation.BuildManager.PrecompiledAppRuntimeModeInitialize() +220
System.Web.Compilation.BuildManager.Initialize() +9020121
System.Web.Compilation.BuildManager.InitializeBuildManager() +267
System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags) +224
[HttpException (0x80004005): Could not load file or assembly 'Microsoft.JScript, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED))]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +8997667
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +333
Version Information: Microsoft .NET Framework Version:2.0.50727.8745; ASP.NET Version:2.0.50727.8745
解决方案
推荐阅读
- spring - Spring 方法级别安全性获取 null 属性 EL1007E:在 null 上找不到属性或字段“价格”
- php - 我想删除重复的``````如果它们是连续的但我的条件“if($value ===”“)”不起作用
- excel - 基于单元格的 VBA 条件格式 .rank 值 - Top10
- webhooks - DialogFlow 文件上传到服务器
- javascript - 数组是否未定义,因为组件在加载数据之前正在渲染?
- ios - iOS 13 如何在导航栏中隐藏 UISearchController 搜索栏
- scala - 在没有 Request 实例的情况下播放反向路由
- .net - .Net 5 发布后,.Net Core 3 网站会发生什么?
- python - 如何正确添加两个 numpy 数组?
- node.js - 如何解决 Mongoose 验证错误