[Mono-bugs] [Bug 573326] WCF call in MonoTouch fails when BasicHttpSecurityMode is set to TransportWithMessageCredential

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Jan 24 09:04:14 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=573326

http://bugzilla.novell.com/show_bug.cgi?id=573326#c2


--- Comment #2 from Kevin Boucher <kevin.boucher at gmail.com> 2010-01-24 14:04:07 UTC ---
If I then add this code to force excepting the cert:



                class Certify : ICertificatePolicy {

                                    public bool CheckValidationResult
(ServicePoint sp,

                                                                X509Certificate
certificate, WebRequest request, int error)

                                                {

                                                                return true;

                                                } 

                                }



                                static void Main (string[] args)

                                {

                                    ServicePointManager.CertificatePolicy = new
Certify ();



I can get a different error:



Exception in async operation: System.Net.WebException: There was an error on
processing web request: Status code 500(InternalServerError): Internal Server
Error

  at
System.ServiceModel.Channels.HttpRequestChannel+HttpChannelRequestAsyncResult.WaitEnd
() [0x0003b] in
/Developer/MonoTouch/Source/mcs/class/System.ServiceModel/System.ServiceModel.Channels/HttpRequestChannel.cs:385

  at System.ServiceModel.Channels.HttpRequestChannel.EndRequest (IAsyncResult
result) [0x00029] in
/Developer/MonoTouch/Source/mcs/class/System.ServiceModel/System.ServiceModel.Channels/HttpRequestChannel.cs:256

  at System.ServiceModel.Channels.HttpRequestChannel.Request
(System.ServiceModel.Channels.Message message, TimeSpan timeout) [0x00000] in
/Developer/MonoTouch/Source/mcs/class/System.ServiceModel/System.ServiceModel.Channels/HttpRequestChannel.cs:70

  at System.ServiceModel.ClientRuntimeChannel.Request
(System.ServiceModel.Channels.Message msg, TimeSpan timeout) [0x0000b] in
/Developer/MonoTouch/Source/mcs/class/System.ServiceModel/System.ServiceModel/ClientRuntimeChannel.cs:512

  at System.ServiceModel.ClientRuntimeChannel.Request
(System.ServiceModel.Description.OperationDescription od, System.Object[]
parameters) [0x00082] in
/Developer/MonoTouch/Source/mcs/class/System.ServiceModel/System.ServiceModel/ClientRuntimeChannel.cs:480

  at System.ServiceModel.ClientRuntimeChannel.DoProcess
(System.Reflection.MethodBase method, System.String operationName,
System.Object[] parameters) [0x00026] in
/Developer/MonoTouch/Source/mcs/class/System.ServiceModel/System.ServiceModel/ClientRuntimeChannel.cs:439

  at System.ServiceModel.ClientRuntimeChannel.Process
(System.Reflection.MethodBase method, System.String operationName,
System.Object[] parameters) [0x00000] in
/Developer/MonoTouch/Source/mcs/class/System.ServiceModel/System.ServiceModel/ClientRuntimeChannel.cs:425

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list