ASP.NET MVC thinks my virtual directory is a controller

前端 未结 3 1240
离开以前
离开以前 2020-12-31 17:04

I have a virtual directory under my MVC website in IIS called \"Files\". This directory is at the same level as my Views directory. When I link to a file from my MVC app to

3条回答
  •  长发绾君心
    2020-12-31 17:40

    ASP.Net looks for the directory first and then tries to match a controller, so what you are doing should work. Are you sure the file with that name exists and is accessible?

提交回复
热议问题