AppDomainCreationException in IIS Express using ASP.NET 5 beta7

After updating my application to beta7, I can’t start it from IIS Express using either viewing in the browser or running it in the debugger, it shows this exception in the browser, but does not break any exceptions in my code using the debugger:

[Exception: unexpected application crash. The status code is "-2147024894".] System.Web.HttpRuntime.HostingInit (HostingEnvironmentFlags hostingFlags, PolicyLevel policyLevel, Exception appDomainCreationException) +361

[HttpException (0x80004005): Unexpected application failure. Status code '-2147024894'.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +579
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +120
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +712

I can run it using dnx web from the command line without errors. I tried using a new web application using the vs template, and it works fine in IIS Express, so it should be something specific in my application, but I have no idea that since it does not interrupt any error in my code when working in the debugger.

Does anyone know what could be causing this or what can be checked in my application or configuration to solve this problem?

Note that the dnvm list shows my default runtime as beta7 coreclr x64, which I also set as the specific runtime in the web application properties and in global.json

+1
source share
2

, , - 7, - -, , global.json -.

, , , wwwroot Web.config appSettings:

<appSettings>
    <add key="bootstrapper-version" value="1.0.0-beta6" />
    <add key="dnx-version" value="1.0.0-beta6" />
    <add key="dnx-clr" value="coreclr" />
  </appSettings>

7 , IIS.

, , , web.config IIS

0

. dot net: dnvm install latest -r coreclr -arch x64 1.0.0-beta7 coreclr x64

global.json sdk -

{
  "projects": [ "src", "test" ],
  "sdk": {
    "version": "1.0.0-beta7"
  }
}

[Exception: Unexpected application failure. Status code '-2147024894'.]

. , IIS . project.json AspNet.Server 1.0.0-beta7

{
  "webroot": "wwwroot",
  "version": "1.0.0-*",

  "dependencies": {
    "Microsoft.AspNet.Server.IIS": "1.0.0-beta7",
    "Microsoft.AspNet.Server.WebListener": "1.0.0-beta7"
  },

  "commands": {
    "web": "Microsoft.AspNet.Hosting --config hosting.ini"
  },

  "frameworks": {
    "dnxcore50": { }
  },

  "publishExclude": [
    "node_modules",
    "bower_components",
    "**.xproj",
    "**.user",
    "**.vspscc"
  ],
  "exclude": [
    "wwwroot",
    "node_modules",
    "bower_components"
  ]
}

iis .

, VS2015 ASP.NET 5 IIS Express <path_to_solution>\.vs\config\applicationhost.config althouhg, - , .

, wwwroot, , , -, .

0

Source: https://habr.com/ru/post/1607464/


All Articles