Ignore folder in ASP .NET MVC

旧时模样 提交于 2019-12-01 04:03:24

The IgnoreRoute you have provided looks fine. I tested it with Phil Haack's Route Debugger found here It's probably a typo, but did you add this to global.aspx.cs or global.asax.cs

for those on IIS7+ who keep struggling with this issue even with the suggested solution: you also need to wrap system.webServer tag:

<location path="." inheritInChildApplications="false">
  <system.web>
    <!-- ... -->
  </system.web>
</location>

<location path="." inheritInChildApplications="false">
  <system.webServer>
    <!-- ... -->
  </system.webServer>
</location>

Thanks to http://runtingsproper.blogspot.ca/2010/04/solved-breaking-parent-webconfig.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!