The below method takes a path pointing to an xml file:
tree.LoadContentFile(path);
I pass a complete path from my local file system (or use Server.MapPath()
), but everytime I keep getting this error:
[Path] is not a valid virtual path.
EDIT: I am using Telerik RadTreeView
.
A sample path is: "C:\inetpub\wwwroot\sitename\OutlookNavigation\tree.xml"
What am I doing wrong?
.NET is expecting a path like
~/folder/file.txt
or
/folder/file.txt
which it will translate into a physical path.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With