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
nothings work for me. deleting obj and bin file-clean-changing webservice name-shorten webservice name.
But at all,
+Expand your Reference.svcmap from visual studio.
+Update reference.
+And delete yellow warning datasources.
works for me
I resolved this by removing the file "packages.config" from my Project, which was flagged as missing. After that, Publish worked just fine.
In case this helps anyone, for my MVC project in VS 2015 it was this file: File System.pubxml.user In the publish profile directory, including it caused compilation errors but deleting it enabled it to publish!
I had a problem in vs2017 ,I just exclude bin and obj folder from projectn and publish project. it's work.
In my experience this can happen when files are added/removed from different branches of your source control and an imperfect merge causes the project file structure and the actual file structure to diverge.
This could be one of several options:
The solution is to look at the source control logs and trying to identify the bad merge to the project file for the above issues, then fixing the project file accordingly.
I had to manually copy and paste the missing files VS was asking for into the BIN folder. .pbd, .xml Sometimes they don't copy over.