Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Somebody help me i got error as below

CSS
Server Error in '/' Application.

Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154.

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: 80040154.

Source Error:


Line 13: public partial class CS : System.Web.UI.Page
Line 14: {
Line 15:     protected Microsoft.Office.Interop.Word.ApplicationClass objWord = new ApplicationClass();
Line 16:     protected string strPathToUpload;
Line 17:     //Path to upload files "Uploaded"

Source File: c:\inetpub\wwwroot\qhengineerszone.com\CS.aspx.cs    Line: 15
Posted
Comments
[no name] 25-Jun-15 15:16pm    
If you had googled that error you would probably have found out it's because Office is not installed on your server. For a very good reason. Microsoft does not support Office applications used in this manner. You will have to find some way else to do whatever it is that you are trying to do.

You cannot use Office Interop in a either a web application or a service application.
 
Share this answer
 
This error means that MS Word is not installed on the server. Note that server-side automation of Office applications is neither recommended nor supported by Microsoft: Considerations for server-side Automation of Office [^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900