When I try to run my .NET application from a network disk I get an exception: 'System.Security.SecurityException'. When I copy the application to my local disk, it starts normally. Why could this be?
Printable View
When I try to run my .NET application from a network disk I get an exception: 'System.Security.SecurityException'. When I copy the application to my local disk, it starts normally. Why could this be?
Its a security exception as it says. The framework has its own form of security and to avoid trouble with it by default it wont run assemblies that aren't local or from a trusted site. You need to go into the .NET framework security settings for any computer that has to access the remote assembly and tell it to trust that location then it will work. The .NEt framework security settings are usually in the control panel or admin tools.
:D Thanks, it worked.
Is it possible to alter these security-settings with an msi-installation?