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 255:        'READ CALL THE HTML READER OBJECT AND READ THE FILE CONTENT
Line 256:        'THEN PARS OUT THE ITEMS THAT WE NEED TO SEND TO THE EMS SERVICE
Line 257:        PageHTML.GetHTML(PageReq & "?version=EMS_Excerpt&mode=EMS_Agent.aspx", Request.UserAgent)
Line 258:        PageBody = PageHTML.rHTML
Line 259:        ANNumber = PageHTML.rProductCode

Source File: C:\websites\wwwroot\TaxReductionLetter\EMS_Base\EMS_Agent.aspx    Line: 257

Stack Trace:


[WebException: The remote server returned an error: (404) Not Found.]
   System.Net.HttpWebRequest.GetResponse() +1686
   util_ReadHTML.GetHTML(String fileName, String HostAgent) +292
   ASP.ems_base_ems_agent_aspx.Page_Load(Object sender, EventArgs e) in C:\websites\wwwroot\TaxReductionLetter\EMS_Base\EMS_Agent.aspx:257
   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.4081.0