Link to home
Start Free TrialLog in
Avatar of Sling_Blade
Sling_BladeFlag for New Zealand

asked on

Cannot Register Assembly - Using Managed Assembly Without A Strong Name

I am almost through with my project and I need to register it in the GAC.

Problem is I am referencing a managed assembly created by an outside company and this referenced assembly does not have a strong name.

Therefore I am unable to create a strong name for my project (I.e. I cannot create a strong name for my assemble unless all "managed" assemblies it refenences also have a strong name).

Is there any work around in a situation like this?
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

1) Are you dealing with COM interop assemblies?

2) Are getting an error like this?

PRB: "Assembly Generation Failed" Error Message When You Try to Build a Managed DLL Without a Strong Name
http://support.microsoft.com/?kbid=313666

If so, then the solution is shown in the article for VB.NET and C#.

Bob
Avatar of Sling_Blade

ASKER

Thanks for the response and I have already found the article you linked to. :-)

The assembly is a .net managed assembly.

My problem is that the assembly is created from an outside company therefore i cannot recompile it, therefore I cannot give it a strong name.

What I am after is a work around, if one exists.

I doubt one exists but I thought I'd give it a try.
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Another solution is to load the assembly and call its methods dynamically. It's a hassle to do this, but it is the only work-around I am aware of.