help me! ppc WebRequest error?

°

°®ÀÏ»¢ÓÍ

This:

WebRequest request;
WebResponse response;
bool isConnected = false;

try
{
request = WebRequest.Create(targetAddress);

response = request.GetResponse();
System.Windows.Forms.MessageBox.Show(
response.GetResponseStream().ToString());
request.Abort();
response.GetResponseStream().Close();
}
catch(WebException we)
{
string errMsg = we.Message;
isConnected = false;
}
catch(Exception ex)
{
string errMsg = ex.Message;
isConnected = false;
}
finally
{
request = null;
response = null;
}

run at ppc2002 is ok,but ppc2003 throw + we {System.Net.WebException}
System.Net.WebException
errMsg = null;
my windows is win2003,developer:vs2003.net c#?

help??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top