.NET usafe code permissions

Mark R

Diamond Member
Oct 9, 1999
8,513
16
81
I've got an App written in .NET, that makes heavy use of unsafe code and pointers (image processing algorithms) that are totally ususable if written in managed code.

I've run into a couple of probs with the code failing to run - e.g. it won't run off a network share (on a Win 2k3 machine) stating insufficient privileges.

What are the default permissions, and is how do you adjust them (e.g. as part of an install)?
 

KB

Diamond Member
Nov 8, 1999
5,406
389
126
Default .Net permissions are very restricted for running off of a network share. You can't read/write files, no unsafe code, no directoryservices access etc. You either need to copy it locally, which will give it full permissions, or you need to change the permissions for network shares. Or added it as a trusted assembly. You can do this using the .Net Framework configuration tool in Administrative tools.