Cannot use a leading ../ to exit above the top directory

前端 未结 10 878
小蘑菇
小蘑菇 2020-11-30 08:37

I have a asp.net web site with it we have admin area with login page for admin only and all site is allowed for all - i need to ask how to define the right security configur

10条回答
  •  春和景丽
    2020-11-30 08:53

    What this means is that your web page is referring to content which is in the folder one level up from your page, but your page is already in the website's root folder, so the relative path is invalid. Judging by your exception message it looks like an image control is causing the problem.

    You must have something like:

    
    

    But since the page itself is in the root folder of the website, it cannot refer to content one level up, which is what the leading ..\ is doing.

提交回复
热议问题