我有一个共享的托管网站上运行的应用程序 - 它正在运行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
发布评论