HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid.
I have installed the web adaptor a couple of times on a marketplace arcgis enterprise 11.1 image.
I have edited the permissions so the following should have access, System/Everyone/ISS users/Webadaptor. I have reinstalled the web adaptor and renamed it WA and waportal. Each time i go to the site i get the same error.
Checking previous configurations my web.config looks a lot smaller. Please see the below
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483648" />
<fileExtensions>
<remove fileExtension=".sd" />
</fileExtensions>
</requestFiltering>
</security>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
</handlers>
<aspNetCore processPath="dotnet" arguments=".\ESRI.ArcGIS.WebAdaptor.dll" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="inprocess" />
</system.webServer>
My Web Adaptor config also looks a lot smaller than previous configs.
{
"gisserver": {
"roleCache": {
"numberOfUsers": 100,
"expiration": 5,
"enabled": true,
"cacheAllRolesInMemory": false
},
"component": "",
"url": "",
"nodes": [],
"httpPort": -1,
"httpsPort": -1,
"id": "",
"sharedKey": "",
"protocol": "http",
"enableGetRolesForUser": true
},
"portal": {
"component": "",
"url": "",
"nodes": [],
"httpPort": -1,
"httpsPort": -1,
"id": "",
"sharedKey": "",
"enableDefaultPortValidation": true
},
"version": "11.1.0"
}
Troubleshooting attempted.
Enabling IIS. Installing Web bundle, dotnet-sdk-6.0.414-win-x64, installed rewrite IIS module. Installed the WebDeploy as per ESRI KB articles suggested. Changed the application pool to .NET version 2. Reinstalled the web adaptor. Tried to add localhost and external dns entries to hosts file.
</configuration>
<!--ProjectGuid: 37827c18-7897-4314-9dce-f3dc058462d5-->