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"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified"/>
</handlers>
<aspNetCore processPath="dotnet" arguments=".\MyApi.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
</system.webServer>
</location>
</configuration>
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.
User contributions licensed under CC BY-SA 3.0