J
Joao Maia
I did that with both my assembly and the Microsoft.Web.Services2.dll
and I still get the same message. When I try to evaluate both
assemblies on .NET Configuration, it says that I have unrestricted
permissions, but I still can't get it to work.
One other thing, my code invokes a Win32 dll (cryptui):
[DllImport("cryptui", CharSet=CharSet.Unicode, SetLastError=true)]
internal extern static IntPtr
CryptUIDlgSelectCertificateFromStore(IntPtr hCertStore, IntPtr hwnd,
string pwszTitle, string pwszDisplayString, uint dwDontUseColumn, uint
dwFlags, IntPtr pvReserved);
Can this be the reason it's still not working ? Is there anything more
I need to do ?
The code above is part of a sample I got from the Microsoft WSE
installation, so I'm figuring it should work...
Thanks for your help,
jm
and I still get the same message. When I try to evaluate both
assemblies on .NET Configuration, it says that I have unrestricted
permissions, but I still can't get it to work.
One other thing, my code invokes a Win32 dll (cryptui):
[DllImport("cryptui", CharSet=CharSet.Unicode, SetLastError=true)]
internal extern static IntPtr
CryptUIDlgSelectCertificateFromStore(IntPtr hCertStore, IntPtr hwnd,
string pwszTitle, string pwszDisplayString, uint dwDontUseColumn, uint
dwFlags, IntPtr pvReserved);
Can this be the reason it's still not working ? Is there anything more
I need to do ?
The code above is part of a sample I got from the Microsoft WSE
installation, so I'm figuring it should work...
Thanks for your help,
jm
Dominick said:You may find it more intuitive to use the GUI
Adm. Tools -> .NET Framework Configuration
Runtime Security Policy -> Machine -> All Code
Create new Code group -> use strong name membership condition and assign
full trust.
I looked for a good walkthrough online meanwhile, but couldn't find something...maybe
someone else has a link?
dominick
Ok, after searching for CasPol, I used it on my assembly with theJoao said:[dominick]
You have to manually adjust the CAS Policy on every client to grant
Full Trust to your component - best by basing the policy on the
strong name of your component. You can use mscorcfg.msc or CasPol
for this.
How do I do this ? What is mscorcfg.msc ? What is CasPol ?
Thanks,
jm
-addfulltrust option but it still doesn't work. Oh and my assembly is
strongly named.
My assembly (the user control hosted on IE) uses
Microsoft.Web.Services2.dll assembly from Microsoft WSE, so I ran
CasPol on that assembly as well, but I still get the same error
message.
Is there any way to know what is the assembly that is causing the
problem ?
jm