AnsweredAssumed Answered

.Net Service instantiating SW object

Question asked by Andrew Maxwell on Jan 5, 2009
Latest reply on Jun 30, 2009 by Jacob Cordingley
Hello everyone,

I'm attempting to use the SW API in a .Net Windows service to convert some files from SLDDRW to TIFF. It seems that the SW activex object cannot be successfully instantiated while no windows user profile is loaded (defeating the purpose of this being a service). The error message I receive is "ActiveX object cannnot be instantiated."

I initially configured the service's installer to employ a role account (local admin, for testing) and that produced the same error.

Thinking that all would be well if the required libraries were available to the service, I exported the SW-related key structure of HKEY_CURRENT_USER and imported it into HKEY_LOCAL_MACHINE. Unfortunately, it didn't work (I then restored the original keys).

I'm running out of options - does anyone have any ideas? I'd really appreciate your suggestions!