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 172:        List<byte> bytes = new List<byte>();
Line 173:        HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create(url);
Line 174:        WebResponse myResp = myReq.GetResponse();
Line 175:
Line 176:        Stream stream = myResp.GetResponseStream();

Source File: c:\Web\InetPub\DotNet Applications\Dev\ShowImageTSS.ashx    Line: 174

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\ShowImageTSS.ashx:174
   ShowImageTSS.ProcessRequest(HttpContext context) in c:\Web\InetPub\DotNet Applications\Dev\ShowImageTSS.ashx:75
   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