Today morning, I encountered the following errors while trying to access the Rest Endpoint of ArcGIS Server:
- arcgis server web adapter error: Object reference not set to an instance of an object.
- arcgis server web adapter error: Root Element is missing.
Following the extracts from the forum post, I figured out that the solution is to reinstall the web adapter and it worked!!
Here is the workflow:
For any future web adapter failures, this is the simplified workflow:
- Uninstall ArcGIS Server Web Adapter
- Remove or rename arcgis folder in wwwroot
- Install Web adapter and configure it
- Backup a copy of a working web adapter configuration file. (C:\inetpub\wwwroot\arcgis\webadapter.config)
- Replace the corrupted file with the backup copy.