I'm having a problem while activating a feature. I have a custom dll that I referenced in this new project, and I'm trying to execute some code on the feature activation. The problem is that I get the following error when I deploy it to the farm:
Error occurred in deployment step 'Activate Features': Could not load type 'CustomDll.Type' from assembly 'CustomDll, Version=126.96.36.199, Culture=neutral, PublicKeyToken=123456789123'.
Some points of interest:
-I can use the class that hasn't been found in other parts of the application, like in Application pages with no problems at all.
-I can run this code on FeatureDeactivating and it will work normally too.
-I'm trying to set a static List< T > inside a static class that is in the referenced dll. Maybe this could have something to do with the issue.
-The dll exists, and another SharePoint application deploys it to GAC.
What am I doing wrong? Any help is greatly appreciated.