Erreur HTTP 500.19 - Internal Server Error (when publishing but not in Visual Studio)


I published a very simple ASP.NET Api on my Web Hosting Server. I have this error :

Error HTTP 500.19 - Internal Server Error.

Everything works well when I launch the api from Visual Studio 2019. Then I created a local website in IISExpress on my computer that uses local published files. I have the same error.

Module: IIS Web Core Notification: Inconnu Gestionnaire: Pas encore déterminé Code d'erreur: 0x8007000d Config Error:
Config File: \?\E:\CSharp\MyApi\MyApi\bin\Release\netcoreapp3.1\publish\web.config

Here is the web.config :

<?xml version="1.0" encoding="utf-8"?>
  <location path="." inheritInChildApplications="false">
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2"   resourceType="Unspecified"/>
      <aspNetCore processPath="dotnet" arguments=".\MyApi.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />

It works with Visual Studio so I think the problem does not come from the API, but some configuration. I already tried the solutions from the related question, like Install URL rewriting module. I'm stuck for fews days now, so please give me some help.
asked on Stack Overflow Dec 28, 2019 by Alain • edited Dec 28, 2019 by GrayCat

0 Answers

Nobody has answered this question yet.

User contributions licensed under CC BY-SA 3.0