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 90: 
Line 91: 	SearchResults sr = new SearchResults();
Line 92: 	string srHtml = sr.Generate(m_keyword); 
Line 93: 	srHtml = Server.HtmlDecode(Server.HtmlDecode(srHtml));
Line 94: 

Source File: c:\Websites\SeekingRomance\a\urlrewrite.aspx.cs    Line: 92

Stack Trace:


[WebException: The remote server returned an error: (404) Not Found.]
   System.Net.HttpWebRequest.GetResponse() +1399
   TrafficGen.SearchResults.Scrape(String url) +47
   TrafficGen.SearchResults.FetchAPI(XmlDocument xmlDOMResults, String keyword, Int32 numpages) +82
   TrafficGen.SearchResults.Generate(String keyword, Int32 numPages) +371
   TrafficGen.SearchResults.Generate(String keyword) +7
   ASP.a_urlrewrite_aspx.InitializePage() in c:\Websites\SeekingRomance\a\urlrewrite.aspx.cs:92
   ASP.a_urlrewrite_aspx.Page_Load(Object sender, EventArgs e) in c:\Websites\SeekingRomance\a\urlrewrite.aspx.cs:15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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