xslt compilation error
-
Hello people. I'm using something like
TextReader sr = new StreamReader(HttpContext.Current.Server.MapPath("~/foo/" + xslFile));
The problem is that this file includes or imports other xsl files for example (../foo2/bar.xsl or even foobar.xsl) and asp reports that
System.IO.FileNotFoundException: Could not find file 'C:\WINDOWS\system32\bar.xsl'
Any ideas please? Thank you in advance!
-
Hello people. I'm using something like
TextReader sr = new StreamReader(HttpContext.Current.Server.MapPath("~/foo/" + xslFile));
The problem is that this file includes or imports other xsl files for example (../foo2/bar.xsl or even foobar.xsl) and asp reports that
System.IO.FileNotFoundException: Could not find file 'C:\WINDOWS\system32\bar.xsl'
Any ideas please? Thank you in advance!
tasoss wrote:
and asp reports that System.IO.FileNotFoundException: Could not find file 'C:\WINDOWS\system32\bar.xsl' Any ideas please?
What ideas do you need? The message clearly states that it cannot find a particular file, so you need to investigate
either* a) why that file does not exist in the specified location, or
- b) why that file is being referenced in your xslt.
-
tasoss wrote:
and asp reports that System.IO.FileNotFoundException: Could not find file 'C:\WINDOWS\system32\bar.xsl' Any ideas please?
What ideas do you need? The message clearly states that it cannot find a particular file, so you need to investigate
either* a) why that file does not exist in the specified location, or
- b) why that file is being referenced in your xslt.
Do you think that it's normal to search the xsl file inside in the c:\windows\system32 directory? the file is referenced because it has to.But it's referenced like "../foo.xsl" and not inside c:\windows\system32. I have read that .net's default dir is c:\windows\system32,so there's something that i'm missing. BTW thanks for answering!
-
Do you think that it's normal to search the xsl file inside in the c:\windows\system32 directory? the file is referenced because it has to.But it's referenced like "../foo.xsl" and not inside c:\windows\system32. I have read that .net's default dir is c:\windows\system32,so there's something that i'm missing. BTW thanks for answering!
tasoss wrote:
Do you think that it's normal to search the xsl file inside in the c:\windows\system32 directory?
If that's a default search location for these files, then yes.
tasoss wrote:
But it's referenced like "../foo.xsl" and not inside c:\windows\system32.
But the file that could not be found is 'C:\WINDOWS\system32\bar.xsl', which is different. The "../foo.xsl" reference is a file in the directory above the one where the source files are stored and presumably does exist. I still think you need to investigate what I suggested in my previous message, whether this file exists and if not why it is being referenced.