I am getting fed up with this error. I have search all over the web and tried every possible suggestion to this error I could find.
Again, this is an old post, but I had the following:
VS2012 asp.net web forms app -> upgraded to VS2013
Try to publish - get same error as OP.
When I finally figured it out, the problem was caused by one thing:
when I looked into the membership providers in web.config, one item was missing the connectionStringName attribute:
bad:
good:
I'm not sure why one of the connectionStringName attributes was stripped out, or even if it was ever there, but you can turn this error on and off with this one setting.