Error from .net exe [Retrieving the COM class factory for component with CLSID]

M

mihironline

We have a scheduled job, which runs at every 5 min.



As first step of this job, we are executing a stored proc. Inside
stored proc, we have following line of code

insert #exeResult EXEC master..xp_cmdshell @cmd -- where @cmd is an exe
[I have checked the path and it's valid]



While this is executed, we have following error message logged in
errorlog.

Retrieving the COM class factory for component with CLSID
{00024500-0000-0000-C000-000000000046} failed due to the following
error: 80070005. at ESGVerifyImport.VerifyImport.ImportAudit()



00024500-0000-0000-C000-000000000046 is class id for Microsoft Excel
component and we are instantiating excel component in code, where it
fails.



However, if I double click on .exe file, it's executed successfully
without any error.



When stored proc is executed from the job, it runs under the user
account, which is administrator.



Any clue? Any help? Badly needed.
 

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

Members online

No members online now.

Forum statistics

Threads
473,968
Messages
2,570,153
Members
46,699
Latest member
AnneRosen

Latest Threads

Top