Click here to Skip to main content
15,891,529 members
Home / Discussions / Mobile
   

Mobile

 
QuestionHow can I convert a Class to byte[] then back to Class for Windows Mobile? [modified] Pin
Kiotaya10-Jun-10 16:26
Kiotaya10-Jun-10 16:26 
AnswerRe: How can I convert a Class to byte[] then back to Class for Windows Mobile? Pin
Sir Dot Net11-Jun-10 13:00
Sir Dot Net11-Jun-10 13:00 
AnswerRe: How can I convert a Class to byte[] then back to Class for Windows Mobile? Pin
1eyhk120-Aug-10 17:34
1eyhk120-Aug-10 17:34 
QuestionCan not connect to SSL web service from windows mobile. Pin
Chetan Ranpariya2-Jun-10 19:37
Chetan Ranpariya2-Jun-10 19:37 
AnswerRe: Can not connect to SSL web service from windows mobile. Pin
Joel Ivory Johnson4-Jun-10 8:28
professionalJoel Ivory Johnson4-Jun-10 8:28 
GeneralRe: Can not connect to SSL web service from windows mobile. Pin
Chetan Ranpariya5-Jun-10 20:09
Chetan Ranpariya5-Jun-10 20:09 
GeneralRe: Can not connect to SSL web service from windows mobile. Pin
Justin Stolle1-Sep-10 14:41
Justin Stolle1-Sep-10 14:41 
AnswerRe: Can not connect to SSL web service from windows mobile. Pin
Chetan Ranpariya10-Jun-10 0:10
Chetan Ranpariya10-Jun-10 0:10 
Hi friends,

Finally I found the solution of this problem.

I had to create a class which implemented ICertificatePolicy interface as following.

public class AlwaysTrustedCertificatePolicy : ICertificatePolicy
{
     #region ICertificatePolicy Members
     public bool CheckValidationResult(ServicePoint srvPoint, 
             System.Security.Cryptography.X509Certificates.X509Certificate certificate, 
             WebRequest request, 
             int certificateProblem)
     {
            return true;
     }
     #endregion
}

And before calling the first ever method of service I created an instance of this class and assign it to "CertificatePolicy" of "ServicePointManager" class.
ICertificatePolicy certificatePolicy = new new AlwaysTrustedCertificatePolicy();

ServicePointManager.CertificatePolicy = certificatePolicy;

var serviceClient = new ServiceClient();

serviceClient.Login(username, password);


This worked for me very well... but this is I guess work around not the proper solution.

If any body finds the solution please post.
Thanks and Regards,
Chetan Ranpariya

Questionhow to control electrical appliainces from s60 mobiles (python) and serial to blue tooth converter from sparkfun.com Pin
santoshaxl1-Jun-10 17:00
santoshaxl1-Jun-10 17:00 
QuestionDetecting if connected to WiFi or GPRS or USB Pin
AmitDey31-May-10 22:58
AmitDey31-May-10 22:58 
QuestionDebug mode was stopped! Pin
buffering8325-May-10 14:33
buffering8325-May-10 14:33 
QuestionHow can read and access Nokia Mobile Phone? Pin
Le@rner17-May-10 20:50
Le@rner17-May-10 20:50 
AnswerRe: How can read and access Nokia Mobile Phone? Pin
Richard MacCutchan17-May-10 21:51
mveRichard MacCutchan17-May-10 21:51 
QuestionSQL Server n SQL Server CE..... Pin
AmbiguousName13-May-10 8:59
AmbiguousName13-May-10 8:59 
AnswerRe: SQL Server n SQL Server CE..... Pin
PavanPareta17-May-10 20:53
PavanPareta17-May-10 20:53 
QuestionHow can Send SMS by BlackBerrry curve 8520 from the PC? [modified] Pin
Le@rner12-May-10 20:59
Le@rner12-May-10 20:59 
QuestionDevelop 3D app for iPhone / Android / WinMo Pin
Fordfanboi11-May-10 9:59
Fordfanboi11-May-10 9:59 
AnswerRe: Develop 3D app for iPhone / Android / WinMo Pin
Fordfanboi11-May-10 11:06
Fordfanboi11-May-10 11:06 
AnswerRe: Develop 3D app for iPhone / Android / WinMo Pin
Joel Ivory Johnson4-Jun-10 8:30
professionalJoel Ivory Johnson4-Jun-10 8:30 
QuestionGSM 6.10 encoding with WaveForm Audio API (C#) Pin
Vittorio Sozzi11-May-10 6:17
Vittorio Sozzi11-May-10 6:17 
QuestionWhere to Start Pin
εїзεїзεїз7-May-10 10:44
εїзεїзεїз7-May-10 10:44 
AnswerRe: Where to Start Pin
PavanPareta12-May-10 2:06
PavanPareta12-May-10 2:06 
GeneralRe: Where to Start Pin
εїзεїзεїз12-May-10 19:24
εїзεїзεїз12-May-10 19:24 
AnswerRe: Where to Start Pin
Joel Ivory Johnson22-May-10 3:43
professionalJoel Ivory Johnson22-May-10 3:43 
QuestionLooking for advice: Symbian vs J2ME Pin
RadPC5-May-10 5:09
RadPC5-May-10 5:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.