开发者

Why do I need 'Classic Mode' in ASP.NET MVC in IIS7?

开发者 https://www.devze.com 2023-01-19 02:58 出处:网络
Why do I need \'Classic Mode\' in ASP.NET MVC in IIS7? Integrated Mode provides more features and better performance, so why do I need Classic Mode?

Why do I need 'Classic Mode' in ASP.NET MVC in IIS7?

Integrated Mode provides more features and better performance, so why do I need Classic Mode?

Perhaps I dont understand the differences, please can someone exp开发者_StackOverflowlain?


The pipeline mode is a property of the Application Pool not ASP.NET MVC.

It may be that you have an ASP.NET MVC application but also some legacy Classic ASP code that requires Classic Mode to be able to function properly.

But if your application is pure ASP.NET MVC then yes your should run in Integrated Pipeline mode.


Besides what Kev already mentioned in his answer, it's also about the configuration entries.

You use different web.config elements to configure handlers when you run it in Classic Mode than in Integrated Mode. That may be the case of the application you are trying, but it's certainly no a reason to do it. You can have configurations for both in the web.config, so it would work the same regardless of Classic vs. Integrated.

0

精彩评论

暂无评论...
验证码 换一张
取 消