39531: Why do I get this error when loading the MTWeb site in a browser? "Could not get exclusive lock to application data file."

Translate to:

Symptom:

Instead of loading the MTWeb login page (or any other MTWeb page), I see a page with the error message "Could not get exclusive lock to application data file."

Steps to Reproduce:

Configure MTWeb normally, but do not grant write permissions to the "parsed" and "templates_c" folders. Load the MTWeb site in a browser.

Cause:

The "parsed" and "templates_c" folders within the MTWeb directory must have write permissions for the user running the web process. On Windows, this user is normally called the "Internet Guest" or "Anonymous Internet" account.

Workaround:

None

Fix:

Give WRITE permissions to the user running the web process for the "parsed" and "templates_c" folders which can be found inside the MTWeb directory. After granting permissions, delete the contents (if any) of the "parsed" and "templates_c" folders, except for the "readme.txt" files.

  1. Right click on the folder and select Properties.
  2. Click on the Security tab and verify that the appropriate Groups and Users have Full Control. At the least, the Administrator account (local computer) should have Full Control. If a folder needs to be accessed by a domain user then the domain user must also be given full control.
  3. The web site configured in IIS for MassTransit use has a specific Windows user account associated with it to provide anonymous access to the web site. For the MassTransit web system to function properly, that user account must be granted "write permissions" to the "templates_c" and "parsed" folders (located within MassTransit's "MTWeb" folder). To determine the user account that the IIS website associated with MassTransit is using for anonymous access, please follow these steps:
    1. Open "Internet Information Services (IIS) Manager" (Control Panel > Administrative Tools > Internet Information Services (IIS) Manager).
    2. Within the "Web Sites" folder, right click the IIS website name for the site that was configured for MassTransit use, and then click "properties".

      NOTE: If you do not see the list of websites, you may need to click the plus sign icon to expand the listing so that it shows all entries

    3. Click the "Directory Security" tab, and then under the "Authentication and Access Control" section, click the "Edit" button.
    4. In the "Enable Anonymous Access" section, look in the "User Name" field and it will indicate the user account that is being used by the website in the format: "COMPUTER NAME\USER ACCOUNT NAME".
    5. Click the "Cancel" button to exit out of the properties screens without making changes. NOTE: For further information please consult the following Microsoft KB Article: http://www.microsoft.com/technet/prodtechnol/windows2000serv/deploy/confeat/13w2kadc.mspx

Tags: 

You are reporting a typo in the following text:
Simply click the "Send typo report" button to complete the report. You can also include a comment.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
8 + 9 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.