System.Security.SecurityException

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have a very strange problem.

I have an application that needs to get parameters on the command-line.

Real easy you would think.
You create a shortcut to the application and provide the parameters via the
properties.

Now here is the strange thing.
When I run the application through the shortcut I get a
System.Security.SecurityException

An unhandled exception of type 'System.Security.SecurityException' occured
in Unknown Module.
Additional Information: the request failed.


I created another shortcut to the same application in the same folder with
the exact same parameters. So it's identical except the name is different. If
I use the other shortcut the application launches.

Does someone have a clue to figure this one out.

Best regards,
Ike Casteleyn
 
I figured the problem out. There was indeed a difference between the 2
shortcuts.

One was set at c:\share\myprogram.exe
The other at \\mypcname\share\myprogram.exe

So that meant that the exe in second was executed over the network and .net
is more restrictive on this.

Best regards,
Ike
 
Back
Top