Re: Missing Strong name in Word Assembly???

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Jediah L. (rife_at_nospam.nospam)
Date: 08/29/04


Date: Sat, 28 Aug 2004 22:05:21 -0400

Have you installed the Office PIA (Primary Interop Assembly)?

If not - I would strongly suggest using that Interop rather than generating
your own, the PIA is strong Named by Microsoft. :)

There are different versions of the PIA for different versions of office.

Here is XPs:

http://www.microsoft.com/downloads/details.aspx?FamilyId=C41BD61E-3060-4F71-A6B4-01FEBA508E52&displaylang=en

Office 2003 Setup includes the PIA's.

I do not know if there any available for 2000 and below.

If none of this applies to you (if you are using something like Office 98
:)) you can strong name your assemblies by generating your Interop manually
using the Type Library Importer - specifying a key file for the strong name
(which can be created using the sn.exe).

Here are some links to articles on the Type Library Importer (tlbimp) and
the strong name key generation tool (sn.exe).

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrftypelibraryimportertlbimpexe.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrfstrongnameutilitysnexe.asp

"Oliver Lange via .NET 247" <anonymous@dotnet247.com> wrote in message
news:exmBEyPjEHA.1644@tk2msftngp13.phx.gbl...
> Hi all,
>
> i am new on c# and have some small problems
>
> Perhaps, someone of you can give me a hint solving it:
>
> I built a WinForm with different Buttons
> One of these Buttons shall open Word.
> One of these Buttons shall send an e-mail
> and so on
>
> the mail works fine
> but when i type in this code for the word button
>
> Word.Application app;
> app = new Word.Application();
>
> //Word.Application app = new Word.ApplicationClass();
> object template=System.Reflection.Missing.Value;
> object newTemplate=System.Reflection.Missing.Value;
> object documentType=System.Reflection.Missing.Value;
> object visible=true;
> Word.Document oDoc = new Word.DocumentClass();
>
> oDoc = app.Documents.Add( ref template,
> ref newTemplate,
> ref documentType,
> ref visible);
>
> My compiler messaged - That the used Interop.Word Assembly doesn't have a
> strong name
>
> What does it mean - how can i assign a strong name to this assembly?
>
> Hope for help
>
> --------------------------------
> may the force be with you
> From: Oliver Lange
>
> -----------------------
> Posted by a user from .NET 247 (http://www.dotnet247.com/)
>
> <Id>NB7KRke0Z0ajjmmbSwK02Q==</Id>


Quantcast