Deploying my code killed my dev site
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:
@Dave Are you doing "Build" or "Rebuild" in VS? Rebuild used to remove some required DLLs from the bin folder (I think perhaps it still does). If you go to your install directory in program files ->telerik ->Sitefinity ->_EmptyProject->bin just copy all those files and paste them straight into your webapps bin folder.
(I don't even think you'll need to Build again and the refs should be picked up again)
Thanks Steve, that did it. The Microsoft.Http.dll is not being referenced in the project, so when you do a rebuild (which is what I have almost always done for over 10 years now with .NET projects - its just habit) it blows away the DLL.
I thought my answer was not that far of :-)
Glad you got it running.
While you're at it -
You should check your AdoNet2.dll reference.
Since you're FTP'ing and not publishing from within Visualstudio it's just probably causing the little '?' on the reference but that one causes head aches as well since v4.4.
Jochem, I see a reference in my project Telerik.OpenAccess.Adonet2 that is missing. However, I started another blank project and that file isn't there either.
Yes sorry - should have used a few more words and explain that its often there in the reference, although long time not needed anymore nor included (and that reference would break publishing).