My .NET application does not work when starting from a network drive, even if the same executable works fine from the local hard drive?
I tried to check "Full Trust" like this:
try { // Demand full trust permissions PermissionSet fullTrust = new PermissionSet( PermissionState.Unrestricted ); fullTrust.Demand(); // Perform normal application logic } catch( SecurityException ) { // Report that permissions were not full trust MessageBox.Show( "This application requires full-trust security permissions to execute." ); }
However, this does not help, and I mean that the application starts and the catch block is never entered. However, the debug build shows that the exception thrown is a SecurityException thrown by InheritanceDemand. Any ideas?
Paul Smith Sep 29 '08 at 14:21 2008-09-29 14:21
source share