Up until two days ago, I was able to use Visual Studio 2010\'s \"Publish Web\" option by right clicking on my project and clicking the publish button on the context menu. No
The cause of it is the transfer your project from different environment.
To solve it, delete "obj" folder from your project directory as well as from solution explorer by right click on "obj" folder.
After that build your project and publish it. It will work normally.