Hello Guys,
I am trying to render an Xml dataset into HTML using XSLT.
When I am loading the XSLT file into transform object to
render it. Here is the code snippet:
<!--
XslTransform transCart = new XslTransform();
transCart.Load( Server.MapPath( "1.xslt"));
showCart.Docume nt = cartFromSession ;
showCart.Transf orm = transCart;
-->
showCart is my xml control and cartFromSession is my
XmlDocument.
When I run the application, I get an error saying that the
The path is too long after being fully qualified. Make
sure path is less than 260 characters.
Stack Trace:
[PathTooLongExce ption: The path is too long after being
fully qualified. Make sure path is less than 260
characters.]
System.IO.Path. nGetFullPathHel per(String path, Char[]
invalidPathChar s, Char[] whitespaceChars , Char
directorySepara tor, Char altDirectorySep arator, Char
volumeSeparator , Boolean fullCheck, String& newPath) +0
System.IO.Path. GetFullPathInte rnal(String path) +165
System.IO.Path. GetFullPath(Str ing path) +19
System.Xml.XmlR esolver.Resolve Uri(Uri baseUri, String
relativeUri) +599
System.Xml.XmlT extReader..ctor (String url, XmlNameTable
nt) +91
System.Xml.XmlD ocument.Load(St ring filename) +52
vivek.checkout. Page_Load(Objec t sender, EventArgs e)
+755
System.Web.UI.C ontrol.OnLoad(E ventArgs e) +67
System.Web.UI.C ontrol.LoadRecu rsive() +35
System.Web.UI.P age.ProcessRequ estMain() +731
Can anyone help me out with this?
Thanks a lot!
Comment