IIS 7 Parent Paths?

Discussion in 'General troubleshooting' started by iqmatics, Apr 11, 2010.

  1. Hello,

    My website is architacted in such a way that there are two applications in the root folder and a third root shared folder to which the two applications read/write files. Each of the two apps is trying to MapPath to "parent folder" for example application /webstore/ is trying to mappath to "/shared/filename.txt" or "../shared/filename.txt". I am getting permissions violation exceptions when trying to do that. I got around this problem by hardcoding physical paths, but then I still could not read or write from /webstore/ to /shared/file.txt due to the same permission violations. From what I read it could be because "parent paths" are turned off but I could be wrong. Any workarounds?

    Thanks,
    Lucas
     
  2. Ray

    Ray

    Parent path should already be enabled by default on all new accounts.

    Whats the exact error message you are getting?

    Have you tried increasing your applications Trust level to either High or Full? By default it is set to Medium.
     

Share This Page