Hello,
I am trying to call nxslt.exe using unc path to the executable. Everything works fine using unc to the xslt and the xml documents but unless I use a drive letter to the exe I get the following error:
Error occurred while parsing command line.
System.Security.SecurityException: Request failed. at NXslt.NXsltArgumentsParser.ParseArguments(String[] args, ResourceManager rm) at NXslt.NXslt.Main(String[] args)
to clarify:
c:\nxslt.exe \\share\doc.xml \\share\trans.xslt
works fine but
\\share\nxslt.exe \\share\doc.xml \\share\trans.xslt
fails with the above error. Any ideas?
Thanks
Yep, that's a security problem. nxslt allows to load custom types from external assemblies for XmlResolvers and XSLT extension functions and such a code requires FullTrust security permissions. Also using EXSLT extention functions require FullTrust.
While assemblies run from network share (UNC path) aren't considered trusted by default.
So you need to make nxslt.exe on that UNC path trusted using .NET "Trust an Assembly" wizard, see "HOW TO: Change the Trust Level for a .NET Framework Assembly".
Probably you can instead adjust security settings for Local Intranet Zone to allow all assemblies from intranet to run with FullTrust level.