tags:

views:

298

answers:

3

Hi,

I have a C# web service that is calling COM objects to access a FileNet imaging system. The service is occasionally encountering the following error when making a call to the FileNet COM objects:

System.Runtime.InteropServices.COMException (0x80040005): Need to run the object to perform this operation (Exception from HRESULT: 0x80040005 (OLE_E_NOTRUNNING))

Any idea on what this means, or how to troubleshoot it? I could find almost nothing when searching with Google, and my experience with COM is very limited. Thanks.

A: 

If the problem is truly intermittent, and sometimes happens on one machine, and sometimes doesn't - you could write your code to trap the error, and have it try again.

If there are machines it never works on, it may be due to some other issue, such as UAC, or the component not being properly installed.

Andy Jacobs
Thanks. Unfortunately, once this error occurs, it keeps re-occuring until I restart the server.
Mike K.
+1  A: 
Ben Von Handorf
Thanks; this is very useful. Not having to restart the server will be a big help.
Mike K.
A: 

Mike were you able to resolve this issue?

testuser
The problem hasn't re-occurred once all the programs were using the same login option: idmLogonOptServerNoUI.
Mike K.