It's all about the answers!

Ask a question

RRC , C# Catalog Authentication mode Code !


Akshansh Khare (5678) | asked Jan 23 '12, 7:58 a.m.
Hi All,

I am developing a application in c# which will get count of different things from my RRC , I have developed the code for RTC and it seems to work all fine , but when that same code i use for RRC it gives me 401 Authentication error.

For RTC i have used basic authentication.


HttpWebRequest Request = (HttpWebRequest)WebRequest.Create(TxtURL.Text);

Request.Accept = @"application/xml";
Request.Headers.Add("OSLC-Core-Version", "2.0");
Request.Credentials = new NetworkCredential(TxtUserID.Text, TxtPwd.Text);
Request.Timeout = 3600000;


I guess that RRC uses Form authentication and post to URI./j_security_check with the two parameter j_username and j_password.
I tried to do it that way, but no success.

Can you please help me for RRC ?
Some insight about RRC authentication in c# is greatly appreciated.


Akki

11 answers



permanent link
george claud (12811) | answered May 27 '14, 11:27 a.m.
None of these code works ....
Additional information: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.