W
Wanderer
Hi All,
how knows what must be configured on local machine or (and
better) within .net application in order to allow to start
it from network share without SecurityException?
Application works fine on local drive, but system throws
the following exception when I try to launch it from
network.
Unhandled Exception: System.Security.SecurityException:
Request for the permission of type
System.Security.Permissions.S
ecurityPermission, mscorlib, Version=1.0.3300.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
at
System.Security.CodeAccessSecurityEngine.CheckTokenBasedSet
Helper(Boolean ignoreGrants, TokenBasedSet grants, Toke
nBasedSet denied, TokenBasedSet demands)
at
System.Security.CodeAccessSecurityEngine.CheckSetHelper
(PermissionSet grants, PermissionSet denied, PermissionSet
demands)
at System.Environment.Exit(Int32 exitCode)
at ConsoleAppSecurity.Class1.Main(String[] args) in
d:\work\khids\tests\consoleappsecurity\class1.cs:line 19
The state of the failed permission was:
<IPermission
class="System.Security.Permissions.SecurityPermission,
mscorlib, Version=1.0.3300.0, Culture=neutral, Publi
cKeyToken=b77a5c561934e089"
version="1"
Flags="UnmanagedCode"/>
br
Wanderer
how knows what must be configured on local machine or (and
better) within .net application in order to allow to start
it from network share without SecurityException?
Application works fine on local drive, but system throws
the following exception when I try to launch it from
network.
Unhandled Exception: System.Security.SecurityException:
Request for the permission of type
System.Security.Permissions.S
ecurityPermission, mscorlib, Version=1.0.3300.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
at
System.Security.CodeAccessSecurityEngine.CheckTokenBasedSet
Helper(Boolean ignoreGrants, TokenBasedSet grants, Toke
nBasedSet denied, TokenBasedSet demands)
at
System.Security.CodeAccessSecurityEngine.CheckSetHelper
(PermissionSet grants, PermissionSet denied, PermissionSet
demands)
at System.Environment.Exit(Int32 exitCode)
at ConsoleAppSecurity.Class1.Main(String[] args) in
d:\work\khids\tests\consoleappsecurity\class1.cs:line 19
The state of the failed permission was:
<IPermission
class="System.Security.Permissions.SecurityPermission,
mscorlib, Version=1.0.3300.0, Culture=neutral, Publi
cKeyToken=b77a5c561934e089"
version="1"
Flags="UnmanagedCode"/>
br
Wanderer