Server Error in '/' Application.

The remote server returned an error: (404) Not Found.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.WebException: The remote server returned an error: (404) Not Found.

Source Error:


Line 35:         
Line 36:         HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create("https://www.apnrts.ap.gov.in/home/Api3/newsinfo_snc_18/" + v);
Line 37:         WebResponse response = request.GetResponse();
Line 38:         Stream stream = response.GetResponseStream();
Line 39:         StreamReader reader = new StreamReader(stream);

Source File: e:\nrts\NewsInfo.aspx.cs    Line: 37

Stack Trace:


[WebException: The remote server returned an error: (404) Not Found.]
   System.Net.HttpWebRequest.GetResponse() +1686
   NewsInfo.getNews(Int32 v) in e:\nrts\NewsInfo.aspx.cs:37
   NewsInfo.Page_Load(Object sender, EventArgs e) in e:\nrts\NewsInfo.aspx.cs:22
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3930.0