Server Error in '/' Application.

Invalid URI: The hostname could not be parsed.

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.UriFormatException: Invalid URI: The hostname could not be parsed.

Source Error:


Line 53: 
Line 54:         StringBuilder sb = new StringBuilder();
Line 55:         HttpWebRequest wReq = (HttpWebRequest)WebRequest.Create(url);
Line 56:         HttpWebResponse wRes = (HttpWebResponse)(wReq).GetResponse();
Line 57:         Stream resStream = wRes.GetResponseStream();

Source File: d:\INTERNET\cc.museon.nl\imageproxy.aspx    Line: 55

Stack Trace:


[UriFormatException: Invalid URI: The hostname could not be parsed.]
   System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) +8510617
   System.Net.WebRequest.Create(String requestUriString) +46
   ASP.imageproxy_aspx.Page_Load(Object sender, EventArgs e) in d:\INTERNET\cc.museon.nl\imageproxy.aspx:55
   System.Web.UI.Control.OnLoad(EventArgs e) +108
   System.Web.UI.Control.LoadRecursive() +90
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1533


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