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 40: 	ArrayList aRows = new ArrayList();
Line 41:     string strUrl = "http://www.nd.gov/hrms/jobs/announcements.asp"; 
Line 42: 	byte[] reqHTML = webClient.DownloadData(strUrl); 
Line 43: 	UTF8Encoding objUTF8 = new UTF8Encoding(); 
Line 44: 	string strPage = objUTF8.GetString(reqHTML); 

Source File: d:\inetpub\other-sites\www.health.nd.gov\wwwroot\HumanResources\JobPostings.aspx    Line: 42

Stack Trace:


[WebException: The remote server returned an error: (404) Not Found.]
   System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) +298
   System.Net.WebClient.DownloadData(Uri address) +106
   System.Net.WebClient.DownloadData(String address) +32
   ASP.humanresources_jobpostings_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in d:\inetpub\other-sites\www.health.nd.gov\wwwroot\HumanResources\JobPostings.aspx:42
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +270
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +14
   System.Web.UI.Page.Render(HtmlTextWriter writer) +30
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +67
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +101
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +27
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1342


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