Error message when you try to open the Order Management Setup page in Business Portal in Microsoft Dynamics GP 10.0 or in Microsoft Dynamics GP 9.0: "Access to the path 'c:\inetpub\wwwroot\bin\~privatefile.dbauthentication.config' is denied"


Symptoms


When you try to open the Order Management Setup page in Business Portal in Microsoft Dynamics GP 10.0 or in Microsoft Dynamics GP 9.0, you receive the following error message:
Server Error in '/' Application

Access to the path "c:\inetpub\wwwroot\bin\~privatefile.dbauthentication.config" is denied. Exception Details:
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity that is used if the application is not impersonating. If the application is impersonating via <identity imprersonate="true"/>, the identity will be the anonymous user or the authenticated request user.

Cause


This problem occurs because the GPReg.dll file is missing or is not registered.

Resolution


To resolve this problem, follow these steps:
  1. Verify that the GPReg.dll file is in the bin folder of the root directory for the Web site that you used to install Business Portal.

    Note By default, the bin folder is in the following location:
    C:\Inetpub\wwwroot\bin
  2. Manually register the GPReg.dll file. To do this, use one of the following methods:
    • Use the command prompt:
      1. Click Start, click Run, type cmd in the Open box, and then click OK.
      2. Change to the directory that contains the GPReg.dll file.


        Note To change to the default location, type CD inetpub\wwwroot\bin at the command prompt, and then press ENTER.
      3. At the command prompt, type Regsvr32 GPReg.dll, and then press ENTER.
    • Use Microsoft Windows Explorer:
      1. Right-click Start, and then click Explore.
      2. Locate and then right-click the GPReg.dll file, point to Open with, and then click Choose Program.
      3. In the Open With dialog box, click Browse.
      4. In the Look In list, click the C:\Windows\System32 folder, click the Regsvr32.exe file, and then click Open.

More Information


Steps to reproduce the problem

  1. In Business Portal, click Site Settings, click Application Settings, and then click Order Management Setup.
  2. If you are prompted for a username and password, enter the username and password.
  3. Click OK.