This sounds so ridiculous I can't believe I'm typing it. But I've managed to do it twice now and don't know what the heck is going on.
Brand new SF 5.1 site. Playing around with customizing templates, master pages, themes, etc. I did some work that I wanted to test pushing up to our "live" dev server that the client can see.
This site was already pushed once, and (so far) still works. To deploy, I FTP'd the files and imported the data from my dev database. I then update the data config to point to the new database.
On the second push, I:
1. Switched Visual Studio to Release mode, rebuilt the app.
2. FTP'd ALL of my files from my local system over the top of the previous files.
3. Repushed the "production" data file to point to the live database.
The live site that I pushed to still worked.
However, I went back to my visual studio, WITHOUT CHANGING ANYTHING, and hit the run button to run in release mode to check something. And I get this error for every page of the site:
Could not load file or assembly 'Microsoft.Http, Version=188.8.131.52, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
Confused, I put it back into Debug mode, ran the app. Same error. Closed VS.Net, reopened and tried again. Same error. I just don't get it. In fact, I don't even know where to begin. Again, I say again, other than rebuilding the project in release mode, I touched absolutely NOTHING.
Has anyone seen this issue before and have a fix?
Edit: when I say I've done this twice, the way I "fixed" this last time was to start over completely from scratch and create a brand new project. I can't do that every time I deploy...