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.
- Right click on the folder and select Properties.
- 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.
- 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:
- Open "Internet Information Services (IIS) Manager" (Control Panel > Administrative Tools > Internet Information Services (IIS) Manager).
- 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
- Click the "Directory Security" tab, and then under the "Authentication and Access Control" section, click the "Edit" button.
- 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".
- 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