从子文件夹排除ASP.NET

编程入门 行业动态 更新时间:2024-10-21 18:47:48
本文介绍了从子文件夹排除ASP.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有一个共享的托管网站上运行的应用程序 - 它正在运行ASP.NET MVC,但在应用程序中的一个文件夹,/社区/,仅仅是一个独立的留言板应用程序(Invision电源板),运行在PHP。

I have an application that runs on a shared hosting website - it is running ASP.NET MVC, however one of the folders within the application, /community/, is just a standalone message board application (Invision Power Board), running in php.

我把从asp应用程序试图将自己向PHP应用程序的web.config越来越问题。我可以告诉它以某种方式忽略与PHP应用程序的文件夹?

I keep getting problems with the web.config from the asp application trying to apply itself to the php application. Can I tell it to somehow ignore the folder with the php application?

推荐答案

你有没有的global.asax.cs建立一个忽略路径,将匹配该文件夹中什么?如果忽略路线MVC不会试图用它做任何事情。你的web.config权限等仍然是有效的,但你可以从MVC处理豁免。

Do you have an ignore route set up in global.asax.cs that will match anything in that folder? If you ignore the route MVC will not attempt to do anything with it. Your web.config permissions, etc. will still be in force, but you'll be exempt from the MVC handling.

routes.IgnoreRoute("php-app/{*pathInfo}");

更多推荐

从子文件夹排除ASP.NET

本文发布于:2023-11-09 21:08:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1573439.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件夹   从子   NET   ASP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!