Search code examples
c++comclsid

COM Server failed execution


I have a some dll and exe files. I registred these files and create desired instance. In one case the instance wasn't created. Any other dll and exe leads to the successful result, only this one was a problem. When I last time registred problematic files, instance wasn't create, but if problematic files was unregistred I try registred a files who gave me a succesfull result, but again, instance wasn't create. Code weren't change, same code doesn't create instance anymore and that seems strange to me because same code can create instance before registration problematic files. I try replace CoCreateInstance for CoGetClassObject whith same result. The error is Server execution failed.

I use Visual Studio 2010 and CLSCTX_LOCAL_SERVER flag.

My hypothesis is this strange behaviour is caused by 64bit enviroment and 32bit COM object. I try this workaround but result is the same Server execution failed. Any ideas?

EDIT: I searched for an interface IID which is use for COM object, but in the registry isn't this IID. Is this possible clue for this situation?


Solution

  • Problem solved. Reason was that something delete one .dll file and when I tried registration .exe, registration was unsuccessful because of missing dll.