Select to view content in your preferred language

Web Adaptor will not load configuration page

1064
2
10-03-2023 08:45 AM
StephenPower
New Contributor

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-->

 

Tags (1)
0 Kudos
2 Replies
JeffSmith
Esri Contributor

Hi Stephen,
You mentioned that you have the dotnet-sdk package installed, but do you have the .NET 6 Windows hosting bundle installed (part of the .NET core runtime)?  The installer should notify you if you didn't have it installed but it is worth double-checking.

0 Kudos
StephenPower
New Contributor

HI Jeff

Thanks for the reply. I was pretty sure i installed the .net 6 windows hosting bundle previously. I just tried installed the .NET7 Windows hosting bundle and the adaptor is displaying now using https://localhost/arcgis/webadaptor

Thanks for your help. It would be great for future Azure marketplace images if this hosting bundle software was pre-installed along with the ArcGIS software so it works out of the box.

Thanks a million for you help though.

Stephen