[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Cannot Register Assembly - Using Managed Assembly Without A Strong Name

Posted on 2006-07-17
4
Medium Priority
?
1,028 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
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…

656 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