Using LPRUN from a Windows Service

I have some automation that runs as a Windows Service on a server, and I would like it to be able to run LinqPad scripts through LPRUN.

If I log in to the server using my service account, my LinqPad script works perfectly from the command line.

But if my Windows Service runs the LPRUN executable with the same parameters that work from the command line, the script never starts and LPRUN never returns.

I believe it is because LinqPad.exe is accessing something that requires a Windows session. Since my service doesn't have a session, this prevents it from running.

Has anyone successfully run LPRUN like this, without a Windows session? Is there a workaround? How large of a bribe would be necessary to get LPRUN to work without a session?


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!