Aspnetcore: Can't host ASP.NET 2.2 Core project targeting net461 with InProcess

Created on 1 Feb 2019  路  4Comments  路  Source: dotnet/aspnetcore

Describe the bug

ASP.NET Core project targeting .net framework doesn't start when hosted by IIS with InProcess hosting model.

To Reproduce

Steps to reproduce the behavior:

  1. Using ASP.NET Core 2.2
  2. Create new "ASP.NET Core Web Application" targeting ".NET Framework"
  3. Specify InProcess hosting model.
  4. Host using IIS.
  5. Browse to website.
  6. Receive error: "HTTP Error 500.0 - ANCM In-Process Handler Load Failure"

Expected behavior

Either application displays, or a clear error indicating the issue.

Screenshots

error on browsing
image

ancm debug log
image

web.config
image

IIS version
image

Additional context

I have only run into this issue with projects with TargetFramework of net461.
Other projects targeting netcoreapp2.2 work fine.

Duplicate area-servers servers-iis

Most helpful comment

I would expect an error when publishing then, as it should be obvious that it wouldn't work at that point.

All 4 comments

This is by design. (Also, dup of: https://github.com/aspnet/AspNetCore/issues/6482)

I would expect an error when publishing then, as it should be obvious that it wouldn't work at that point.

Was this page helpful?
0 / 5 - 0 ratings