By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,652 Members | 1,441 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,652 IT Pros & Developers. It's quick & easy.

Strong Name

P: n/a
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.
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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
"Brian" <an*******@discussions.microsoft.com> wrote in message
news:0a****************************@phx.gbl...
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.

Nov 20 '05 #2

P: n/a
The Microsoft Office XP PIA's are available from Microsoft.

http://www.microsoft.com/downloads/d...displaylang=en

"solex" <so***@nowhere.com> wrote in message
news:u2**************@TK2MSFTNGP11.phx.gbl...
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
Nov 20 '05 #3

P: n/a
On Tue, 28 Oct 2003 05:46:30 -0800, "Brian" <an*******@discussions.microsoft.com> wrote:

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...b;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/de...dc_oxppias.asp
http://msdn.microsoft.com/library/de...assemblies.asp
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.