Teamcity not deploy app_data folder

1k Views Asked by At

I have configured Teamcity to deploy my ASP.NET MVC application to my production server via web deploy.

The whole process is working as expected except that teamcity doesnt deploy my files in app_data folder.

If I deploy my site from Visual Studio the folder is created as expected but not by teamcity deployment.

Any suggestions how this can be updated,

2

There are 2 best solutions below

1
On

Make sure the app_data folder is included in your project. When using teamcity along with msdeploy it will not by default deploy any files which arn't included in the project. Right click on it and see if it says "include in project" or "exclude from project".

Also make sure you SVN ADD (or whatever your SVN system uses) as this is a common mistake to commit and forget to SVN so it never gets deployed.

Lastly, the files in APP_Data, are they set as content or compiled or none. If they are set to none it won't be deployed.

Once its incuded check in the .csproj file.

0
On

Check

Build Configuration Settings->Parameters->System Properties -> system.ExcludeApp_Data

value must be false