Configure the App_Data folder to be on a shared file location
There are scenarios when two or more developers work on the same Sitefinity CMS project at the same time. With all configuration files and website templates held within the
App_Data folder, this can be difficult, especially when using Source Control. In the following article you will find how to set up a development environment for sharing the
NOTE: All users who are working on the project need Read, Write and Modify permissions to the shared location.
Setting up the environment
Set up the site
To learn how to set up IIS, see Run projects on IIS.
To set up shared location for
App_Data, follow the steps below.
- Copy the
App_Data folder and paste it in your shared file location.
- Open IIS manager.
- Select your website, and in the right pane click View Virtual Directories.
The Virtual Directories window appears.
- Click Add Virtual Directory...
- The Add Virtual Directory window appears.
- Set the Alias to App_Data.
- Set the Physical path to the shared file location:
Set up the Application Pool
You have to do this set up for all development environments pointing the
- Create an Application pool for your application.
NOTE: You need to create a separate App Pool for this set up to work. For more information, see Create an Application Pool.
- Click Advanced Settings... in the right pane.
- Click the ... button on the right of the Identity setting.
- Select Custom account.
- The custom account must be either a global account or an active directory account which have access to both locations:
- Click OK and IIS will automatically test your credentials.
- Run the website.
App_Data to the same shared file location. If a developer makes a change to a configuration, all other users will need to recycle their Application pools to see the changes in their locally running websites.