Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bypass Certificate
Message
From
11/11/2007 03:39:25
Aida I. Rivera
Air Information Systems
San Juan, Puerto Rico
 
 
To
10/11/2007 12:16:27
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:
01268330
Views:
15
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform