Autogenerated web.config not accepted by IIS 10

0

I want to publish a entity framework core (.Net) to a IIS. For this I publish the application in Visual Studio Community 2017. When I publish the application the web.config file will be auto generated as the following

 <?xml version="1.0" encoding="utf-8"?>
<configuration>
  <location path="." inheritInChildApplications="false">
    <system.webServer>
      <handlers>
        <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
      </handlers>
      <aspNetCore processPath="dotnet" arguments=".\basket.api.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
    </system.webServer>
  </location>
</configuration>
<!--ProjectGuid: ba174064-1719-4e47-a0c3-5e8cff312047-->

I go to my IIS 10 IIS 10 I post it into the default website. Into to the location "C:\inetpub\wwwroot". I start the web site an access via the webbrowser localhost.

I get allways the following error message: Error page

I check the web page of Microsoft of the error code 0x8007000d,it is basicly saying that the format of a XML Element is not correct. Which is impossible I check all the formating and also I let autogenerate by the Visual Studio when i publish the site. I tried everything and don't know what to do. I am very newbie in IIS stuff.

visual-studio
iis
web-config
asked on Stack Overflow May 10, 2019 by M. Fish

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0