By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,696 Members | 1,512 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,696 IT Pros & Developers. It's quick & easy.

ASP.NET 2.0 Word interop assembly

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.