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 247:            if (defaultimgpath.Substring(0, 7).ToLower().CompareTo("http://") != 0)
Line 248:                defaultimgpath = "http://" + defaultimgpath;
Line 249:            str = new MemoryStream(Client.DownloadData(defaultimgpath));
Line 250:
Line 251:           //process.ResizeImage(bmp, XMax, YMax);

Source File: d:\Vhost\storeIII.oblibene.cz\www\app_code\watermark.cs    Line: 249

Stack Trace:


[WebException: The remote server returned an error: (404) Not Found.]
   System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) +287
   System.Net.WebClient.DownloadData(Uri address) +106
   System.Net.WebClient.DownloadData(String address) +29
   WaterMark.watermarkbyimage(String watermarkconfigpath, String imagepath, Int32 XMax, Int32 YMax, String ext, String& statMsg, Int32 nowater) in d:\Vhost\storeIII.oblibene.cz\www\app_code\watermark.cs:249
   watermarkimage.ProcessRequest(HttpContext context) in d:\Vhost\storeIII.oblibene.cz\www\watermarkimage.ashx:95
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


Version Information: Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062