2

我使用此处显示的说明从 ASP.NET 5 beta5 升级到 beta6:如何将 ASP.NET 5 (vnext) 从 Beta5 升级到 Beta6

我现在收到一个非常奇怪的意外应用程序错误,这可能是什么原因造成的,我该如何解决?

Unexpected application failure. Status code '-2146233079'.

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.Exception: Unexpected application failure. Status code '-2146233079'.

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: 


[Exception: Unexpected application failure. Status code '-2146233079'.]
   System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +303

[HttpException (0x80004005): Unexpected application failure. Status code '-2146233079'.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9940016
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +261

这是我的 dnvm 列表:

Active Version           Runtime Architecture Location                         Alias  
------ -------           ------- ------------ --------                         -----  
       1.0.0-beta4       clr     x64          C:\Users\rlang_000\.dnx\runtimes        
       1.0.0-beta4       clr     x86          C:\Users\rlang_000\.dnx\runtimes        
       1.0.0-beta4       coreclr x64          C:\Users\rlang_000\.dnx\runtimes        
       1.0.0-beta4       coreclr x86          C:\Users\rlang_000\.dnx\runtimes        
       1.0.0-beta5       clr     x86          C:\Users\rlang_000\.dnx\runtimes        
       1.0.0-beta5       coreclr x64          C:\Users\rlang_000\.dnx\runtimes        
       1.0.0-beta5       coreclr x86          C:\Users\rlang_000\.dnx\runtimes        
  *    1.0.0-beta6       coreclr x86          C:\Users\rlang_000\.dnx\runtimes default
       1.0.0-beta6-12254 clr     x86          C:\Users\rlang_000\.dnx\runtimes        
       1.0.0-beta6-12254 coreclr x86          C:\Users\rlang_000\.dnx\runtimes        
       1.0.0-beta7-12264 clr     x86          C:\Users\rlang_000\.dnx\runtimes     
4

2 回答 2

2

问题是我使用的库之一与 coreclr 不兼容。3rd 方库可能经常出现这种情况,所以我将把它留在这里,以防其他人对这个不太有用的消息有类似的问题。

您使用以下命令更改目标 DNX 版本:

dnvm install -r clr 1.0.0-beta6
dnvm use -r clr 1.0.0-beta6
于 2015-08-25T18:33:51.500 回答
0

你可能有更好的运气提交针对回购的问题。https://github.com/aspnet/Hosting确保包含有关您的项目设置的信息(例如 project.json 文件、导致崩溃的代码等)

于 2015-08-11T23:36:20.427 回答