Select to view content in your preferred language

10.1 Web Adaptor as Child of .NET 4.0 Application Not Working

375
1
06-19-2012 06:57 AM
MattNicol
Regular Contributor
I've installed the 10.1 Web Adaptor in IIS 7.5 where the root site is a .NET 4.0 application that uses WCF Services.  When I try to launch http://<server>/arcgis/webadaptor, I get the following error message:

"The configuration section 'standardEndpoints' cannot be read because it is missing a section declaration"

This is because the Web Adaptor is a .NET 3.5 application and doesn't understand that section in the root Web.config file.  Assuming that I cannot change how the root site is architected, what options do I have?  I've tried the following unsuccessfully:


  • Adding the section to the Web Adaptor's Web.config for that section

  • Changing the Web Adaptor's application pool to use .NET 4.0

  • Adding a location element to the root Web.config with "inheritInChildApplications" set to false for system.ServiceModel

Ideally, the solution would not involve making any changes to the root Web.config file, however.

Thanks in advance for any help that anyone can provide!
0 Kudos
1 Reply
MattNicol
Regular Contributor
I developed a workaround using a proxy page.  The gist of my solution is to use a placeholder for the host name in the URLs that our application uses client-side. When the requests come to the proxy page, replace the placeholder with whatever the actual host/port for your endpoint is before passing it along to ArcGIS Server.

With this, the Web Adaptor isn't needed, so I uninstalled it.
0 Kudos