Search code examples
.netwindowssharepointgacglobal-assembly-cache

Do supporting assemblies need to be registered in the GAC?


I recently had to register an assembly in my GAC for a custom sharepoint job I wrote. Once installed it began throwing an error saying that it could not load an assembly "or one of its dependencies". Do I need to register any of the supporting assemblies (System.Collections for instance) in the GAC in order to get my main assembly recognized?


Solution

  • Yes, you should register all referenced assemblies in the GAC which are not already present there.

    Remark: System.Collections is a namespace and not an assembly which is part of the BCL and already present in the GAC.