Deploying asp.net core rc2 web app on IIS8 / Windows Server 2012

2

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:

  • The app targets net452
  • There's a postpublish script: dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%
  • I publish the app using dotnet publish ./src/RetailGuardian.Web/ --framework net452 --runtime win7-x64 -c Release
  • This creates a series of outputs at ./src/RetailGuardian.Web/bin
  • To deploy, I'm coping ./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 :(

asp.net-core
iis-8
asked on Stack Overflow Jun 13, 2016 by Jordan Wallwork • edited Jun 13, 2016 by Jordan Wallwork

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0