here is how you do it
// callback used to validate the certificate in an SSL conversation
private static bool ValidateRemoteCertificate(
object sender,
X509Certificate certificate,
X509Chain chain,
SslPolicyErrors policyErrors
)
{
if (Convert.ToBoolean(ConfigurationManager.AppSettings["IgnoreSslErrors"]))
{
// allow any old dodgy certificate...
return true;
}
else
{
return policyErrors == SslPolicyErrors.None;
}
}
what u need to do is to create a parameter in the app.config and give it a key
"IgnoreSslError" and set this to true or false up to ur conviniece and here is how you
streetmps_buffered.TrackingWS.Service m_proxy = new streetmps_buffered.TrackingWS.Service();
ServicePointManager.ServerCertificateValidationCallback += new RemoteCertificateValidationCallback(ValidateRemoteCertificate);
m_proxy.WriteDataAsync(m_DriverName, m_CurrentGPSPoint.X.ToString(), m_CurrentGPSPoint.Y.ToString(), (int)SMNavigation.MilesToKilometers(m_CurrentSpeed), DateTime.Now.ToString());
hope it helps others
8 comments:
One day I was surfing web and suddenly I discovered site called www.home-businessreviews.com I discovered how to start my own home business and i was able after all quit my job where i worked one year, now I'm earning 150$/day. I was able to earn such kind of cash because I read some very great work at home based business opportunity. At website named www.home-businessreviews.com
Anyway seems that website owner finally Came across winner online business program which helped him to start his own best home business opportunity, so he finally decided to make website and tell about his own experience about making money online. It seems that he lost so much money before he came across winner home business program which actually work. But which one? see at website below!
[url=http://www.home-businessreviews.com]work at home based business opportunity[/url]
Genial fill someone in on and this fill someone in on helped me alot in my college assignement. Gratefulness you as your information.
Nice fill someone in on and this fill someone in on helped me alot in my college assignement. Thank you for your information.
I really like when people are expressing their opinion and thought. So I like the way you are writing
Coach is a topping American designer of luxury goodies, all the way from handbags coach handbags to jewelry and sunglasses to shoes. The coach features one of the most popular and high quality designer handbags and accessories on the market name. They are distributed through Coach 400 stores and more than 1200 joint U.S. retail. As a result of strong marketplace competition, [url=http://www.discountoncoach.com]coach online store[/url] website, as well as retail merchants are promoting and offering Coach handbags outlet coupons for reduced prices. These coupons are emailed to customers or it can be exploited by visiting the discount coupons offered by the company websites. You can easily find websites offering a Coach Outlet Coupon through the popular search engines. What you need to do is simply type the words "Coach Discounted Coupons" and you will get a list of sites from where you can avail promotional or discounted coupons for the purpose of buying purses and handbags of you desired brand. Some other search terms which can help you to find out a Coach Outlet Coupon include "coach shoes discount", "coach coupon codes", "coach promo codes", "coach discount handbags", "coach promotional codes", "coach purses discount", "coach bags discount", and "coach bag coupons".
To shop for fashionable [url=http://www.discountoncoach.com/coach/leather-bags]Coach Leather Bags[/url], visit [url=http://www.discountoncoach.com/coach/handbags]Coach Handbags[/url] Online Store. We give you best in the world and that too at very high discounted rate.
Hi,
I am new here..First post to just say hi to all community.
Thanks
I want to thank the blogger very much not only for this post but also for his all previous efforts. I found www.arcgisserverblog.com to be greatly interesting. I will be coming back to www.arcgisserverblog.com for more information.
Nice post and this mail helped me alot in my college assignement. Thank you as your information.
Post a Comment