Solved

Cannot Register Assembly - Using Managed Assembly Without A Strong Name

Posted on 2006-07-17
4
1,016 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Increase Agility with Enabled Toolchains

Connect your existing build, deployment, management, monitoring, and collaboration platforms. From Puppet to Chef, HipChat to Slack, ServiceNow to JIRA, Splunk to New Relic and beyond, hand off data between systems to engage the right people.

Connect with xMatters.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

717 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