Web API Hosting issue

0

I created an web api application with .net 5 and trying to publish on my machine. I can not access my application after publishing. It shows me Internal server error with error code 0x8007000d. By googling I found this is URL-Rewrite issue. Then I install url-rewrite. But it still not working. Here is my web.config file:

<?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=".\WebApplication5.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
    </system.webServer>
  </location>
</configuration>
<!--ProjectGuid: c1a20709-d2a2-4f99-a917-c45766f4e9aa-->

Please help me

.net
asp.net-core
asp.net-core-webapi
asked on Stack Overflow Apr 4, 2021 by Nasir

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0