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;


Francis SusaimichaelRank #466 · 5.4K reputationPosted Feb 24, 2015, 11:04 PM EST
Rajveer singhRank #1,510 · 1.1K reputationPosted Feb 24, 2015, 11:15 PM EST
Thanks
Rajveer Singh
Mukesh Kumar TiwariRank #1,774 · 844 reputationPosted Feb 25, 2015, 2:14 AM EST
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 singhRank #1,510 · 1.1K reputationPosted Feb 25, 2015, 4:41 AM EST
thanks
Rajveer singh