c# - Running program in Windows service and get "Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))" -


i create program, launches program through com registry. main routine looks this:

processstartinfo start = new processstartinfo(); start.filename = @"e:\main\debug\executive.exe"; start.windowstyle = processwindowstyle.hidden; start.createnowindow = true; start.arguments = "/run " + arguments[0]; using (process proc = process.start(start))... 

executive.exe launch program looking through registry. if run routine inside vs2013 or through command line, ok. if put in protected override void onstart(string[] args) method of sindows service. class not registered error. suggestion should at? main goal run executive.exe windows service.

we've had luck in past using regsvr32.exe windows command line utility register dlls when ran problem. more info on can found here.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -