Hi,
I have a winform application which I have developed using c# .Net 2. This simply deletes a text file and creates a new empty file!
This works fine on the local machine but as soon as I place this on the network and try and run it from that location, it gives me a Application attempted to perform an operation not allowed by security policy.
*************** *************** *************** *********
System.Security .SecurityExcept ion: That assembly does not allow partially trusted callers.
at System.Security .CodeAccessSecu rityEngine.Thro wSecurityExcept ion(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHa ndle rmh, SecurityAction action, Object demand, IPermission permThatFailed)
*************** *************** *************** *********
Can someone please help what to do as searching on the internet only yields solution for web .net applications and nothing for windows form on network!
I have a winform application which I have developed using c# .Net 2. This simply deletes a text file and creates a new empty file!
This works fine on the local machine but as soon as I place this on the network and try and run it from that location, it gives me a Application attempted to perform an operation not allowed by security policy.
*************** *************** *************** *********
System.Security .SecurityExcept ion: That assembly does not allow partially trusted callers.
at System.Security .CodeAccessSecu rityEngine.Thro wSecurityExcept ion(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHa ndle rmh, SecurityAction action, Object demand, IPermission permThatFailed)
*************** *************** *************** *********
Can someone please help what to do as searching on the internet only yields solution for web .net applications and nothing for windows form on network!
Comment