[Mono-bugs] [Bug 445991] Error thrown while using ServicePointManager class with Mono 2 .0

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Nov 19 09:35:01 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=445991

User kuanil at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=445991#c2


Anil Kumar <kuanil at novell.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
           Severity|Major                                           |Critical
           Priority|P5 - None                                       |P3 - Medium




--- Comment #2 from Anil Kumar <kuanil at novell.com>  2008-11-19 07:35:00 MST ---
We are building our code on Mono 1.2 and the binary is supposed to be running
on 2.0 .
------------------
But i also tried building my code on Mono 2.0 and running on Mono 2.0, then
also i was hitting same issue as in comment #1:The code i wrote was something
like this : 

   ServicePointManager.ServerCertificateValidationCallback += new 
                  System.Net.Security.RemoteCertificateValidationCallback(
                              ServerCertificateValidationCallback);

and i implemented on static bool function ServerCertificateValidationCallback()
to always return true. 
----------------------------

But the bug is mainly about comment #1 where i use : 
     ServicePointManager.CertificatePolicy = new TrustAllCertificates();

 and then i implemented a class TrustAllCertificates in which
CheckValidationResult() function will always return true.

This builds and works on Mono 1.2 .... But even if i build it on Mono 2.0/1.2 ,
It does not run on Mono 2.0 . It gives the exception as in comment #1. 

We have more than 1 DLL and we are using same code in different DLLs, so does
that can be an issue with Mono 2.0 ? 

Increasing the priority to P3.


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


More information about the mono-bugs mailing list