OK. Today I learned about impersonation. Not Mike Yarwood. Added this
line to web.config:
<identity impersonate="true" userName="blah/blahblah"
password="blahblah"/>
Moved past the error I had yesterday, and got a new one. That's
progress!
Here is todays error:
Unable to cast COM object of type 'Word.ApplicationClass' to interface
type 'Word._Application'. This operation failed because the
QueryInterface call on the COM component for the interface with IID
'{00020970-0000-0000-C000-000000000046}' failed due to the following
error: Library not registered. (Exception from HRESULT: 0x8002801D
(TYPE_E_LIBNOTREGISTERED)).
I don't see why we shouldn't use these MS applications. They are there
to be used, and integrate well with the other products. The only
annoying thing is wasting 2 or 3 days because Microsoft are so worried
someone might use a product without paying for it.
Anyway - any ideas on this new error?
On 12 Oct, 14:34, stapes <[email protected]> wrote:
> You don't recommend running word then? What are the alternatives?
> I regularly use Excel and Outlook from web applications too.
>
> On 12 Oct, 14:30, Stephen Russell <[email protected]> wrote:
>
>
>
> > 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_t...
>
> > > 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- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -