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 105:    WebResponse webResponse;
Line 106:    WebRequest webRequest = HttpWebRequest.Create(Settings.getWebSiteUrl() + strPaginaTarget);
Line 107:    webResponse = webRequest.GetResponse();
Line 108:
Line 109:    Encoding responseEncoding = Encoding.GetEncoding("UTF-8");// .GetEncoding(Response.Charset);

Source File: d:\inetpub\wwwroot\SERVIZI\ComuniWeb.CSC\Modules\Pagine.aspx.cs    Line: 107

Stack Trace:

[WebException: The remote server returned an error: (404) Not Found.]
   System.Net.HttpWebRequest.GetResponse() +1751
   Modules_Pagine.Page_Load(Object sender, EventArgs e) in d:\inetpub\wwwroot\SERVIZI\ComuniWeb.CSC\Modules\Pagine.aspx.cs:107
   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.4330.0