I'm not sure what causes it, but restarting VS 2012 fixed it for me.
Restarting VS usually helps, but when it doesn't - try deleting .user
and .suo
files, as per this suggestion: https://stackoverflow.com/a/16223645/913845
This does not always work, however if you skip "Preview Deployment" it is less likely to fail.
Probably it's the solution to the entire class of evaluates to "" instead of a boolean. Visual Studio problems. Something for VS team at MS too look at?
I've found a very very weird (and working) workaround for this type of deploy issues, if you have tried closing & opening VS with no luck, try to close all open document prior to the publish process. weird huh? :)
so the complete fix-it guide for this type of issues would be like the following:
let me know if this has helped you :)
One common scenario that also raises that error is when you have files referenced on your solution that are missing.
So excluding those from the solution will fix it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With