Register  Login       Search  
Forum  
 
  
 
Forum  Forum     
 
SearchForum Home
  XML Lab Products  nxslt  NXSLT2 returns ...
 NXSLT2 returns System.IO.DirectoryNotFoundException
 
eeidfn
4 posts
Joined
10/11/2006

NXSLT2 returns System.IO.DirectoryNotFoundException
Posted: 20 Oct 06 10:10 AM (United States)

I have these two lines in my Korn Shell script, which executes from a virtual directory of IIS, in addition to some preparation lines and cleanup lines.  Note: $TMP=C:\Program Files\TestApp\cgi-bin\TEMP.3616 in this instance.

"${CGI_DIR}/LogConverter.exe" "${TMP}" > C:/temp/HandleLogs.$$.xml
C:/nxslt-2.0.1/bin/nxslt2.exe C:/temp/HandleLogs.$$.xml C:/temp/TRR_XML_KML.xsl

Why does nxslt2 give me this error message? An error occurred while compiling stylesheet 'file:///C:/temp/TRR_XML_KML.xsl': System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files\TestApp\cgi-bin\TEMP.3616\m70rknvy.tmp'.
[1] + Done(134) ?
  2036 Abort C:/nxslt-2.0.1/bin/nxslt2.exe

I do not give nxslt2 $TMP anywhere, but it still tries to use this.  And why is nxslt2 trying to create a temporary file m70rknvy.tmp?  Is it because my stylesheet has a msxsl:script element.

Thanks,

/Daniel

eeidfn
4 posts
Joined
10/11/2006

Re: NXSLT2 returns System.IO.DirectoryNotFoundException
Posted: 24 Oct 06 9:49 AM (United States)

I found the solution.

Its the variable TMP.  Some library used by nxslt depends on an env variable called TMP.  Since the ksh script is over writing it, its a problem.

Just renaming the TMP variable to something like FILE_PREFIX solves the problem.

/Daniel

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

Re: NXSLT2 returns System.IO.DirectoryNotFoundException
Posted: 20 Jun 07 5:15 AM (Israel)
nxslt itself doesn't use TMP variable, but some .NET classes probably do, e.g. compiler of the msxsl:script section.
Oleg Tkachenko, Microsoft MVP for XML, MCPD
http://www.XmlLab.Net | http://blog.tkachenko.com
  XML Lab Products  nxslt  NXSLT2 returns ...
Forum Home  Search