Word automation webservice

Benno67Benno67 Member Posts: 39
edited 2013-01-09 in NAV Three Tier
Hi All,
We have got a nasty (we think) authority problem.
We are doing some mailmerge in a webservice. At the end of the process we need to convert the document to a pdf, encode it, and sent it back. To do so, we use the Word automation object. I know, it is advised not to use Office server side, but it all worked fine on a Windows 2003 32 bit server.

We cannot get it working on a Windows 2008 64 bit server. The webservice is running under Network Service account, we ajusted the DCOM security, we even tryed some Registry patches, we added "Desktop" folders, found out we needed dcomcnfg /32, etc, etc.

On the statement
IF CREATE(wdApp,FALSE,FALSE) THEN
we get:

Type: System.Runtime.InteropServices.COMException
ErrorCode: -2146959355
Message: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80080005.

The CLSID belongs to a InprocServer32 running Interop.Word 2010

Off course al works fine when running the same code from a clasic client, as it did on our old server. ](*,)

Any suggestions?

Benno

Answers

  • Benno67Benno67 Member Posts: 39
    The solution is: do not use office automation sever site!
    In this case the problem is the combination of x64 Server 2008, x32 Office 2010. By editing the Registry, and enlarging some heap, you can get it working.
    We decided on using microsoft.office.word instead.
  • mdPartnerNLmdPartnerNL Member Posts: 802
    Benno67 wrote:
    We decided on using microsoft.office.word instead.

    Hope you can give more details? Do you mean you use the 32bit version on a Server 2008 R2?
  • Benno67Benno67 Member Posts: 39
    Yes a 32 bit version of Office
Sign In or Register to comment.