Spawning console EXE from Windows Service

From: Lee Gillie (ANTISPAMIFICATION_lee_at_odp.com)
Date: 03/25/04


Date: Thu, 25 Mar 2004 07:38:26 -0800

Of course the VB.NET console EXE runs fine in the IDE. Non .NET EXE run fine spawned by the service. But my VB.NET console EXE
won't run under the service. Service starts under a domain logon, which is an administrator. Messages I get don't tell (me) much...

07:26:52 Unhandled Exception: System.Security.SecurityException: Security error.
07:26:52 at test.Main()
07:26:52 The granted set of the failing assembly was: (long list)

This offers to DEBUG, but it seems to be in EXE startup, before it gets to my first line of code. None of my app console output is
seen. My first Try-Catch in MAIN is never reached.

I would like to know more about the error. How can I diagnose this?