Reputation: 1794
I screwed up my Web App solution in VS2010, Visual SVN wouldn't return me to a previous version so I checked out another copy in another directory. Now I've made changes and it commits ok. However, Now VS2010 Publish is failing with:-
Error 4 Copying file assetmanager\assetmanager.asp to obj\Release\Package\PackageTmp\assetmanager\assetmanager.asp failed. Could not find file 'assetmanager\assetmanager.asp'. 0 0 AdminSite
I'm pretty certain there's never been an assetmanager\assetmanager.asp file. The site is .NET 4.0 VB.
I'm now totally stuck. Can anybody give me a hint as to how to correct this. I don't even know where it's getting this info from.
Cheers
Upvotes: 2
Views: 1806
Reputation: 6131
Found this problem and was able to solve it by:
Upvotes: 0
Reputation: 1206
Are you seeing the file in the project? If so right click and tell it to remove the "ghost" file from the project. Once you do that I would try and publish again.
If its not showing the project, you might be able to create a fake file with the same name (just put some text in there so the size isn't 0kb) and in the same location as the other asp files. Make sure the "show hidden files is selected" and add it to the project and then promptly delete. This would essentially fix the corruption of VS thinking the file exist.
Upvotes: 3