Home All Groups Group Topic Archive Search About
Author
2 Nov 2006 1:40 PM
Danilo Rizzo
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

Author
2 Nov 2006 5:55 PM
Claus Konrad [MCSD]
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
--
rgds.
/Claus Konrad
MCSD.NET (C#)


Show quoteHide quote
"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
>
Are all your drivers up to date? click for free checkup

Author
2 Nov 2006 5:56 PM
Claus Konrad [MCSD]
Sorry - I meant assemblyInfo.cs; not app.config!

my mistake.
--
rgds.
/Claus Konrad
MCSD.NET (C#)


Show quoteHide quote
"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
>
Author
2 Nov 2006 6:10 PM
Danilo Rizzo
Sorry - I meant sn -k sn.snk

My mistake :)

Danilo

Bookmark and Share