Register  Login       Search  
Forum  
 
  
 
Forum  Forum     
 
SearchForum Home
  XML Lab Products  nxslt  UNC paths and n...
 UNC paths and nxslt.exe
 
tstuart
1 posts
Joined
10/31/2005

UNC paths and nxslt.exe
Posted: 31 Oct 05 7:03 AM (United States)

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 r
m)
   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

 

olegt
85 posts
www.xmllab.net
Joined
2/25/2005

Re: UNC paths and nxslt.exe
Posted: 31 Oct 05 11:51 AM (Israel)
Hmmm, that's really weird. I can imagine some problems with EXSLT when running from network share (EXSLT functions being extension functions require full trust in .NET), but how could it fail on NXsltArgumentsParser.ParseArguments really puzzles me. I'll look at it.
Oleg Tkachenko, Microsoft MVP for XML, MCPD
http://www.XmlLab.Net | http://blog.tkachenko.com
olegt
85 posts
www.xmllab.net
Joined
2/25/2005

Re: UNC paths and nxslt.exe
Posted: 01 Nov 05 2:34 AM (Israel)

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.


Oleg Tkachenko, Microsoft MVP for XML, MCPD
http://www.XmlLab.Net | http://blog.tkachenko.com
  XML Lab Products  nxslt  UNC paths and n...
Forum Home  Search