Any help please?
I have only one library and it is driving me crazy. this is the error that I receive. I am not using any other dependancies.
Could n
To make Visual Studio adding 3rd party assembly or even your own assembly from other project in solution to GAC please do next:
Open Package.package from Package folder in SharePoint project.
Click Advanced in bottom area.
Click Add and chose which type of assembly you want to add.
In dialog select dll file, chec GAC or BIN, add safe controls and class resources entries if required. Click Ok.
Your assembly will be packaged to WSP, defined in manifest and deployed everytime.
Please try to unreference the DLL then re reference it again and rebuild you project. Also Check to ensure that the version matchs what is in the project web config
For assemblies not in GAC, and which are referred in the build, sometimes this error also happens if the platform target does not match. So match the assembly platform type to the one where it is being used.
Problem Solved!
I thought that Visual Studio was copying the DLL in to the GAC, but apparently not. So I copied it there manually and it works.
One question though, is this normal that visual studio does not copy it to the GAC when I deploy the sharepoint application?
For those who would like to know how to copy the dll to GAC
there are two ways to copy the dll to GAC:
copy the dll manually
use VS to deploy it for you to GAC.
thank you for your support.
If error is when publishing in Visual Studio 2012 un-check the "Precompile during publishing" option in the publish wizard and try again.