I have written the following simple test in trying to learn Castle Windsor\'s Fluent Interface:
using NUnit.Framework;
using Castle.Windsor;
using System.Col
Adding your DLL to GAC(global assembly cache)
Visual Studio Command Prompt => Run as Adminstrator
gacutil /i "dll file path"
You can see added assembly C:\Windows\system32\
It Will also solve dll missing or "Could not load file or assembly" in SSIS Script task
Maybe not as likely, but for me it was caused by my application trying to load a library with the same assembly name (xxx.exe loading xxx.dll).
This usually happens when you have one version of your assembly deployed in the GAC but has not been updated with new classes that you might have added on the assembly on your IDE. Therefore make sure that the assembly on the GAC is updated with changes you might have made in your project.
E.g. if you have a Class Library of Common and in that Class Library you have Common.ClassA type and deploy this to the GAC strongly-named. You come later and add another type called Common.ClassB and you run your code on your IDE without first deploying the changes you made to the GAC of Common with the newly added Common.ClassB type.
If you have one project referencing another project (such as a 'Windows Application' type referencing a 'Class Library') and both have the same Assembly name, you'll get this error. You can either strongly name the referenced project or (even better) rename the assembly of the referencing project (under the 'Application' tab of project properties in VS).
If this error caused by changing the namespace, make sur that the folder of that project is renamed to the same name, and close VS.NET Edit the project which has the problem with Notepad and replace there nodes
"RootNamespace>New_Name_Of_Folder_Of_Your_Project_Namespace"RootNamespace> "AssemblyName>New_Name_Of_Folder_Of_Your_Project_Namespace"AssemblyName>
I had the same issue. I just resolved this by updating the assembly via GAC.
To use gacutil on a development machine go to:
Start -> programs -> Microsoft Visual studio 2010 -> Visual Studio Tools -> Visual Studio Command Prompt (2010)
.
I used these commands to uninstall and Reinstall respectively.
gacutil /u myDLL
gacutil /i "C:\Program Files\Custom\mydllname.dll"
Note: i have not uninstall my dll in my case i have just updated dll with current path.