|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Security ExceptionI developed a c# console application, but when i run this application i
have this result: Exception not handled: Syste.Security.SecurityExceptions: StrongNameIdentityPermission Can you help me?! i have signed my application in this way: sn -s sn.snk and add path in assembly.cs If i turn off the security, with caspol -s off, my application works Danilo Sure!
sn -s is not a valid option. You produce the keypair like this: sn -k mykey.snk and refer to mykey.snk in your app.config/properties -- Show quoteHide quotergds. /Claus Konrad MCSD.NET (C#) "Danilo Rizzo" wrote: > I developed a c# console application, but when i run this application i > have this result: > Exception not handled: Syste.Security.SecurityExceptions: > StrongNameIdentityPermission > > Can you help me?! > > i have signed my application in this way: > sn -s sn.snk > and add path in assembly.cs > > If i turn off the security, with caspol -s off, my application works > > Danilo > Sorry - I meant assemblyInfo.cs; not app.config!
my mistake. -- Show quoteHide quotergds. /Claus Konrad MCSD.NET (C#) "Danilo Rizzo" wrote: > I developed a c# console application, but when i run this application i > have this result: > Exception not handled: Syste.Security.SecurityExceptions: > StrongNameIdentityPermission > > Can you help me?! > > i have signed my application in this way: > sn -s sn.snk > and add path in assembly.cs > > If i turn off the security, with caspol -s off, my application works > > Danilo >
Other interesting topics
accessing emails using owa ... traceable?
Unhandled exception vs handled (security issue) System.String vs SecureString Security problems in .Net web application Kerberos Token Renewal Impersonation testing Help!! InvalidOperationException in GetProcessesByName!! Can I retrieve Unix box OS info using DirectoryEntry Property OS? Is all .NET assembles are vulnerable to decompilation ? Accessing the DeopDownList in the LoginView |
|||||||||||||||||||||||