Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. xslt compilation error

xslt compilation error

Scheduled Pinned Locked Moved ASP.NET
xmlhelpsysadmintutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tasoss
    wrote on last edited by
    #1

    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!

    L 1 Reply Last reply
    0
    • T tasoss

      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!

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      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.
      T 1 Reply Last reply
      0
      • L Lost User

        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.
        T Offline
        T Offline
        tasoss
        wrote on last edited by
        #3

        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!

        L 1 Reply Last reply
        0
        • T tasoss

          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!

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups