ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2017 www.aspforums.com. All rights reserved.Error: The remote server returned an error: (400) Bad Request for fetch and display Rss feeds in ASP.Net<p>Hi <a class="username" rel="vaibhavN"> vaibhavN</a>,</p> <p>Please refer with below code and check</p> <pre class="brush: csharp">protected void Page_Load(object sender, EventArgs e) { GetRSS(); } private void GetRSS() { //Create a WebRequest WebRequest rssReq = WebRequest.Create(&#34;http://www.asp.net/rss/content&#34;); //Set the timeout in Seconds for the WebRequest rssReq.Timeout = 5000; try { //Get the WebResponse WebResponse rep = rssReq.GetResponse(); //Read the Response in a XMLTextReader XmlTextReader xtr = new XmlTextReader(rep.GetResponseStream()); //Create a new DataSet DataSet ds = new DataSet(); //Read the Response into the DataSet ds.ReadXml(xtr); //Bind the Results to the Repeater rssRepeater.DataSource = ds.Tables[2]; rssRepeater.DataBind(); } catch (Exception ex) { throw ex; } }</pre> <p><span style="text-decoration: underline;">VB.Net</span></p> <pre class="brush: vb">Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load GetRSS() End Sub Private Sub GetRSS() &#39;Create a WebRequest Dim rssReq As WebRequest = WebRequest.Create(&#34;http://www.asp.net/rss/content&#34;) &#39;Set the timeout in Seconds for the WebRequest rssReq.Timeout = 5000 Try &#39;Get the WebResponse Dim rep As WebResponse = rssReq.GetResponse() &#39;Read the Response in a XMLTextReader Dim xtr As New XmlTextReader(rep.GetResponseStream()) &#39;Create a new DataSet Dim ds As New DataSet() &#39;Read the Response into the DataSet ds.ReadXml(xtr) &#39;Bind the Results to the Repeater rssRepeater.DataSource = ds.Tables(2) rssRepeater.DataBind() Catch ex As Exception Throw ex End Try End Sub</pre> <p>&nbsp;</p>http://www.aspforums.net/Threads/907400/Error-The-remote-server-returned-an-error-400-Bad-Request-for-fetch-and-display-Rss-feeds-in-ASPNet/http://www.aspforums.net/Threads/907400/Error-The-remote-server-returned-an-error-400-Bad-Request-for-fetch-and-display-Rss-feeds-in-ASPNet/Mon, 09 Jan 2017 03:13:16 GMTError: The remote server returned an error: (400) Bad Request for fetch and display Rss feeds in ASP.Net<p>thnkx sir it is wkng</p>http://www.aspforums.net/Threads/907400/Error-The-remote-server-returned-an-error-400-Bad-Request-for-fetch-and-display-Rss-feeds-in-ASPNet/http://www.aspforums.net/Threads/907400/Error-The-remote-server-returned-an-error-400-Bad-Request-for-fetch-and-display-Rss-feeds-in-ASPNet/Mon, 09 Jan 2017 09:03:16 GMT