Error message when you finish the installation of Business Portal and then start Business Portal: "Server Error in '/' Application. Access denied to 'Microsoft Dynamics'. Failed to start monitoring file changes"


Symptoms


When you finish the installation of Business Portal in Microsoft Dynamics GP or in Microsoft Dynamics SL and then start Business Portal, you receive the following error message in the various Web parts that are displayed:

Server Error in '/' Application. Access denied to 'Microsoft Dynamics'. Failed to start monitoring file changes. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: Access denied to 'Microsoft Dynamics'. Failed to start monitoring file changes.

Cause


Microsoft ASP.NET requires the following permissions for the ASP.NET process account and for the Network Service account. These permissions are required on the root folder of the Web site and on every folder in the virtual directory:
  • Read
  • Execute
  • List
ASP.NET requires these permissions to access the files and to monitor changes to the files.

Resolution


To resolve this issue, use one of the following methods.

Method 1

  1. Grant the required permissions to the ASP.NET process account. To do this, follow these steps:
    1. In Windows Explorer, locate the installation folder for the application. Or, locate the folder for the virtual directory. The following is the default location of the Business Portal virtual directory:
      C:\Program Files\Microsoft Dynamics\Business Portal
    2. Right-click the folder, and then click Properties.
    3. On the Security tab, click Add.
    4. In the Enter the object names to select field, type the following, and then click OK:
      ComputerName\ASPNET
      Note Replace the ComputerName placeholder with the name of the computer that is running Business Portal.
    5. In the Permissions area, enable the following options in the Allow list, and then click OK:
      • Read & Execute
      • List Folder Contents
      • Read
    6. Click Save to close the window, and then restart Internet Information Services (IIS).
  2. Grant the required permissions for the Network Service account. To do this, follow these steps:
    1. In Windows Explorer, locate the application folder for the Web site. Or, locate the folder for the virtual directory. The following is the default location of the Business Portal virtual directory:
      C:\Program Files\Microsoft Dynamics\Business Portal
    2. Right-click the folder, and then click Properties.
    3. On the Security tab, click Add.
    4. In the Enter the object names to select field, type Network Service.

      Note This user account is a local user account.
    5. In the Permissions area, enable the following options in the Allow list, and then click OK:
      • Read & Execute
      • List Folder Contents
      • Read
    6. Click Save to close the window, and then restart IIS.

Method 2

Make sure that the folder names in the path of the Web site contain less than nine characters.

Notes
  • To determine the folder names in the path, follow these steps:
    1. In IIS Manager, right-click the Web site in which Business Portal is installed, and then click Properties.
    2. Click the Home Directory tab, and then note the folder names of the path in the Local Path box.
  • If you rename a folder so that the folder name contains less than nine characters, you have to make the same change in IIS for the Web site. After you make the change, stop and then start IIS.

More Information


For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:

317955 "Failed to start monitoring directory changes" error message when you browse to an ASP.NET page

316721 "Failed to Start Monitoring Directory Changes" error message when you browse to ASP.NET page