Thanks for your response. I tried the following it did NOT work.
This is what I tried.
On my box: I have the proxy server specified in my internet options->LAN
settings. "Proxy.mycompany.com:80"
The app runs on my box - No problem.
When I changed the app to specify the "network credentials" - it did NOT
work on my own box.
On the server: No proxy was specified earlier. I was NOT able to access
the internet.
Now I specified the proxy. I am now able to access internet - which
tells me that the proxy settings are working.
Now I put my on the server:
1. with out network credentials - did NOT work.
2. with Network credentials - did NOT work..
Sounds like we are going on the right track...but something else is
missing..
Please help!
Sounds like you are behind proxy server. And most likely proxy is using
NT authentication since you are not prompted for username/password.
check your IE settings, Connection tab.
You will actually need to add folowing code if it's true.
WebProxy pr = new WebProxy(
http://proxyip:proxyport);
pr.Credentials = new NetworkCredential("userid", "pwd", "domain");
request.Proxy = pr;
request.Credentials = new NetworkCredential("userid", "pwd", "domain");
George.
have some methods(signIn()) in MyService.dll, that I use from my
webpage.
SignIn()
{
requestCommand =
(HttpWebRequest)WebRequest.Create(
http://myserver/cwa/MainCommandHandler.ashx);
requestCommand.GetRequestStream() --This call returns me "403
forbidden"
error.
}
Any idea what is causing that?
The same code works on my box. When I move it to the server, it
fails.