Running executable program with no UI from windows service -


I am running a console application with no UI and generate thumbmail images from PDF files. The compile file works fine for this application, however I need to call this compile file from the Windows Service application, which implements the file system vetor to find out when the new PDF files are uploaded to the directory.

And I am using the suggestion from this link

  Prostestart Infos Info = New ProcessStartInfo (APNAM); Info.UseShellExecute = false; Info.RedirectStandardError = True; Info.RedirectStandardInput = True; Info.RedirectStandardOutput = True; Info.CreateNoWindow = True; Info.ErrorDialog = false; Info.WindowStyle = Process WindowStyle.Hidden; Process process = process Start (notification); If (! Process.HasExited) {LogEvent (process.ProcessName + "is started and called thumbnail app"); } Other {LogEvent (process.ProcessName + "has been terminated"); }  

I can see the procedure to process "pdfThumbnail.exe" but I am getting this error when the application tries to execute.

"System.Exception: Can not generate ActiveX component. Microsoft.VisualBasic.Interaction.CreateObject (String ProgId, String ServerName) (String [] args) on PDFThumbnailCsharp.Main."

But as I said above pdfThumbnail.exe is executed properly when I run the exe file.

Update

This is an error from the monitoring of SysInternals' process

The machine does not allow local activation for default permission setting CLSID {FF76CB60-2E68- 101B-B02E-04021C009402} and APPID NT AUTHORITY \ Local Services SYD (S-1-5-19) COM server application with a local host (using LRPC) is unavailable to the user. This security permission can be modified using component administrative tools as described on this link.

I have changed the ownership of this CLSID with full control to

However I'm still getting the same error.

Any help would be appreciated.

Thanks

This CLSID {FF76CB60-2E68-101B-B02E-04021C009402} My computer is on the registry for Acrobat.Excha.PDDoc. Further investigation with Acrobat on this link revealed that the Acrobat service can not be run.

Unless I have a better viewpoint to create an event that was raised by a Windows Task Scheduler, then what I have done for now is to serve the windows when the new PDF is created and then the console Triggers an app that creates thumbnails.


Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -