Click here to Skip to main content
15,903,385 members
Home / Discussions / C#
   

C#

 
QuestionProgressbar on MDI parent status bar Pin
Member 369523620-Oct-08 3:09
Member 369523620-Oct-08 3:09 
AnswerRe: Progressbar on MDI parent status bar Pin
elektrowolf20-Oct-08 3:10
elektrowolf20-Oct-08 3:10 
GeneralRe: Progressbar on MDI parent status bar Pin
Member 369523620-Oct-08 16:53
Member 369523620-Oct-08 16:53 
AnswerRe: Progressbar on MDI parent status bar Pin
N a v a n e e t h20-Oct-08 3:39
N a v a n e e t h20-Oct-08 3:39 
GeneralRe: Progressbar on MDI parent status bar Pin
Member 369523620-Oct-08 16:54
Member 369523620-Oct-08 16:54 
QuestionReg: IIS Configuration Pin
Praveeneighty20-Oct-08 2:51
Praveeneighty20-Oct-08 2:51 
QuestionMSI Setup - custom action rollback Pin
Mogyi20-Oct-08 2:44
Mogyi20-Oct-08 2:44 
QuestionCan't connect to https page Pin
Mostafa Siraj20-Oct-08 2:41
Mostafa Siraj20-Oct-08 2:41 
Hello,

I'm trying to access an https page, I don't know why .NET doesn't allow it

here is the error I got

"The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel."

and when I try to override ServicePointManager.ServerCertificateValidationCallback with this function

public static bool ValidateServerCertificate(
      object sender,
      X509Certificate certificate,
      X509Chain chain,
      SslPolicyErrors sslPolicyErrors)
    {
        return true;       
    }


I got time out exception.

here is a snippet of my code

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

reqLogin = (HttpWebRequest)WebRequest.Create(url);
reqLogin.Method = "POST";
reqLogin.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3)     Gecko/2008092417 Firefox/3.0.3 (.NET CLR 3.5.30729)";

reqLogin.ContentType = "application/x-www-form-urlencoded";
reqLogin.KeepAlive = true;
reqLogin.CookieContainer = new CookieContainer();
reqLogin.CookieContainer = c;
//reqLogin.CookieContainer.Add(col1);
reqLogin.AllowAutoRedirect = true;
reqLogin.UseDefaultCredentials = true;
reqLogin.Timeout = 5000;

using (StreamWriter sendingData = new
    StreamWriter(reqLogin.GetRequestStream()))
{
    sendingData.Write(postMessage);
    sendingData.Flush();
    sendingData.Close();
}

resLogin = (HttpWebResponse)reqLogin.GetResponse();



I'm sure that you faced that problem before, i'm searching about a solution for this problem from 4 hours and couldn't find any solution, I really hope that you can help me

Thanks in Advance.
Question[Message Deleted] Pin
arnold_w20-Oct-08 2:16
arnold_w20-Oct-08 2:16 
AnswerRe: Please contribute to developing a perfect ComboBox with item tooltips and enable/disable capability Pin
Ashfield20-Oct-08 3:16
Ashfield20-Oct-08 3:16 
General[Message Deleted] Pin
arnold_w20-Oct-08 3:32
arnold_w20-Oct-08 3:32 
GeneralRe: Please contribute to developing a perfect ComboBox with item tooltips and enable/disable capability Pin
Ashfield20-Oct-08 4:48
Ashfield20-Oct-08 4:48 
GeneralRe: Please contribute to developing a perfect ComboBox with item tooltips and enable/disable capability Pin
arnold_w20-Oct-08 5:26
arnold_w20-Oct-08 5:26 
GeneralRe: Please contribute to developing a perfect ComboBox with item tooltips and enable/disable capability Pin
Simon P Stevens20-Oct-08 5:58
Simon P Stevens20-Oct-08 5:58 
GeneralRe: Please contribute to developing a perfect ComboBox with item tooltips and enable/disable capability Pin
arnold_w20-Oct-08 6:27
arnold_w20-Oct-08 6:27 
GeneralRe: Please contribute to developing a perfect ComboBox with item tooltips and enable/disable capability Pin
Ashfield20-Oct-08 9:04
Ashfield20-Oct-08 9:04 
AnswerRe: Please contribute to developing a perfect ComboBox with item tooltips and enable/disable capability Pin
#realJSOP20-Oct-08 4:32
professional#realJSOP20-Oct-08 4:32 
GeneralRe: Please contribute to developing a perfect ComboBox with item tooltips and enable/disable capability Pin
arnold_w20-Oct-08 5:27
arnold_w20-Oct-08 5:27 
GeneralRe: Please contribute to developing a perfect ComboBox with item tooltips and enable/disable capability Pin
Dan Neely20-Oct-08 6:37
Dan Neely20-Oct-08 6:37 
Questionc# winform freeze Pin
arkiboys20-Oct-08 2:13
arkiboys20-Oct-08 2:13 
AnswerRe: c# winform freeze Pin
elektrowolf20-Oct-08 3:12
elektrowolf20-Oct-08 3:12 
GeneralRe: c# winform freeze Pin
Simon P Stevens20-Oct-08 3:17
Simon P Stevens20-Oct-08 3:17 
AnswerRe: c# winform freeze Pin
Ashfield20-Oct-08 3:13
Ashfield20-Oct-08 3:13 
GeneralRe: c# winform freeze Pin
arkiboys20-Oct-08 3:16
arkiboys20-Oct-08 3:16 
AnswerRe: c# winform freeze Pin
Simon P Stevens20-Oct-08 3:14
Simon P Stevens20-Oct-08 3:14 

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.