all groups > dotnet interop > march 2007 >
You're in the

dotnet interop

group:

Word Interop and Server 2003


Word Interop and Server 2003 TJHerman
3/29/2007 2:32:03 PM
dotnet interop:
I have a problem in deploying an ASP.NET web project with
Microsoft.Interop.Word on a server with Windows Server 2003.

From the developing PC, my program opens a Word template, replaces bookmarks
with some text from the web page and then saves and closes the file. As many
others say, it works fine from the developing PC but when I try to put is on
the web server, it fails with the error:
- - - - - -
Retrieving the COM class factory for component with CLSID
{000209FF-0000-0000-C000-000000000046} failed due to the following error:
8000401a.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Retrieving
the COM class factory for component with CLSID
{000209FF-0000-0000-C000-000000000046} failed due to the following error:
8000401a.

Source Error:

Line 185: Dim word As New Microsoft.Office.Interop.Word.Application
Line 186: Dim wobj As Microsoft.Office.Interop.Word.Document
Line 187:
- - - - - - -

The server is running Windows Server 2003. I have tried setting the DCom
permissions (on the component labeled My Computer) so that the ASPNET,
INTERACTIVE and NETWORK SERVICE accounts have Launch and Activation
permissions. I have also gone to the Microsoft Document component under DCom
and added the same permissions. My DCom settings for the Word document are to
run as Interactive User, authentical level to “Connect”, Location to “Run
application on this computer”. I have tried adding permissions to the
Assembly folder underneath Windows and have checked the registry to ensure
that DCom was enabled.

I’m really at a loss here. Does anyone have any suggestions? This has run
flawlessly on a Windows 2000 server for months. But I cannot get it deployed
Re: Word Interop and Server 2003 TJHerman
4/1/2007 9:04:00 AM
Yes, Word is installed on the server

[quoted text, click to view]
Re: Word Interop and Server 2003 Ornette
4/1/2007 5:10:18 PM
Is Word installed on the server ?? You must.

Ornette.

[quoted text, click to view]

Re: Word Interop and Server 2003 Ornette
4/2/2007 12:00:00 AM
OK.

I'm using the same and it works (except for printing, see message above).
So, are you using impersonation or not ? Do you autenticate you users or not
?
Do you run your app in a specific pool ? If so which user runs the pool ?
Did you install Office PIA separatly or with Office ?
Wich version of Office do you use ? Wich version of PIA do you use ?

I know this is several question but everything should be known for this kind
of question !

Hope I will help you, because I solved this problem !!! (except for network
pinters !!).

Ornette.

[quoted text, click to view]

Re: Word Interop and Server 2003 Abha
4/23/2007 2:30:18 AM
AddThis Social Bookmark Button