I've been having a ton of trouble with my .NET application. It continues to fail when I try to run my network drive (but when it runs from a local hard drive, it works fine). I tried fixing the full trust like this:
// Demand full trust permissions
PermissionSet fullTrust = new PermissionSet( PermissionState.Unrestricted );
// Perform normal application logic
catch( SecurityException )
// Report that permissions were not full trust
MessageBox.Show( "This application requires full-trust security permissions to execute." );
But this didn't help at all (the application starts up and the catch block is never entered). Does anyone have a clue why this is happening?
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!