G
Guest
Hi there,
I had applied this security permissions in my class library based on fxcop
standards.
Before namespace:
using System.Runtime.InteropServices;
using System.Security.Permissions;
[assembly:IsolatedStorageFilePermission(SecurityAction.RequestMinimum,
UserQuota=1048576)]
[assembly:SecurityPermission(SecurityAction.RequestRefuse,
UnmanagedCode=true)]
[assembly:FileIOPermission(SecurityAction.RequestOptional, Unrestricted=true)]
In AssemblyInfo.cs
[assembly: AssemblyKeyFile("../../snkey.snk")]
But when my windows app try to all the function during run time, it just
fails.
The errors:
An unhandled exception of type 'System.Security.SecurityException' occured
in Tester.exe
Any tips?
Thanks.
I had applied this security permissions in my class library based on fxcop
standards.
Before namespace:
using System.Runtime.InteropServices;
using System.Security.Permissions;
[assembly:IsolatedStorageFilePermission(SecurityAction.RequestMinimum,
UserQuota=1048576)]
[assembly:SecurityPermission(SecurityAction.RequestRefuse,
UnmanagedCode=true)]
[assembly:FileIOPermission(SecurityAction.RequestOptional, Unrestricted=true)]
In AssemblyInfo.cs
[assembly: AssemblyKeyFile("../../snkey.snk")]
But when my windows app try to all the function during run time, it just
fails.
The errors:
An unhandled exception of type 'System.Security.SecurityException' occured
in Tester.exe
Any tips?
Thanks.