On Tue, Oct 12, 2010 at 8:24 AM, stapes <[email protected]> wrote: > Hi > > I have built a website that writes into a Word Document template. It > works fine on my development machine, but when I move it to the live > server, it crashes with the following error: > > Retrieving the COM class factory for component with CLSID > {000209FF-0000-0000-C000-000000000046} failed due to the following > error: 80070005. > > My aspx.cs page has the following: > using Microsoft.Office; > > In the /Bin folder is the dll file office.dll and interop.word.dll > > In the add reference (using Visual Studio 2005) there is Microsoft > Office 11.0 Object Library and Microsoft Office 12.0 Object Library > and Microsoft Word 11.0 Object library. > > I found a webpage that accurately describes my problem:http:// > www.computerperformance.co.uk/Logon/code/code_80070005.htm#Solution_to_error_80070005_with_COM_component > > I don't understand the answer. ---------------------------------------------------
You are using Word in your application and ASPNET doesn't have rights to run Word. Which is a good thing. You have fees to be paid to M$ to use Word in a server application. There is also the security aspects of having Word run macros on your server. Talk about a nightmare for IT Admin. -- Stephen Russell Sr. Production Systems Programmer CIMSgts 901.246-0159 cell
