HighTechTalks DotNet Forums  

using Unsigned Thirdparty DLL

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss using Unsigned Thirdparty DLL in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
=?Utf-8?B?QXJhdmluZA==?=
 
Posts: n/a

Default using Unsigned Thirdparty DLL - 06-12-2007 , 06:12 AM






Hi,
I have a Third party DLL which is not signed. I am trying to use that DLL in
my Class Library. While time of building i got an error saying "The
referenced DLL doesnot have strong name key"

I used ILDASM to disassemble the dll. The output containes Sample.IL
Sample.res and Sample.Resource.resource. I used ILASM to assemble(ilasm /dll
/resource=sample.res sample.il /out=sample.dll /key=someSN.snk) ,
and tried using in my application i still getting "The referenced DLL
doesnot have strong name key" .

Can you please tell me what mistake i am doing.. or is there is any best way
sign Third party dll with strong Name?

Thanks
Aravind

Reply With Quote
  #2  
Old   
Javier G. Lozano
 
Posts: n/a

Default Re: using Unsigned Thirdparty DLL - 06-12-2007 , 03:53 PM






On Jun 12, 5:12 am, Aravind <Arav... (AT) discussions (DOT) microsoft.com> wrote:
Quote:
Hi,
I have a Third party DLL which is not signed. I am trying to use that DLL in
my Class Library. While time of building i got an error saying "The
referenced DLL doesnot have strong name key"

I used ILDASM to disassemble the dll. The output containes Sample.IL
Sample.res and Sample.Resource.resource. I used ILASM to assemble(ilasm /dll
/resource=sample.res sample.il /out=sample.dll /key=someSN.snk) ,
and tried using in my application i still getting "The referenced DLL
doesnot have strong name key" .

Can you please tell me what mistake i am doing.. or is there is any best way
sign Third party dll with strong Name?

Thanks
Aravind
Did you try:

ilasm sample.IL /dll /key:someSN.snk /resource=Sample.res /
out=sample.dll? Just switching the input of the IL file.



Reply With Quote
  #3  
Old   
Mehul Gurjar
 
Posts: n/a

Default Re: using Unsigned Thirdparty DLL - 06-14-2007 , 08:38 AM



Hello Arvind,

Have you tried using Dllimport attribute. If you like to use the third party
dll into your class file, you first need to import the dll in the class file
using


[DllImport("THIRDPARTY.DLL", CharSet = CharSet.Auto)] ( C# syntax )

CharSet is optional so you can remove that.

Please post your dll name or code so that I can give you a proper response.

With Regards

Mehul Gurjar



"Aravind" <Aravind (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,
I have a Third party DLL which is not signed. I am trying to use that DLL
in
my Class Library. While time of building i got an error saying "The
referenced DLL doesnot have strong name key"

I used ILDASM to disassemble the dll. The output containes Sample.IL
Sample.res and Sample.Resource.resource. I used ILASM to assemble(ilasm
/dll
/resource=sample.res sample.il /out=sample.dll /key=someSN.snk) ,
and tried using in my application i still getting "The referenced DLL
doesnot have strong name key" .

Can you please tell me what mistake i am doing.. or is there is any best
way
sign Third party dll with strong Name?

Thanks
Aravind


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.