Strong Name


B

Brian

Is there a way to compile a program using strong name and
a key file while including an outlook dll? Everytime I
attempt to compile I get the following error.

Unable to emit assembly: Referenced
assembly 'Interop.Outlook' does not have a strong name


Thanks for your help.
 
Ad

Advertisements

S

solex

You must apply the key file to the outlook dll. The basic instructions are

(a) remove the outlook reference from your project
(b) save your project
(c) run the SN tool on the outlook DLL with the outfile parameter set to
something like "your - project directory\bin\Interop.Outlook.dll"
(4) reference the Interop.Outlook.dll in your project
(e) compile your project.

Dan
 
D

David Browne

The Microsoft Office XP PIA's are available from Microsoft.

http://www.microsoft.com/downloads/...1E-3060-4F71-A6B4-01FEBA508E52&displaylang=en



solex said:
You must apply the key file to the outlook dll. The basic instructions are

(a) remove the outlook reference from your project
(b) save your project
(c) run the SN tool on the outlook DLL with the outfile parameter set to
something like "your - project directory\bin\Interop.Outlook.dll"

actually it's more like
(c) run SN.exe to generate a new key pair.
(d) run tlbImp.exe on the Outlook type library, with the /keyfile option
to regenerate the interop assembly with a strong name.
(4) reference the Interop.Outlook.dll in your project
(e) compile your project.

Now you still wouldn't have a PIA, because a PIA can only come from the
publisher of the COM component. You would just have a strong-named interop
assembly.

David
 
Ad

Advertisements

P

Paul Clement

¤ Is there a way to compile a program using strong name and
¤ a key file while including an outlook dll? Everytime I
¤ attempt to compile I get the following error.
¤
¤ Unable to emit assembly: Referenced
¤ assembly 'Interop.Outlook' does not have a strong name
¤

See the following:

PRB: "Assembly Generation Failed" Error Message When You Try to Build a Managed DLL Without a Strong
Name
http://support.microsoft.com/default.aspx?scid=kb;en-us;313666

You will either need to create a strong name assembly for the Outlook object or use the XP or 2003
PIAs if you are using one of these versions of Office:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnoxpta/html/odc_oxppias.asp
http://msdn.microsoft.com/library/d...kinstallingofficeprimaryinteropassemblies.asp


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top