Click here to Skip to main content
16,006,475 members
Home / Discussions / C#
   

C#

 
GeneralRe: NullReferenceException Pin
V.5-Oct-07 2:50
professionalV.5-Oct-07 2:50 
GeneralRe: NullReferenceException Pin
greatM5-Oct-07 2:59
greatM5-Oct-07 2:59 
GeneralRe: NullReferenceException Pin
V.5-Oct-07 3:04
professionalV.5-Oct-07 3:04 
GeneralRe: NullReferenceException Pin
greatM5-Oct-07 3:13
greatM5-Oct-07 3:13 
GeneralRe: NullReferenceException Pin
V.5-Oct-07 3:19
professionalV.5-Oct-07 3:19 
AnswerRe: NullReferenceException Pin
Dave Sexton5-Oct-07 2:21
Dave Sexton5-Oct-07 2:21 
GeneralRe: NullReferenceException Pin
greatM5-Oct-07 2:29
greatM5-Oct-07 2:29 
QuestionDo we require to set realm with proxy server credentials? Pin
ghorpade.sangram5-Oct-07 1:40
ghorpade.sangram5-Oct-07 1:40 
Hi,
Currently i am able to hit to the proxy server by supplying username and password after getting 407 response from proxy server. The server is configure with authName =private which i get as Basic realm in the server response. The config file contains:

# Proxy directive - asks for authentication when access a URL through proxy
<proxy *="">
Order deny,allow
Allow from all
AuthType Basic
AuthName "Password Required"
AuthName private
AuthUserFile "C:\Apache2\passwd\passwds"
Require user user
Require user valid-user


And i am setting the credential and getting the resonse from the server as:

Uri proxy_url = new Uri("http://146.122.190.237:8080/");
proxy.Address = proxy_url;
proxy.Credentials = new NetworkCredential("user","pass","private");
httpWRequest.Proxy = proxy;

//get the response. This is where we make the connection to the server
httpWResponse = (HttpWebResponse)httpWRequest.GetResponse();


If i havent supplied "private" it is working fine, but if private is supplied it is again fire 407 "AuthenticationRequired" error.

Can you tell me how to pass this realm value through credential in C#.Net, if at all needed to pass?
Is the domain means the realm ? if yes why it is failing?

Here i am using basic authentication type.


Thanks in advance.


Thanks,
Sangram.


Bend of the road is not end of the road

AnswerRe: Do we require to set realm with proxy server credentials? Pin
ghorpade.sangram11-Oct-07 19:24
ghorpade.sangram11-Oct-07 19:24 
QuestionDateTime converting... Pin
stancrm5-Oct-07 1:20
stancrm5-Oct-07 1:20 
AnswerRe: DateTime converting... Pin
J4amieC5-Oct-07 1:31
J4amieC5-Oct-07 1:31 
AnswerRe: DateTime converting... Pin
Andrei Ungureanu5-Oct-07 1:32
Andrei Ungureanu5-Oct-07 1:32 
Questionsingle exe with multiple users -> Any known issues??? Pin
Charith Jayasundara5-Oct-07 1:19
Charith Jayasundara5-Oct-07 1:19 
AnswerRe: single exe with multiple users -> Any known issues??? Pin
Christian Graus5-Oct-07 1:35
protectorChristian Graus5-Oct-07 1:35 
GeneralRe: single exe with multiple users -> Any known issues??? Pin
Charith Jayasundara7-Oct-07 18:22
Charith Jayasundara7-Oct-07 18:22 
AnswerRe: single exe with multiple users -> Any known issues??? Pin
V.5-Oct-07 2:22
professionalV.5-Oct-07 2:22 
GeneralRe: single exe with multiple users -> Any known issues??? Pin
Charith Jayasundara7-Oct-07 18:22
Charith Jayasundara7-Oct-07 18:22 
GeneralRe: single exe with multiple users -> Any known issues??? Pin
V.7-Oct-07 20:48
professionalV.7-Oct-07 20:48 
AnswerRe: single exe with multiple users -> Any known issues??? Pin
Russell Jones5-Oct-07 2:53
Russell Jones5-Oct-07 2:53 
GeneralRe: single exe with multiple users -> Any known issues??? Pin
Charith Jayasundara7-Oct-07 18:21
Charith Jayasundara7-Oct-07 18:21 
Questionbreak point problem Pin
P_Elza5-Oct-07 0:41
P_Elza5-Oct-07 0:41 
AnswerRe: break point problem Pin
Jacky Yiu5-Oct-07 0:44
Jacky Yiu5-Oct-07 0:44 
AnswerRe: break point problem Pin
Christian Graus5-Oct-07 1:09
protectorChristian Graus5-Oct-07 1:09 
GeneralRe: break point problem Pin
P_Elza5-Oct-07 1:11
P_Elza5-Oct-07 1:11 
QuestionBook Marks Ok Word Document Using C# Pin
Venki565-Oct-07 0:00
Venki565-Oct-07 0:00 

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.