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 177:        List<byte> bytes = new List<byte>();
Line 178:        HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create(url);
Line 179:        WebResponse myResp = myReq.GetResponse();
Line 180:
Line 181:        Stream stream = myResp.GetResponseStream();

Source File: c:\Web\InetPub\DotNet Applications\Dev\PM\controls\ShowImageUE.ashx    Line: 179

Stack Trace:


[WebException: The remote server returned an error: (404) Not Found.]
   System.Net.HttpWebRequest.GetResponse() +1463
   ShowImageTSS.GetBytesFromUrl(String url) in c:\Web\InetPub\DotNet Applications\Dev\PM\controls\ShowImageUE.ashx:179
   ShowImageTSS.ProcessRequest(HttpContext context) in c:\Web\InetPub\DotNet Applications\Dev\PM\controls\ShowImageUE.ashx:47
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +195
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73


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