View Single Post
  #2 (permalink)  
Old May 16th, 2004, 10:42 PM
okll okll is offline
Registered User
Join Date: May 2004
Location: , , .
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts

I campareed two programs reslults-- one is in localhost with aspnet, one is consol program, same programs give different results, why? the firewall can distinguish them?

1st, I use http://localhost/quickstart/howto/sa...ebrequest.aspx
only those pages in local host can be received.
for those pages in internet: back webexception:
System.Net.WebException: The underlying connection was closed: Unable to connect to the remote server.
0„20„20„2at System.Net.HttpWebRequest.CheckFinalStatus()
0„20„20„2at System.Net.HttpWebRequest.EndGetResponse(IAsyncRes ult asyncResult)
0„20„20„2at System.Net.HttpWebRequest.GetResponse()
0„20„20„2at ASP.webrequest_aspx.btnSubmit_Click(Object sender, EventArgs e)

another is almost same program but run in console mode

I can get right results!

Why?0„20„2these programs are all .NET 's samples, why give different results?

Who can help me?

if I upload webrequest.aspx to my web site on internet, all OK!

Is it possible for my IIS or proxy server or firewall need some special setting?
Reply With Quote