When building a Web application in Manager or Visual Studio using the Web ADF for the Microsoft .NET Framework on a 64-bit operating system, the following error message may occur:
"Unable to retrieve ArcGIS install directory from registry."
The Web ADF for the Microsoft .NET Framework is unable to find the correct registry values, because it requires an application pool that is running in 32-bit mode and not 64-bit mode.
Solution or Workaround
Run Manager and any Web applications that contain the Web ADF controls in an application pool that supports 32-bit applications.
To enable support for 32-bit applications, toggle the appropriate property of the application pool. The property can be toggled on an existing application pool or a new application pool can be created specifically for Manager and any Web applications that are created.
Modifying an existing application pool to support 32-bit applications could potentially impact other Web applications running in that application pool.
The steps below describe how to edit the existing application pool in which Manager is running.
- Click Start > Administrative Tools > Internet Information Services (IIS) Manager.
- Navigate to the tree view in IIS to determine where the Manager application is installed. Typically, this will be under the Default Web Site in the ArcGIS folder.
- Determine the application pool that Manager is currently running in by right-clicking Manager in the tree view and selecting 'Advanced Settings'.
Typically, Manager will be running in the default application pool called DefaultAppPool.
Once the name has been determined, click Cancel to dismiss the dialog box.
- In the tree view on the left, select Application Pools. In the list that is displayed, right-click the application pool that Manager is currently running in and select 'Advanced Settings'.
- In the 'Advanced Settings' dialog box, locate the property 'Enable 32-Bit Applications' and set it to True. Click OK.
If Visual Studio is being used to create Web applications with the Web ADF, ensure that the Web applications also use an application pool that supports 32-bit applications.