![]() |
|
|
|||||||
![]() |
ASP Net - ASP.NET 2.0 Word interop assembly |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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==?= |
|
|
|
|
#2 |
|
Posts: 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" <> 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] |
|
|
|
#3 |
|
Posts: 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" <> 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==?= |
|
|
|
#4 |
|
Posts: 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 =?Utf-8?B?RHVzdGluIHZhbiBkZSBTYW5kZQ==?= |
|
![]() |
| Thread Tools | Search this Thread |
|
|
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 |