Hi I have a dotnetcore 2.2 application I am trying to deploy to IIS 8.5
It uses Windows Authentication
My IIS settings are:
Authentication:
Anonymous Authentication Disabled
Basic Authentication Disabled
Digest Authentication Disabled
Windows Authentication Enabled
Application Pool
.NET LCR Version: No Managed Code
Managed pipeline mode: Integrated
Identity: ApplicationPoolIdentity
Load User Profile: true
When I run the app I get HTTP 500 Internal Server Error
If I use the same settings above except:
change Application Pool Identity to: Custom Account and
enter my Windows credentials
it works but I need it to pick up the Windows logged in user.
web.config file:
<configuration>
<!--
Configure your application settings in appsettings.json. Learn more at http://go.microsoft.com/fwlink/?LinkId=786380
-->
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\WebIM.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="true">
<environmentVariables>
<environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" />
</environmentVariables>
</aspNetCore>
</system.webServer>
<system.web>
<globalization uiCulture="en-AU" culture="en-AU" />
<authentication mode="Windows" />
</system.web>
</configuration>
Can anyone help out here?
Much appreciated,
Kathleen