I've managed to publish my app and deploy it to my server, but I can't seem to make it run via IIS. I'm getting error 0x8007007b Cannot read configuration file
.
My web.config, after publishing, looks like:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath=".\RetailGuardian.Web.exe" arguments="" forwardWindowsAuthToken="false" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
</system.webServer>
</configuration>
Edit: In case the problem is down to the app or how I've published it:
net452
dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%
dotnet publish ./src/RetailGuardian.Web/ --framework net452 --runtime win7-x64 -c Release
./src/RetailGuardian.Web/bin
./src/RetailGuardian.Web/bin/Release/net452/win7-x64/publish
onto my server and setting this as the physical path in IIS. Setting the .NET CLR version for the app pool to 'No managed code'Unfortunately I can't even get any log output as logging fails due to being unable to read the configuration file :(
User contributions licensed under CC BY-SA 3.0