The reason is because of the different security zones that .NET uses. For
instance, a programming running from another website has almost no local
privileges while those running from a local drive are god-like. When you
run from another share, you are running from an Intranet which has less
rights. Most likely you are receiving the error because you are trying to
do something that an Intranet application is not allowed to do be default.
To solve this you will need to change the .NET configuration for each
machine that this application will run from. You will need to run the .NET
Framework Configuration tool and adjust the Runtime Security Policy to give
you assembly more trust in your environment.
"David Lindgren" <da************@hogia.se.REMOVE!> wrote in message
news:eK**************@TK2MSFTNGP11.phx.gbl...
Hello!
When I am trying to run my .NET application from a network drive a
System.Security.SecurityException exception is thrown. Why is that? How do
I prevent it?
Thanks!
/David.