dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.35k stars 9.99k forks source link

Updating from 2.1 to 3.1 - HTTP Error 500.0 - ANCM In-Process Handler Load Failure #24612

Closed johnwc closed 4 years ago

johnwc commented 4 years ago

Trying to use a MS sample code for Azure Ad/OpenID, I received this error when changing the version of .Net Core to 3.1. Looking through #6111, I could not find any solutions. I deleted the .vs folder thinking that the IIS Express .config file just needed to be recreated correctly for the new version because of the new InProcess module, still nothing. Then I ran across some post on asp.net site about someone having this issue and found that it was caused because of a space in the project name. I tested if that was the issue, and it seemed to fix it. Even though I had no spaces. I rename the project from WebApp-OpenIDConnect-DotNet to just simply WebApp, low and behold it started as expected. There seems to be an issue with the length of the assembly name, as I renamed it back and changed the assembly name to be WebApp, and it successfully started again. To rule out file path being to long, I moved the project to the root of the drive and left the assembly name long, same error.

BrennanConroy commented 4 years ago

This is caused by having "dotnet" in the project name Dupe of https://github.com/dotnet/aspnetcore/issues/17393 which is fixed in 5.0.