I can't find the problem inside my app configuration for IIS v10.
Seems like the web.config
file has some issues (I checked a lot of time and can't find one).
I don't understand why these characters \\?\
appear before the path configured in web.config
, when I try to access any feature of my website registered in IIS.
The web.config
file is auto generated by Visual Studio when I publish the application. If I remove it, in browser will appear a 404 error which say that can not find a configuration file. Can't understand why physical path is missing (see in image)
If I run the exe file from app path (run or execute in cmd line), it will work (with development environment). Only from IIS I have problems.
I installed URL rewrite, again, no success (I see this is for IIS v7 only!?!?!)
Which can be the problem?
IIS v10
.Net Core v3.1
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=".\ShopApp.Server.API.exe" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" hostingModel="InProcess" />
</system.webServer>
</location>
</configuration>
<!--ProjectGuid: 9aed7aba-d024-42c9-8a99-b2b246e74195-->