Open MS Word 2003 document from VS2005- ASP.NET web page- Help nee

R

Ravi

public WordApp()
{
//oWordAppl = new
Microsoft.Office.Interop.Word.ApplicationClass();
}

When I click a button in my aspx file I geet the followign error. I am
trying to open word from server side (Word is also isntalled in windows2003
server)
Retrieving the COM class factory for component with CLSID
{000209FF-0000-0000-C000-000000000046} failed due to the following error:
80080005.
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:
80080005.

Source Error:


Line 31: public WordApp()
Line 32: {
Line 33: oWordAppl = new Word.ApplicationClass();
Line 34: //oWordAppl = new
Microsoft.Office.Interop.Word.ApplicationClass();
Line 35: }


Source File: d:\inetpub\wwwroot\PROBATION_NET\App_Code\WordApp.cs Line: 33

Stack Trace:


[COMException (0x80080005): Retrieving the COM class factory for component
with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following
error: 80080005.]
WordApp..ctor() in d:\inetpub\wwwroot\PROBATION_NET\App_Code\WordApp.cs:33
DrugTest_DrugTest.Button2_Click(Object sender, EventArgs e) in
d:\inetpub\wwwroot\PROBATION_NET\DrugTest\DrugTest.aspx.cs:279
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
+107

System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102
 

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

Members online

Forum statistics

Threads
473,968
Messages
2,570,153
Members
46,699
Latest member
AnneRosen

Latest Threads

Top