0
votes

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

1
--------------------------- URL Rewrite --------------------------- There was an error while performing this operation. Details: Filename: \\?\C:\inetpub\wwwroot\web.config Error: --------------------------- OK --------------------------- I already installed but got this error when click on it - Sheikh Saad
The error message means xml is not resolved completely. Have you installed the correct webhosting bundle ?dotnet.microsoft.com/download/dotnet-core/2.2. If that is not working, please post a screenshot to the full detailed IIS error message. - Jokies Ding
yes i have change in web config now for URL rewrite its work now but still website not working fine I enable the option Browse directory and it will show the files and folder but i am not able to open the login or index page of angular 6 with .net core. - Sheikh Saad

1 Answers

0
votes

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>