Skip to content

Instantly share code, notes, and snippets.

@sverrehundeide
Last active August 23, 2018 07:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sverrehundeide/22f847935473f59385b95ac517931454 to your computer and use it in GitHub Desktop.
Save sverrehundeide/22f847935473f59385b95ac517931454 to your computer and use it in GitHub Desktop.
Blog - Hosting ASP .Net Core websites in IIS using AspNetCoreModule
<Event
xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="WWW Server" Guid="{3A2A4E84-4C21-4981-AE10-3FDA0D9B0F83}"/>
<EventID>0</EventID>
<Version>1</Version>
<Level>3</Level>
<Opcode>16</Opcode>
<Keywords>0x100</Keywords>
<TimeCreated SystemTime="2018-01-11T11:34:06.803Z"/>
<Correlation ActivityID="{00000000-0000-0000-4982-0080080000E2}"/>
<Execution ProcessID="160432" ThreadID="131260"/>
<Computer>MYCOMPUTER</Computer>
</System>
<EventData>
<Data Name="ContextId">{00000000-0000-0000-4982-0080080000E2}</Data>
<Data Name="ModuleName">AspNetCoreModule</Data>
<Data Name="Notification">128</Data>
<Data Name="HttpStatus">502</Data>
<Data Name="HttpReason">Bad Gateway</Data>
<Data Name="HttpSubStatus">5</Data>
<Data Name="ErrorCode">0</Data>
<Data Name="ConfigExceptionInfo"></Data>
</EventData>
<RenderingInfo Culture="nb-NO">
<Opcode>MODULE_SET_RESPONSE_ERROR_STATUS</Opcode>
<Keywords>
<Keyword>RequestNotifications</Keyword>
</Keywords>
<freb:Description Data="Notification">EXECUTE_REQUEST_HANDLER</freb:Description>
<freb:Description Data="ErrorCode">The operation completed successfully.
(0x0)</freb:Description>
</RenderingInfo>
<ExtendedTracingInfo
xmlns="http://schemas.microsoft.com/win/2004/08/events/trace">
<EventGuid>{002E91E3-E7AE-44AB-8E07-99230FFA6ADE}</EventGuid>
</ExtendedTracingInfo>
</Event>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet.exe" arguments="myApp.Web.dll" stdoutLogEnabled="false" >
<environmentVariables>
<environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Prod" />
</environmentVariables>
</aspNetCore>
</system.webServer>
</configuration>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="myApp.Web.exe" arguments="" forwardWindowsAuthToken="false" stdoutLogEnabled="false">
<environmentVariables>
<environmentVariable name="ASPNETCORE_ENVIRONMENT" value="prod" />
</environmentVariables>
</aspNetCore>
</system.webServer>
</configuration>
@sverrehundeide
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment