你需要重写HttpWebRequest的构造函数
protected HttpWebRequest(SerializationInfo serializationInfo, StreamingContext streamingContext)
而不是声明一个新的public XXXXX()