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:                 Response.Redirect(redirectUri.AbsoluteUri) ' redirect to start page 
Line 41:             Else
Line 42:                 If s3FileSystem.IsPublicPage(redirectUri.PathAndQuery.TrimStart("/")) Then
Line 43:                     Response.Redirect(redirectUri.AbsoluteUri) ' public page 
Line 44:                 End If

Source File: C:\inetpub\seven49\S3CmsApi\App_Code\Website403Handler.vb    Line: 42

Stack Trace:


[WebException: The remote server returned an error: (404) Not Found.]
   System.Net.HttpWebRequest.GetResponse() +1751
   Amazon.Runtime.Internal.HttpRequest.GetResponse() +54

[HttpErrorResponseException: The remote server returned an error: (404) Not Found.]
   Amazon.Runtime.Internal.HttpRequest.GetResponse() +247
   Amazon.Runtime.Internal.HttpHandler`1.InvokeSync(IExecutionContext executionContext) +509
   Amazon.Runtime.Internal.RedirectHandler.InvokeSync(IExecutionContext executionContext) +23
   Amazon.Runtime.Internal.Unmarshaller.InvokeSync(IExecutionContext executionContext) +23
   Amazon.S3.Internal.AmazonS3ResponseHandler.InvokeSync(IExecutionContext executionContext) +23
   Amazon.Runtime.Internal.ErrorHandler.InvokeSync(IExecutionContext executionContext) +36

[AmazonS3Exception: The specified key does not exist.]
   Amazon.Runtime.Internal.HttpErrorResponseExceptionHandler.HandleExceptionStream(IRequestContext requestContext, IWebResponseData httpErrorResponse, HttpErrorResponseException exception, Stream responseStream) +533
   Amazon.Runtime.Internal.HttpErrorResponseExceptionHandler.HandleException(IExecutionContext executionContext, HttpErrorResponseException exception) +188
   Amazon.Runtime.Internal.ErrorHandler.ProcessException(IExecutionContext executionContext, Exception exception) +384
   Amazon.Runtime.Internal.ErrorHandler.InvokeSync(IExecutionContext executionContext) +112
   Amazon.Runtime.Internal.CallbackHandler.InvokeSync(IExecutionContext executionContext) +34
   Amazon.Runtime.Internal.EndpointDiscoveryHandler.InvokeSync(IExecutionContext executionContext) +196
   Amazon.Runtime.Internal.RetryHandler.InvokeSync(IExecutionContext executionContext) +334
   Amazon.Runtime.Internal.CallbackHandler.InvokeSync(IExecutionContext executionContext) +34
   Amazon.Runtime.Internal.CallbackHandler.InvokeSync(IExecutionContext executionContext) +34
   Amazon.S3.Internal.AmazonS3ExceptionHandler.InvokeSync(IExecutionContext executionContext) +90
   Amazon.Runtime.Internal.ErrorCallbackHandler.InvokeSync(IExecutionContext executionContext) +81
   Amazon.Runtime.Internal.MetricsHandler.InvokeSync(IExecutionContext executionContext) +178
   Amazon.Runtime.Internal.RuntimePipeline.InvokeSync(IExecutionContext executionContext) +45
   Amazon.Runtime.AmazonServiceClient.Invoke(AmazonWebServiceRequest request, InvokeOptionsBase options) +305
   Seven49.AWS.S3.S3FileSystem.GetACLList(String fileName) +223
   Seven49.AWS.S3.S3FileSystem.IsPublicPage(String fileName) +73
   Website403Handler.Page_Load(Object sender, EventArgs e) in C:\inetpub\seven49\S3CmsApi\App_Code\Website403Handler.vb:42
   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.4700.0