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 85:     {
Line 86:         string mimeType = "application/octet-stream";
Line 87:         using (MemoryStream memoryStream = awsTools.Download(S3_FILE_BUCKET, imageKey, out mimeType))
Line 88:         {
Line 89:             SendResponse(context, mimeType, memoryStream);

Source File: c:\Websites\sycl\root\file.ashx    Line: 87

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.]
   TSAWSTools.S3.HandleError(AmazonS3Exception amazonS3Exception) +12
   TSAWSTools.S3.Download(String awsBucketName, String keyName, String& mimeType) +463
   file.SendResponseS3(HttpContext context, String imageKey) in c:\Websites\sycl\root\file.ashx:87
   file.ProcessRequest(HttpContext context) in c:\Websites\sycl\root\file.ashx:56
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +542
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +75
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +93


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