Server Error in '/' Application.

The remote name could not be resolved: 'www.svitidlafgl.cz'

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 name could not be resolved: 'www.svitidlafgl.cz'

Source Error:


Line 241:            if (defaultimgpath.Substring(0, 7).ToLower().CompareTo("http://") != 0)
Line 242:                defaultimgpath = "http://" + defaultimgpath;
Line 243:            str = new MemoryStream(Client.DownloadData(defaultimgpath));
Line 244:
Line 245:           //process.ResizeImage(bmp, XMax, YMax);

Source File: d:\Vhost\store.shop-web.cz\www\app_code\watermark.cs    Line: 243

Stack Trace:


[WebException: The remote name could not be resolved: 'www.svitidlafgl.cz']
   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) in d:\Vhost\store.shop-web.cz\www\app_code\watermark.cs:243
   watermarkimage.ProcessRequest(HttpContext context) in d:\Vhost\store.shop-web.cz\www\watermarkimage.ashx:90
   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