Aida,
Google is your friend. <g>
'X509Certificate' is a class in the System.Security.Cryptography.X509Certificates, so just add the "using" statement for that namespace:
using System.Security.Cryptography.X509Certificates;
~~Bonnie
>Bonnie:
>
>The code is as follows:
>
>using System;
>using System.Net;
>using System.Security;
>using System.Web;
>
>namespace ClassLibrary1
>{
> public class Class1
> {
> public class MyPolicy : ICertificatePolicy
> {
> bool ICertificatePolicy.CheckValidationResult(ServicePoint
> srvPoint, X509Certificate cert, WebRequest request, int certificateProblem)
> {
> return true;
> }
> }
> }
>}
>
>The error I'm getting is "The type or namespace name 'X509Certificate' could not be found (are you missing using a directive or assembly reference?"
>I tried all system's directives but none get rid of the message and this is my first time using C# and my only hope that this maybe work.
>
>AiR