Hi,
My application is on .Net CF 2.0 for Pocket Pc 2003 SE devices.
Im trying to access different servers by using https:// requst from my application. For some server it's working fine but for some it throws an Exception. My code is as follows :
try
{
HttpWebRequest request = ( HttpWebRequest )WebRequest.Create( https://www.anyServer.com );
HttpWebResponse response =
( HttpWebResponse )request.GetResponse();
}
catch( WebException e1 )
{
textBoxStatus.Text = e1.Status.ToString();
textBoxStackTrace.Text = e1.StackTrace;
}
Description of Exception is as follows:
Status : Trust Failure
Message : An error message cannot be displayed because an optional
resource assembly containing it cannot be found
Stack Trace :
at System.Net.HttpWebRequest.finishGetResponse()
at System.Net.HttpWebRequest.GetResponse()
at TestSSLCommsConnection.Form1.InitHttpsCommunicatio n1()
at TestSSLCommsConnection.Form1.button1_Click()
at System.Windows.Forms.Control.OnClick()
at System.Windows.Forms.Button.OnClick()
at System.Windows.Forms.ButtonBase.WnProc()
at System.Windows.Forms.Control._InternalWnProc()
at Microsoft.AGL.Forms.EVL.EnterMainLoop()
at System.Windows.Forms.Application.Run()
at TestSSLCommsConnection.Program.Main()
Does anyone has any idea, where exactly im missing anything.
Is this related to any Certificate issues.
Thanks,