Error while hosting .net core 3.0 in IIS (0x8007000D)

0

I created a website and it has the following web.config file. It is running in .net core 3.0 Self contained published version. It was running ago in Windows 7 now my company updated to windows 10 and now it stopped working. It is same IIS configuration but can't read the web.config file. I tried other solutions mentioned but I will love to have your support. It is giving error stating IIS can't load the webconfig 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=".\ASU_Statistics.exe" arguments="" stdoutLogEnabled="false" hostingModel="InProcess" stdoutLogFile=".\logs\stdout">
        <environmentVariables>
          <environmentVariable name="ASPNETCODE_ENVIRONMENT" value="Production" />
          <environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" />
          <environmentVariable name="ASPNETCORE_HTTPS_PORT" value="44370" />
          <environmentVariable name="COMPLUS_ForceENC" value="1" />
        </environmentVariables>
      </aspNetCore>
    </system.webServer>
  </location>
</configuration>
<!--ProjectGuid: ee398fc0-8f34-4edf-9353-67342cbe9ee3-->

This Image shows the error I received

c#
.net
asp.net-core
iis
hosting
asked on Stack Overflow Jan 16, 2020 by Digant Jani

1 Answer

1

Check that the AspNetCoreModuleV2 module is installed on server.

If module is not installed download AspNetCoreModuleV2 from this link and install

answered on Stack Overflow Jan 16, 2020 by Farhad Zamani

User contributions licensed under CC BY-SA 3.0