关于asp.net:将beta5升级到beta6时出错

Error when upgrading beta5 to beta6

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

我现在收到一个非常奇怪的意外应用程序错误,什么原因可能导致此错误以及如何解决?

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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列表:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Active Version           Runtime Architecture Location                         Alias  
------ -------           ------- ------------ --------                         -----  
       1.0.0-beta4       clr     x64          C:\\Users\
lang_000\\.dnx\
untimes        
       1.0.0-beta4       clr     x86          C:\\Users\
lang_000\\.dnx\
untimes        
       1.0.0-beta4       coreclr x64          C:\\Users\
lang_000\\.dnx\
untimes        
       1.0.0-beta4       coreclr x86          C:\\Users\
lang_000\\.dnx\
untimes        
       1.0.0-beta5       clr     x86          C:\\Users\
lang_000\\.dnx\
untimes        
       1.0.0-beta5       coreclr x64          C:\\Users\
lang_000\\.dnx\
untimes        
       1.0.0-beta5       coreclr x86          C:\\Users\
lang_000\\.dnx\
untimes        
  *    1.0.0-beta6       coreclr x86          C:\\Users\
lang_000\\.dnx\
untimes default
       1.0.0-beta6-12254 clr     x86          C:\\Users\
lang_000\\.dnx\
untimes        
       1.0.0-beta6-12254 coreclr x86          C:\\Users\
lang_000\\.dnx\
untimes        
       1.0.0-beta7-12264 clr     x86          C:\\Users\
lang_000\\.dnx\
untimes


问题是我正在使用的一个库与coreclr不兼容。第三方库通常是这种情况,因此,如果其他人对此问题不太有用,也遇到类似的问题,我将在此保留。

您可以使用以下方式更改目标DNX版本:

1
2
dnvm install -r clr 1.0.0-beta6
dnvm use -r clr 1.0.0-beta6

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