Last active
August 23, 2018 07:03
-
-
Save sverrehundeide/22f847935473f59385b95ac517931454 to your computer and use it in GitHub Desktop.
Blog - Hosting ASP .Net Core websites in IIS using AspNetCoreModule
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A blog post for this gist is available at https://blog.hundeide.net/2018/01/hosting-asp-net-core-websites-in-iis-using-aspnetcoremodule/