HI all,
I face this problem during fetch data from other http url by asp.net
here
//HttpWebRequest wb Request=System.Net.HttpVersion.Version10;
XmlDocument xmldoc = new XmlDocument();
xmldoc.Load("https://rtionline.gov.in/webservice/website_display.php?servicecode=sfIMQjFojvyPFNy5y4u4JbrzHY9kOikC3%2F7wv1eUWLU%3D&un=Oe9nk14AhqGUGGSPv%2Fnjcb7epVva7cauUx21oOYROBw%3D&pd=HlOIa%2B%2BDDBa6ncUlpce6ehhIxvrx19iNqAlGx7gLNNYPP9NDjD2qGHUG7MuZjzAiufiiMEVt6hy5legUphkXRw%3D%3D");
XmlElement parentelement = xmldoc.CreateElement("webservice/RTI");
XmlElement sno = xmldoc.CreateElement("sno");
XmlElement requestreg_no = xmldoc.CreateElement("[requestreg_no]");
XmlElement request_category = xmldoc.CreateElement("[request_category]");
XmlElement request = xmldoc.CreateElement("request");
XmlElement request_doc_url = xmldoc.CreateElement("request_doc_url");
XmlElement request_recvd_date = xmldoc.CreateElement("request_recvd_date");
XmlElement request_reply = xmldoc.CreateElement("request_reply");
XmlElement request_reply_doc_url = xmldoc.CreateElement("request_reply_doc_url");
XmlElement appealreg_no = xmldoc.CreateElement("appealreg_no");
XmlElement appeal = xmldoc.CreateElement("appeal");
XmlElement appeal_doc_url = xmldoc.CreateElement("appeal_doc_url");
XmlElement appeal_recvd_date = xmldoc.CreateElement("appeal_recvd_date");
XmlElement appeal_reply = xmldoc.CreateElement("appeal_reply");
XmlElement appeal_reply_doc_url = xmldoc.CreateElement("appeal_reply_doc_url");
parentelement.AppendChild(sno);
parentelement.AppendChild(requestreg_no);
parentelement.AppendChild(request_category);
parentelement.AppendChild(request);
parentelement.AppendChild(request_doc_url);
parentelement.AppendChild(request_recvd_date);
parentelement.AppendChild(request_reply);
parentelement.AppendChild(request_reply_doc_url);
parentelement.AppendChild(appealreg_no);
parentelement.AppendChild(appeal);
parentelement.AppendChild(appeal_doc_url);
parentelement.AppendChild(appeal_recvd_date);
parentelement.AppendChild(appeal_reply);
parentelement.AppendChild(appeal_reply_doc_url);
xmldoc.DocumentElement.AppendChild(parentelement);
xmldoc.Save(Server.MapPath("Sample.xml"));
return xmldoc;

Rajveer singhPosted Feb 25, 2015, 9:41 AM
thanks
Rajveer singh
Mukesh Kumar TiwariPosted Feb 25, 2015, 7:14 AM
If yes then go to the config file and set in minute or hour as per your requirement.
because the default timeout duration is set as 240 seconds.
Rajveer singhPosted Feb 25, 2015, 4:15 AM
Thanks
Rajveer Singh
Francis SusaimichaelPosted Feb 25, 2015, 4:04 AM