Word automation in ASP.NET: How to install PIA on server?

S

steve_b1243

Hello,

I've got a ASP.NET project that uses Word-automation on the server to
generate word documents. It all works fine on the development machine,
but when i deploy the solution to a testserver, the following error
appears: System.Runtime.InteropServices.COMException: Befehl misslungen

(Sorry, in german (-:)


On the testserver, the same version of Word is installed as on my
development machine, Word XP (=word 2002, (10.4524.4219) SP-2). From
what i understand after my research into this sofar, is that it has
probbably to do with missing or incorrectly installed Office XP PIAs.
I deployed the interop.word.dll, interop.vbide.dll and
microsoft.interop.core.office.dll to the bin directory of my
webproject, but this seems not to be enough. Do I have to register
them, and if so, HOW?


If I check in the GAC, the PIA are not visible there, but i am not sure

wether this is necessary.
I found the following article:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnox...



It gives me 2 options for distributing the PIAs that i tried:


1: Have the end user of your solution manually install the required
Office XP PIAs on their computer before running your solution. This
option is only recommended for technically advanced end users. See the
Installing the Office XP PIAs section above for details.
2: Place the required Office XP PIAs in the same directory as your
solution and distribute your solution and the Office XP PIAs as a
single unit. This option is only recommended for simple solution
deployments, such as copying solutions from one file directory folder
to another across a computer network. The main disadvantage with this
option is that multiple copies of the same Office XP PIAs may be
installed on end users' computers, which reduces these computers'
available hard disk space.


The problem with solution 1 is, that for the way to install the PIAs
that is described there, it is needed that visual studio.net is
installed. But it cannot be serious that i need to install VS.net just
to install the PIA??? Ist there another way?


Solution 2 isnt working, see my question above.


Anybody has any suggestions????


thanks!
 

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