Failure with Excel.Application Call

N

newKev

I have a windows service application that watches a directory for a new file.
When a file is dropped into the directory, the service attempts to create a
new Excel.Application and load the file into a Workbook. When the code:

Dim App as new Excel.Application is called it fails with:

Retrieving the COM class factory for component with CLSID
{00024500-0000-0000-C000-000000000046} failed due to the following error:
80080005.

The exact same code works through my Windows Form test application from the
same project.

I have strong named the assembly, granted full trust to the assembly,
ensured the log on name of the assembly has administrative rights on the box,
and changed the service to run under the Local Security context.

I have also attempted to use late binding - none of these actions have
worked.

I would appreciate any ideas.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top