Home > Back-end >  IIS express error500.24 web api
IIS express error500.24 web api

Time:04-01

I migrate an dotnet framework web api application from vs 2010 to 2019. I want to use IIS express for developpement mode debug. My application is built with a api back in dotnet framework 4.5 using xml and not json and a front in dotnet winform.

error api rest

message html front

error front

sorry for the french messages.

thanks a lot for your suggest. I've been stuck with this for a week

Vincent

I tried to change the web.config, the applicationhost.config (in the user iis express directory and the .VS\config directory. add modules to IIS manager

IIS config

CodePudding user response:

Try removing this line from your web.config,

<identity impersonate="true"/>

Or, as Described in here;

  • Your application's Web.config file specifies "identity impersonate='true'".

In IIS 7 Integrated mode, client impersonation is not available in some early request processing stages. Therefore, IIS will generate the migration error message. If your ASP.NET Web application impersonates client credentials (most common with intranet scenarios), you may want to set the validateIntegratedModeConfiguration attribute to false.

Add this section to your config to overcome this issue,

<system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
</system.webServer>

CodePudding user response:

Make sure all the following .NET modules are installed.

  1. .NET SDK 6.0.100
  2. .NET Runtime 6.0.0
  3. .NET hosting 6.0.0 note that the above are the current versions the versions may differ. also change the version of .config files by running as Administrator whether you open the .json on Notepad or your IDE. make sure your Internet Information Services is up to date and have selected all features on IIS
  • Related