I have asp.net 2.0 web application running on
-Windows server 2003 64 bit version
-IIS 6.0 64-bit
-Microsoft Office 2007
I am doing simple mail merge using WORD com object, I've given rights to all the keys bellow in DCOMCNFG:
{000209FE-0000-0000-C000-000000000046}
{000209FF-0000-0000-C000-000000000046}
{00020906-0000-0000-C000-000000000046}
tried to give full rights to Network Service, Interective User and Finally Everyone. Also tried with 'interactive user' as well 'launching user'. But I am still getting the same error of access denied. The exact errormessage is as bellow:
Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80080005.
OR
Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 8000401a.
The strange thing is, when i run the same code in a test windows application on that server, it works fine! The same website code is running fine in my local machine running on IIS6.0 32bit
Does anybody have solution that work with IIS 6.0 64-bit too?
Ramachandra MaddigapuPosted Nov 6, 2012, 5:46 AM
Ashok Kumar ArumugamPosted Aug 19, 2010, 3:31 AM
I am creating an MS Office Word 2007 Automation application in ASP.NET. Here I will read a predefined .dot(template file) and fill the contents with some dynamics data and save it. I am reading the file from"c:\Documents\Templates\XXX.dot".
1. When I am executing from my VS development application(localhost:portnumber) it is working perfectly.
2. When I am hosting in my same system(Windows XP Professional) by creating virtual directory in inetmgr and executing also working perfectly.
3. My problem occurs where:
When i am hosting the same application in my production server(Windows Server 2008) I am getting error as
Data: System.Collections.ListDictionaryInternal
Message: Word has encountered a problem.
Source: Microsoft Word
The code fails at the below specified line in wordApp.Documents.Add
ApplicationClass wordApp = new Microsoft.Office.Interop.Word.ApplicationClass();
Document wordDoc = wordApp.Documents.Add(ref oTemplate, ref oFalse, ref oMissing, ref oMissing);
// The code fails at this line.
The above code is called as per the following flow .ASPX Page --> Silverlight(.XAP) file(button click) --> .SVC Web Service --> actual code that raises error written in library(dll) here is where the error is.
I cannot proceed further and i am stuck with his. If anybody came up with this error please help me in solving this issue. I was nearly 2 weeks stuck with this app.
Note: The same automation is working perfectly when i install my windows application(code written in windows application) in Server machine.
Thank you.
Ashok