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?
Who is Participating?
Bob LearnedConnect With a Mentor Commented:
If you did not create the assembly, then you cannot strong name it.  If you could, it would create security holes.  You will have to contact the outside company, and have them do it.  If it was a COM assembly, and you needed to create a strong-named wrapper class it would be possible, but otherwise it is not.

Bob LearnedCommented:
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

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

Sling_BladeAuthor Commented:
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.
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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.