Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - ASP.NET 2.0 Word interop assembly

 
Thread Tools Search this Thread
Old 02-22-2006, 03:10 PM   #1
Default 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


=?Utf-8?B?RHVzdGluIHZhbiBkZSBTYW5kZQ==?=
  Reply With Quote
Old 02-22-2006, 09:28 PM   #2
Steve C. Orr [MVP, MCSD]
 
Posts: n/a
Default Re: ASP.NET 2.0 Word interop assembly
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" <> wrote in
message news:20EE84B6-D96F-40B9-B33F-...
> 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





Steve C. Orr [MVP, MCSD]
  Reply With Quote
Old 02-24-2006, 12:29 PM   #3
=?Utf-8?B?RHVzdGluIHZhbiBkZSBTYW5kZQ==?=
 
Posts: n/a
Default Re: ASP.NET 2.0 Word interop assembly
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" <> wrote in
> message news:20EE84B6-D96F-40B9-B33F-...
> > 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

>
>
>



=?Utf-8?B?RHVzdGluIHZhbiBkZSBTYW5kZQ==?=
  Reply With Quote
Old 03-16-2006, 12:11 PM   #4
=?Utf-8?B?RHVzdGluIHZhbiBkZSBTYW5kZQ==?=
 
Posts: n/a
Default RE: ASP.NET 2.0 Word interop assembly
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



=?Utf-8?B?RHVzdGluIHZhbiBkZSBTYW5kZQ==?=
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
viewstate MAC failed in asp.net 2.0 while postback the page azraffarveen Software 0 05-12-2009 03:24 PM
.NET 2.0 Web Apps / .NET 3.5 ASP.NET Apps - Differences/Similariti london1919 MCTS 1 12-08-2008 03:16 PM
ASP.NET: Asign Users in Roles(Array.IndexOf(Of String) method) msandlana Software 0 04-25-2008 06:37 AM
ASP.NET 2.0 application does not run in WIN2k3 johnfraj Software 0 04-19-2007 08:27 AM
Engineering Certifications Harsha Raghavan A+ Certification 81 08-10-2004 08:25 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46