-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: Thepelicanbrief2
Message 1 in Discussion

hi group,   i am writing a small piece of code which works fine when I run it from a 
console application, but does not work from a web application.   WebRequest wr;  wr = 
WebRequest.Create(http://someurl);
    
   wr.Proxy = new WebProxy ("212.39.227.150",8080);
   wr.Proxy.Credentials = CredentialCache.DefaultCredentials;    
    
   WebResponse webRes = wr.GetResponse();
   Stream s = webRes.GetResponseStream();   now in the web application i enabled the 
impersonation from web.config.    <identity impersonate="true" /> But it gives me 
error Proxy Authentication required. Also I have enabled Windows Authentication.    
Can anyone explain me why this application is not picking up my nt credentials and via 
the proxy getting me the data?   I also tried programatically switching the context, 
but is not working :(   thanks, tpb
 

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to