publish empty directories to a web application in VS2010 web project

No this is not possible I’m afraid we had the same problem. You need to create a placeholder.txt file in each empty directory if you want the precompilation tool to generate these empty folders. Failing that you can create a command line app that will create the folders in your post build events (but only … Read more

ASP.NET publish trying to copy a non-existant file

I also bumped to this problem. I was receiving the following error, when trying to publish MVCForum 1.7: Copying file App_Data\NuGetBackup\Hello.txt to obj\Release\Package\PackageTmp\App_Data\NuGetBackup\Hello.txt failed. Could not find file ‘App_Data\NuGetBackup\Hello.txt’. François Breton’s comment helped me achieve the solution. It’s simple: Open your .csproj file with a text editor (Notepad, Notepad++) Visual Studio will open it as … Read more

Visual Studio 2010 Publish Profiles — Where are they stored?

The file name is actually going to be $(ProjectName).Publish.xml, and should be in the same folder as your .csproj file. If you enable the “Show All Files” option in Solution Explorer it will appear, and you can include it in your project from there. That will get it into source control. One thing to be … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)