Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bypass Certificate
Message
From
11/11/2007 12:53:56
 
 
To
11/11/2007 03:39:25
Aida I. Rivera
Air Information Systems
San Juan, Puerto Rico
General information
Forum:
Visual FoxPro
Category:
Web Services
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01268221
Message ID:
01268353
Views:
16
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
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform