I published my project with Visual Studio 2010 Ultimate SP1 and I have a bunch of files in ~/App_Data.

I don't remember if the first upload of appdata was with FTP or with WebDeploy. The problem is when I add new files to ~/App_Data and publish the site, those files (or folders under ~/App_Data) never get published.

My project web deployment settings has the "Exclude App_Data" UNCHECKED so it should be uploading it, yet it doesn't.

Anything else I should do?

有帮助吗?

解决方案

This can happen if you don't have the "Build Action" set to "Content". This can be changed by looking at the properties of the files in question (right click "Properties" on the file).

其他提示

It can be set as below screenshot. Uncheck the exclude App_Data

Setting Page

Make sure the Build Action in the file properties is set to "Content". , and the Copy to Output Directory is set to "Copy if Newer".

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top