I am working on migration from SharePoint 2010 to SharePoint 2013. I have mounted the content database in SharePoint 2013 and also deployed the WSPs from SharePoint 2010 which were created in Visual Studio 2010 to SharePoint 2013. Currently the site is running in SP 2010 mode.
The WSP solutions contain web application scoped resources and hence are deployed to web applications and not globally. There are SafeControl entries in the package, web parts, user control etc. Now when I browse the pages which contain the webparts I get the error:
Could not load type 'assemblyname'.
I have checked that all the physical files are deployed correctly to 14 hive, the dlls are all present in C:\Windows\assembly and the SafeControl entries are also present in web.config file. In the past I have had WSPs which deployed globally and I have not found any issues in them. There is a similar question over here:
I created few simple VisualWebPart projects in VS 2010, deployed them to a web application in SP 2010 and then migrated the application to SP 2013 and deployed the solutions there. Everything works fine. That means this issue is not specific to web application scoped SharePoint solutions which I originally thought. There is something else going on in my projects which I am not able to identify.