English

Error: Unable to retrieve ArcGIS install directory from registry

Error Message

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

Cause

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.

Note:
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.

  1. Click Start > Administrative Tools > Internet Information Services (IIS) Manager.
  2. 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.
    [O-Image] IIS Treeview
  3. Determine the application pool that Manager is currently running in by right-clicking Manager in the tree view and selecting 'Advanced Settings'.
    [O-Image] IIS_Advanced_settings
    Typically, Manager will be running in the default application pool called DefaultAppPool.
    [O-Image] application_Pool
    Once the name has been determined, click Cancel to dismiss the dialog box.
  4. 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'.
    [O-Image] Application_Pool_Settings
  5. In the 'Advanced Settings' dialog box, locate the property 'Enable 32-Bit Applications' and set it to True. Click OK.
    [O-Image] 32_ bit_mode

    Note:
    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.