473,808 Members | 2,855 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET 2.0 Word interop assembly

I'm developing a ASP.NET 2.0 web application which exports and imports Word
documents.
The functionality is implemented in a DLL project which is referenced by the
web application.
In the DLL I've added a reference to the COM Microsoft.Word 11 Object
library and set the property Copy Local to true which created an interop
assembly in my output directory.

When I publish the website and add the interop assembly to the bin directory
and deploy it to a win2003 server (without office 2003) the word
export/import functionality generates an error:

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

In other words: Component not registered.

I don't want to install Office 2003 to my server! But how do I implement the
Word export/import functionality using the Interop Assembly and without
installing Office 2003 on the server?

With regards,

Dustin van de Sande
Feb 22 '06 #1
3 6235
To use COM Interop with Word on your server, you must install Word on your
server.
But I (and Microsoft) don't recommend using COM Interop with Office on the
server. It wasn't designed to be used that way.

Here are some tips and suggestions for working with Word (and Excel) the
right way:
http://SteveOrr.net/articles/ExcelExport.aspx
http://SteveOrr.net/articles/ExportPanel.aspx
http://SteveOrr.net/reviews/AsposeWord.aspx
http://SteveOrr.net/reviews/OfficeWriter.aspx
http://msdn.microsoft.com/office/understanding/vsto/

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Dustin van de Sande" <Du************ **@discussions. microsoft.com> wrote in
message news:20******** *************** ***********@mic rosoft.com...
I'm developing a ASP.NET 2.0 web application which exports and imports
Word
documents.
The functionality is implemented in a DLL project which is referenced by
the
web application.
In the DLL I've added a reference to the COM Microsoft.Word 11 Object
library and set the property Copy Local to true which created an interop
assembly in my output directory.

When I publish the website and add the interop assembly to the bin
directory
and deploy it to a win2003 server (without office 2003) the word
export/import functionality generates an error:

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

In other words: Component not registered.

I don't want to install Office 2003 to my server! But how do I implement
the
Word export/import functionality using the Interop Assembly and without
installing Office 2003 on the server?

With regards,

Dustin van de Sande

Feb 22 '06 #2
Thank you for your response Steve.
Indeed you need to install Office or a third party component with ASP 1.1.
But with ASP 2.0 it must be possible to use VSTO to generate the word
document.
Your answer brought me a step further to the solution, but if anyone else
can assist in how using VSTO to do this I would be gratefull.

Dustin van de Sande.

"Steve C. Orr [MVP, MCSD]" wrote:
To use COM Interop with Word on your server, you must install Word on your
server.
But I (and Microsoft) don't recommend using COM Interop with Office on the
server. It wasn't designed to be used that way.

Here are some tips and suggestions for working with Word (and Excel) the
right way:
http://SteveOrr.net/articles/ExcelExport.aspx
http://SteveOrr.net/articles/ExportPanel.aspx
http://SteveOrr.net/reviews/AsposeWord.aspx
http://SteveOrr.net/reviews/OfficeWriter.aspx
http://msdn.microsoft.com/office/understanding/vsto/

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Dustin van de Sande" <Du************ **@discussions. microsoft.com> wrote in
message news:20******** *************** ***********@mic rosoft.com...
I'm developing a ASP.NET 2.0 web application which exports and imports
Word
documents.
The functionality is implemented in a DLL project which is referenced by
the
web application.
In the DLL I've added a reference to the COM Microsoft.Word 11 Object
library and set the property Copy Local to true which created an interop
assembly in my output directory.

When I publish the website and add the interop assembly to the bin
directory
and deploy it to a win2003 server (without office 2003) the word
export/import functionality generates an error:

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

In other words: Component not registered.

I don't want to install Office 2003 to my server! But how do I implement
the
Word export/import functionality using the Interop Assembly and without
installing Office 2003 on the server?

With regards,

Dustin van de Sande


Feb 24 '06 #3
I found a solution!

You can find it at:

http://sandedus.blogspot.com/2006/03...d-and-asp.html

"Dustin van de Sande" wrote:
I'm developing a ASP.NET 2.0 web application which exports and imports Word
documents.
The functionality is implemented in a DLL project which is referenced by the
web application.
In the DLL I've added a reference to the COM Microsoft.Word 11 Object
library and set the property Copy Local to true which created an interop
assembly in my output directory.

When I publish the website and add the interop assembly to the bin directory
and deploy it to a win2003 server (without office 2003) the word
export/import functionality generates an error:

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

In other words: Component not registered.

I don't want to install Office 2003 to my server! But how do I implement the
Word export/import functionality using the Interop Assembly and without
installing Office 2003 on the server?

With regards,

Dustin van de Sande

Mar 16 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
8347
by: AP | last post by:
Hi, I'm trying to use c# to pop up a dialog box when a user attempts to close word to prompt them if they want to exit or cancel (obviously other stuff needs to happen based on their selection but that's the gist of it.) I have everything set up, and it seems to work except that setting Cancel to true and returning from my c# method appears to do nothing. Word still closes. Am I doing something wrong? private void...
2
2625
by: Radek | last post by:
Hi, I have got such problem: in my directory "C:\folder" I have 3 files in MS WORD (having tables, images etc), these are: "1.doc", "2.doc", "3.doc". I want to write an application (C# of course) which will merge the contents of files which I will point ie. 1.doc and 2.doc into one file: "12.doc" I've just tried to find smth in MSDN help, and in google archive of programing groups but still I don't know how to do it:(
7
10967
by: R Reyes | last post by:
Can someone please explain to me why I can't get the MS Word Interop assembly to work in my VS2005 project? I'm trying to manipulate MS Word from my Web Form application and I can't get passed this screen below. Please help, thanks in advance... Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify...
0
1606
by: R Reyes | last post by:
ISSUE (reposted) =========================== Can someone please explain to me why I can't get the MS Word Interop assembly to work in my VS2005 project? For many people, they say they add the reference and it works, however when I add the reference the application can't find it. Not sure why it says the system cannot find the file when it exists in that location? Please help, thanks in advance... GOAL ===========================
1
15963
by: R Reyes | last post by:
ISSUE (reposted) =========================== Can someone please explain to me why I can't get the MS Word Interop assembly to work in my VS2005 project? For many people, they say they add the reference and it works, however when I add the reference the application can't find it. Not sure why it says the system cannot find the file when it exists in that location? Please help, thanks in advance... GOAL ===========================
1
1920
by: live | last post by:
Hi, when i try to open document word for reading and writing with C#, the program stop on this line And the program give me this error : 'DefaultDomain' : chargé
0
2019
by: SergioT | last post by:
hi I m getting an error when I run my application on the server, that error doesn't ocur when I run the application on the development computer the error is: =============================================================================================== Error de servidor en la aplicación '/APPWebApp'. -------------------------------------------------------------------------------- ?
9
48021
by: sajithkahawatta | last post by:
my web page C#.net is work properly in my iis .but when i publish in another server it give errers.i used vs2005 and ms word 2003. but in the server there is no vs2005 or word installed. it has only .net frame work installed.folowing the error, Parser Error Message: Could not load file or assembly 'Microsoft.Office.Interop.Word, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot...
0
2092
by: Luft | last post by:
I'm just starting to work with VSTO and Word 2007 but I've run into a problem when trying to create an add-in. I get the warning: This project references the primary interop assembly for Microsoft Office Word 2007, but this primary interop assembly is not installed. I have installed the interop assembly by running: PrimaryInteropAssembly.exe I also set a project reference to the Microsoft Word 12.0 Object Library but I still get this...
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10628
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10373
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10113
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7651
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6880
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5685
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4331
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3859
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.