用try catch啊try
{
httpResp =(HttpWebResponse)httpReq.GetResponse();
}catch{
}