How to disable ASP.NET MVC url routing
Just would like to know how do I disable URL Rewriting in asp.net MVC. I don't need url rewriting in my application and would like to turn it off. Reason: I am aware that url rewriting uses reflection and would like to save a few cpu cyc开发者_高级运维les by avoiding it. Thanks
If you are concerned about performance then don't be. The routing engine, despite the fact that uses reflection is very optimized. Also if you turn routing off how do you expect your controller actions to be invoked?
Remove the routes set in the Global.ascx
精彩评论