Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > COM Interop and Delay Signing of Strong Names

Reply
Thread Tools

COM Interop and Delay Signing of Strong Names

 
 
Aaron
Guest
Posts: n/a
 
      02-06-2004
I have a VB.NET DLL that I wish to Delay Sign (ie. I want to assign a strong name after compiling the DLL and obfuscating it). This DLL will also be callable for COM Interop

I have found instructions for setting up the configuration for COM interop and Strong Names, but not for delay signing when COM Interop is turned on. When I attempt to build the DLL, I receive the following error
"COM Interop registration failed. The check of the signature failed for assembly 'XXXX.dll'." If the "Register for COM Interop" option is turned off for the project, the error goes away

I saw on a previous thread that an option would be to use the sn.exe utility to skip verification list of the public key (using the -Vr switch). However, I am unsure how you get the strongname used in the -Vr parameter. Can anyone help me out with this

Another possibility is that I am missing some required configuration settings for delayed signing. Here is what I currently have (I have removed some path/GUID/File names)

Imports Syste
Imports System.Reflectio
Imports System.Runtime.InteropService
<Assembly: AssemblyTitle("")><Assembly: AssemblyDescription("")><Assembly: AssemblyCompany("")><Assembly: AssemblyProduct("")><Assembly: AssemblyCopyright("")><Assembly: AssemblyTrademark("")><Assembly: CLSCompliant(True)>

'The following GUID is for the ID of the typelib if this project is exposed to CO
<Assembly: Guid("XXX-XXXX-XXXX")><Assembly: AssemblyVersion("1.0.*")>

'Delay Sign the Strong nam
<Assembly: AssemblyKeyFileAttribute("X:\XXX\MyKey.snk")><Asse mbly: AssemblyDelaySignAttribute(True)>

Does anyone see anything I have done wrong or am missing that we need to resolve the error?

Thanks

Aaro


 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: "Strong typing vs. strong testing" namekuseijin Python 229 10-29-2010 09:02 AM
Re: "Strong typing vs. strong testing" namekuseijin C Programming 214 10-17-2010 01:12 PM
Delay Signing Project with WebService Proxy cisco ASP .Net Web Services 4 01-26-2006 06:07 AM
Compilation fails when a windows form user control is assigned a strong name but it refers to an activex control which does not have strong name ashish_gokhale ASP .Net Web Controls 0 05-05-2005 01:38 PM
How to strong name an assembly which use interop.shell32? Nicola Garone ASP .Net Building Controls 1 04-19-2004 02:27 PM



Advertisments