473,396 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 6205
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**********************************@microsof t.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**********************************@microsof t.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
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...
2
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...
7
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...
0
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...
1
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...
1
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
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:...
9
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...
0
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.