Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Open MS Word 2003 document from VS2005- ASP.NET web page- Help nee

Reply
Thread Tools

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

 
 
Ravi
Guest
Posts: n/a
 
      01-14-2008
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.RaisePostBackEven t(String eventArgument)
+107

System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5102




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.42
 
Reply With Quote
 
 
 
 
Mark Rae [MVP]
Guest
Posts: n/a
 
      01-14-2008
"Ravi" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

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


Server-side instantiation of Office is extremely risky and unstable, and
neither recommended nor supported by Microsoft:
http://support.microsoft.com/default...US;q257757#kb2
http://support.microsoft.com/default.aspx/kb/288367

Uninstall Word from your webserver and use this instead:
http://www.aspose.com/Products/Aspose.Words/


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nee to know about IOU Vivek Cisco 0 01-16-2008 07:46 AM
Where can I find yEnc and why do I nee it to see some messages? tzornes@insightbb.com Computer Support 1 08-02-2005 03:33 AM
We all nee a little help now and then chris ASP .Net Datagrid Control 0 12-13-2004 11:10 AM
We all nee a little help now and then chris ASP .Net Building Controls 0 12-13-2004 11:10 AM
We all nee a little help now and then chris ASP .Net Web Controls 0 12-13-2004 11:10 AM



Advertisments