31 Oct 2011
12 Nov 2011
Link to this post
I spent about half an hour with this issue this morning (Sitefinity v4.3) and happen to come across this thread, so I thought I'd share my solution.
"Could not load type" and related errors nearly always arise due to a missing DLL. In my case, that was caused by using "Clean Solution" from within Visual Studio, but it can also happen when deploying a project to another server.
An easy fix for this is to make sure that *all* of the DLLs in your BIN folder are added as a reference to your VS project. Some of the DLLs that Sitefinity seems to require aren't explicitly referenced in the default project, probably because they're required by other DLLs but not by the project itself.
However, if you explicitly add references to those DLLs, they won't be deleted from the bin folder when cleaning the solution, and they should be copied along with everything else when deploying the site.
Hope this helps someone!