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 74:         webclient = new System.Net.WebClient();
Line 75:         webclient.Encoding = System.Text.Encoding.UTF8;
Line 76:         string domain = webclient.DownloadString(ipurl).ToLower();
Line 77:         if (domain.IndexOf("google") == -1 && domain.IndexOf("msn.com") == -1 && domain.IndexOf("yahoo.com") == -1 && domain.IndexOf("aol.com") == -1)
Line 78:         {

Source File: d:\inetpub\vhosts\srgcmzn.com\httpdocs\arunt.aspx    Line: 76

Stack Trace:


[WebException: The remote server returned an error: (404) Not Found.]
   System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) +380
   System.Net.WebClient.DownloadString(Uri address) +117
   ASP.arunt_aspx.tz() in d:\inetpub\vhosts\srgcmzn.com\httpdocs\arunt.aspx:76
   ASP.arunt_aspx.Page_Load(Object sender, EventArgs e) in d:\inetpub\vhosts\srgcmzn.com\httpdocs\arunt.aspx:43
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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