Solved

Cannot Register Assembly - Using Managed Assembly Without A Strong Name

Posted on 2006-07-17
4
990 Views
Last Modified: 2013-12-03
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?
0
Comment
Question by:Sling_Blade
  • 2
4 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 17139999
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
0
 

Author Comment

by:Sling_Blade
ID: 17165398
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.
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 17166705
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
0
 

Expert Comment

by:victorcook
ID: 34983805
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.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now