Link to home
Start Free TrialLog in
Avatar of akulas
akulas

asked on

Urgent: The 'url' property had a malformed - ERRor

The 'url' property had a malformed URL: http://development/Reports/Pages/Folder.aspx?ItemPath=%2fSSRS+-+Reports&ViewMode=List.


[ConfigurationErrorsException: The 'url' property had a malformed URL: http://development/Reports/Pages/Folder.aspx?ItemPath=%2fSSRS+-+Reports&ViewMode=List.]
   System.Web.XmlSiteMapProvider.GetNodeFromXmlNode(XmlNode xmlNode, Queue queue) +3188633
   System.Web.XmlSiteMapProvider.ConvertFromXmlNode(Queue queue) +299
   System.Web.XmlSiteMapProvider.BuildSiteMap() +1161
   System.Web.XmlSiteMapProvider.get_RootNode() +12
   System.Web.UI.WebControls.SiteMapDataSource.GetNodes() +219
   System.Web.UI.WebControls.SiteMapDataSource.GetTreeView(String viewPath) +32
   System.Web.UI.WebControls.SiteMapDataSource.GetHierarchicalView(String viewPath) +29
   System.Web.UI.HierarchicalDataSourceControl.System.Web.UI.IHierarchicalDataSource.GetHierarchicalView(String viewPath) +7
   System.Web.UI.WebControls.HierarchicalDataBoundControl.GetData(String viewPath) +22
   System.Web.UI.WebControls.Menu.DataBindItem(MenuItem item) +42
   System.Web.UI.WebControls.Menu.PerformDataBinding() +117
   System.Web.UI.WebControls.HierarchicalDataBoundControl.PerformSelect() +82
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +70
   System.Web.UI.WebControls.Menu.DataBind() +4
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
   System.Web.UI.WebControls.Menu.EnsureDataBound() +29
   System.Web.UI.WebControls.Menu.OnPreRender(EventArgs e, Boolean registerScript) +21
   System.Web.UI.WebControls.Menu.OnPreRender(EventArgs e) +22
   System.Web.UI.Control.PreRenderRecursiveInternal() +86
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Control.PreRenderRecursiveInternal() +170
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7248
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +213
   System.Web.UI.Page.ProcessRequest() +86

Open in new window

Avatar of MaxOvrdrv2
MaxOvrdrv2

there's probably some weird character in the filename "%2fSRSS+-+Reports" which is causing the framework to spit that back at you... so unless you have an easy way to control the naming of your folders and or files... i'm afraid you'll have to replace the improper characters in the path BEFORE posting it in the URL, and then changing the characters you've replaced BACK to their original state when you try to open the folder in your back-end.

Cheers!
Avatar of akulas

ASKER

Hi Max,

I just have the Folder name as 'SSRS - Reports' .  The url came as encoded once I view it in the browser and I am copying and pasting the url.  

How can we use the special characters in asp.net sitemapnode?

Thanks,
try running the same URL, without the %2f in front and see if that loads...

otherwise, there's a problem with the input field where you're entering the folder path (i.e.: the URL encode sees a space or some other character... i believe %2f is the forward slash... ) maybe you're not concatenating your input string properly? or is the forward slash supposed to be there?

is the "." part of the URL as well?
Also, in your code, if you try to run the sitemap without decoding the path first, it'll crash:

Server.URLDecode(Request.Querystring("ItemPath"))

cheers!
Avatar of akulas

ASKER

I removed %2f , I think that should be there but still not luck.  '.' is not a part of the url
ASKER CERTIFIED SOLUTION
Avatar of MaxOvrdrv2
MaxOvrdrv2

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of akulas

ASKER

I removed the encoding and just put / and space