Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > .NET Framework 2.0
|
.NET Framework 2.0 For discussion of the Microsoft .NET Framework 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 2.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 27th, 2007, 08:12 AM
Registered User
 
Join Date: Apr 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Sending https:// Request in .Net Compact Framework

Hi All,


I am trying to send an https:// request from my .Net CF application. The code is as follows :

try
{
HttpWebRequest request = ( HttpWebRequest )
WebRequest.Create( https://www.anyServer.com );

request.Method = "GET";

HttpWebResponse webResponse =
( HttpWebResponse )request.GetResponse();
}
catch( WebException e1 )
{
MessageBox.Show( e1.Message );
}


After sending the request im getting an exception that says "trust failure". I know that it is because of the root certificate is not installed on the device root certificate store.

But if I want to validate server sertificate on device, than how can I do this ?
How can I read the certificate infomration sent by server on windows mobile pocketpc device ?

Can you suggess me where im missing something or where i have to do something else ?


Thanks in advance.





Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFileDialog on .NET Compact Framework yukijocelyn C# 2005 0 July 4th, 2008 11:35 PM
Generating reports on .NET compact framework vije Pro VB.NET 2002/2003 1 April 15th, 2008 02:31 AM
How use framework components in compact framework? r_bazghaleh C# 0 February 19th, 2006 05:05 AM
.Net Compact Framework Forum? Rissa Forum and Wrox.com Feedback 0 March 17th, 2004 05:28 PM
Compact Framework on Pocket PC egem VS.NET 2002/2003 2 February 3rd, 2004 03:22 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.