Lindsay Archibald Manager • about 10 years ago
Q. Attaching any of the supplied sample XML files and running them against the supplied .xslt file returns an exception
** Q. Attaching any of the supplied sample XML files and running it against the supplied .xslt file returns the following exception:
Attempt by method 'System.Xml.Xsl.XslCompiledTransform.Load(System.Type)' to access field 'System.Xml.Xsl.CompiledQuery.Query.staticData' failed.
Now according to MSDN a potential fix is here: http://msdn.microsoft.com/en-us/library/vstudio/4e52cxk5(v=vs.100).aspx
** A. The draft XSLT file does generate the following error if and when the files are located in a “protected” file system location:
Unsafe attempt to load URL file:///C:/Users/gellis/Desktop/GreenButtonDataStyleSheet.xslt from frame with URL file:///C:/Users/gellis/Desktop/Hydro-One-sample-daily.xml. Domains, protocols and ports must match.
However the style sheet does indeed load and function correctly if the source XML document and referenced xslt file are located in a non-protected area of the file system.
Comments are closed.