ken pfeiffer wrote:
This works fine in an application, which will run in any directory on
the Win7 target machine. However, when attempting the same code in a
service, I always get the error message "Error creating PTP client,
OLE error 80131534"
COM error codes in the 0x8013xxxx range are indeed from .NET:
Interpreting HRESULTS returned from .NET/CLR: 0x8013XXXX
https://blogs.msdn.microsoft.com/yizhang/2010/12/17/interpreting-hresults-returned-from-netclr-0x8013xxxx/
In this case, error code 0x80131534 is COR_E_TYPEINITIALIZATION
("Uncaught exception during type initialization").
IOW, the type's constructor threw an exception. Now you have to figure
out why. Do you have the DLL's source code? Can you debug the
constructor of the 'Sonultra.PrintToPacs' class type? Maybe it is
trying to access some resource that is not accessible in a service due
to the fact that a service runs in a different user session than a
normal app does.
--
Remy Lebeau (TeamB)
Connect with Us