D
Diego Rivero
Hi.
I'm writing a web control that inherits from
"System.Windows.Forms.UserControl" and uses SSL protocol to communicate with
the web server. The only way I've found to validate the server certificates
is using the "CertificatePolicy" static property of the class
"ServicePointManager". The problem is that to use that property my code
needs "UnmanagedCode SecurityPermission" and that would be an important
drawback if I want my web control to be used over the Internet from any
client machine.
The questions are:
- Why do I need "UnmanagedCode SecurityPermission" to set that property?
and more important,
- There is any way to avoid the need of it?
Thanks,
Diego Rivero.
I'm writing a web control that inherits from
"System.Windows.Forms.UserControl" and uses SSL protocol to communicate with
the web server. The only way I've found to validate the server certificates
is using the "CertificatePolicy" static property of the class
"ServicePointManager". The problem is that to use that property my code
needs "UnmanagedCode SecurityPermission" and that would be an important
drawback if I want my web control to be used over the Internet from any
client machine.
The questions are:
- Why do I need "UnmanagedCode SecurityPermission" to set that property?
and more important,
- There is any way to avoid the need of it?
Thanks,
Diego Rivero.