angular and .net core 2.2 Web.config file issue when deploy on IIS windows 10

0

I have created an application on angular 6 with .net core. i don't create any web.config file when i publish the code its automatically generate the web config file with following code

 <?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=".\ITERP.Web.dll" stdoutLogEnabled="false" 
               stdoutLogFile=".\logs\stdout" />
    </system.webServer>
  </location>
</configuration>

when i deploy that on IIS on windows 10 its generate error that HTTP Error 500.19 - Internal Server Error Error Code 0x8007000d

.net
angular
iis
asked on Stack Overflow May 12, 2020 by Sheikh Saad

1 Answer

0

Its obviously that extensionless handler won't work for the asp.net core application.

Please ensure .net core web hosting bunddle has been installed and the aspnetCore handler has been created.

enter image description here

 <handlers>
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
      </handlers>
answered on Stack Overflow May 15, 2020 by Jokies Ding • edited May 21, 2020 by Jokies Ding

User contributions licensed under CC BY-SA 3.0