Hi, I'm trying to run apprentice in a service application in windows 7-64b but I'm running into a problem. When the service tries to start apprentice, it fails with a FileNotFoundException:
Retrieving the COM class factory for component with CLSID {C343ED84-A129-11D3-B799-0060B0F159EF} failed due to the following error: 8007007e.
The service is set to run as 32 bit, but it still fails. It worked with IV2011 and older, but it doesn't work with 2012. Have I overlooked something?
FYI: If I run the service as a normal application, everything works just fine.
Hi joerituijn,
Did you get same solution for this problem?
Thanks & Regards,
Rui
I think the main problem with using Apprentice from a service is Apprentice wasn't written to run in the restricted environments of services. But this is more of a Windows issue than Apprentice issue.
There are ways to do though.
Here's an older article discussing it. Launching an interactive process from Windows Service in Windows Vista and later
This should give you a better starting point. One issue is that with each release of Windows services and security is getting tighter so there are more restrictions, trust issues, and permissions associated with things services can and can't do.
It may be a better option to split your app to a service that does the monitoring you want and a portion that runs from the desktop environment that communicates with the service.