我使用此处显示的说明从ASP.NET 5 beta5升级到beta6:How to upgrade ASP.NET 5 (vnext) from Beta5 to 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
答案 0 :(得分:2)
问题是我使用的其中一个库与coreclr不兼容。第三方图书馆可能经常出现这种情况,因此我将此处留在此处以防其他人对此不太有用的消息有类似的问题。
您可以使用以下命令更改目标DNX版本:
dnvm install -r clr 1.0.0-beta6
dnvm use -r clr 1.0.0-beta6
答案 1 :(得分:0)
你可能会有更好的运气来对付回购。 https://github.com/aspnet/Hosting确保包含有关项目设置的信息(例如project.json文件,导致崩溃的代码等)