Server Error in '/' Application.

Illegal characters in path.

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.ArgumentException: Illegal characters in path.

Source Error:


Line 320:''''''''''''''''''''''''''''''''''''''''''''''''''
Line 321:
Line 322:Dim CN As String = Encoding.ASCII.GetString(wc.DownloadData("/PUB/AMR/CLOSINGNUMBERS.asp?D=" & rptDate)) 
Line 323:'response.write ("/premium/FSLISTDATED.asp?D=" &  cdate(rptDateLong))
Line 324:

Source File: E:\Sites\PremBiz\premium\CNN.aspx    Line: 322

Stack Trace:


[ArgumentException: Illegal characters in path.]
   System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath) +14302637
   System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath) +164
   System.Net.WebClient.GetUri(String path) +269
   System.Net.WebClient.DownloadData(String address) +26
   ASP.premium_cnn_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in E:\Sites\PremBiz\premium\CNN.aspx:322
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +276
   System.Web.UI.Page.Render(HtmlTextWriter writer) +40
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +80
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4239


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