N
Nicola Garone
Hi group
I developed a custom control wich use some shell functions, I've added
reference to shell32.dll, defined wrap for some interfacee and declared my
shell32's functions I need. Now it work fine in a test form, and load and
shows in a asp.net form. But when it need to use shell32 functions an
exception of type System.Security.Permissions.FileIOPermission is raised.
I know I have to grant permission to my UserControl, and I'd like to use
strong name for Condition Type. So I've generated a public-private key pair
using the command-line utility sn, and I added following line in
AssembyInfo.vb
<Assembly: AssemblyKeyFile("ClientUI.snk")>
but now I can't compile my project since it says
Impossibile creare l'assembly: L'assembly 'Interop.Shell32' al quale si fa
riferimento non ha un nome sicuro.
that is something like
Can't create assembly. Referenced assembly 'Interop.Shell32' doesn't have a
strong name.
the question is: how to solve sign with a strong name may control?
Thanks
Nicola Garone
I developed a custom control wich use some shell functions, I've added
reference to shell32.dll, defined wrap for some interfacee and declared my
shell32's functions I need. Now it work fine in a test form, and load and
shows in a asp.net form. But when it need to use shell32 functions an
exception of type System.Security.Permissions.FileIOPermission is raised.
I know I have to grant permission to my UserControl, and I'd like to use
strong name for Condition Type. So I've generated a public-private key pair
using the command-line utility sn, and I added following line in
AssembyInfo.vb
<Assembly: AssemblyKeyFile("ClientUI.snk")>
but now I can't compile my project since it says
Impossibile creare l'assembly: L'assembly 'Interop.Shell32' al quale si fa
riferimento non ha un nome sicuro.
that is something like
Can't create assembly. Referenced assembly 'Interop.Shell32' doesn't have a
strong name.
the question is: how to solve sign with a strong name may control?
Thanks
Nicola Garone