I recently moved my asp.net project from my old development pc (Win7, VS2005, SQL Server 2005, .net 2.0, .net 3.5) to a new PC (Win8, VS2012, SQL Server 2008 R2, .net 2.0, .net 3.5, .net 4.5).
I can debug it as normal and it runs on development server. But when I try to publish the project I get the following error
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
I tried following solution and they did not solve my problem.
- Setting reference copy local to TRUE
- adding trust level full in
web.config
- Checking fusion logs (it's empty)