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 77:     public void getDDL()
Line 78:     {
Line 79:         string pageName = Path.GetFileNameWithoutExtension(Request.Path);
Line 80: 
Line 81: 

Source File: c:\HostingSpaces\admin\entrepreneurindia.co\wwwroot\Control\searchContol.ascx.cs    Line: 79

Stack Trace:


[ArgumentException: Illegal characters in path.]
   System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional) +14469300
   System.IO.Path.GetFileName(String path) +28
   System.IO.Path.GetFileNameWithoutExtension(String path) +16
   Control_searchContol.getDDL() in c:\HostingSpaces\admin\entrepreneurindia.co\wwwroot\Control\searchContol.ascx.cs:79
   Control_searchContol.Page_Load(Object sender, EventArgs e) in c:\HostingSpaces\admin\entrepreneurindia.co\wwwroot\Control\searchContol.ascx.cs:22
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


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