开发者

Does ASP.NET MVC perform better under IIS7 versus IIS6?

开发者 https://www.devze.com 2022-12-13 04:57 出处:网络
I\'m running my ASP.NET MVC app on an IIS6 host righ开发者_StackOverflow社区t now, and they\'re not willing to upgrade my server, nor move my site to an IIS7 server - unless I purchase a new account t

I'm running my ASP.NET MVC app on an IIS6 host righ开发者_StackOverflow社区t now, and they're not willing to upgrade my server, nor move my site to an IIS7 server - unless I purchase a new account to transfer to.

Under IIS6 I understand there are a lot of wildcard mappings happening to get the .net framework to process the incoming connections for each type. I'm assuming this incurs quite a bit of overhead...

Does ASP.NET MVC perform better under IIS7? I don't think it's super important for my site just yet, but as it grows I'll need to consider this.

Thanks!


.NET applications (whether ASP.NET (MVC or otherwise), WCF, etc.) should run better on IIS7 because IIS7 was built with .NET in mind.

Please see ASP.NET Integration With IIS 7.0:

IIS 7.0 takes ASP.NET further by integrating the ASP.NET runtime extensibility model with the core server. This allows developers to fully extend the IIS 7.0 server with the richness of ASP.NET 2.0 and the .NET Framework, instead of using the lower level IIS C++ APIs. Existing ASP.NET applications also immediately benefit from tighter integration using existing ASP.NET features like Forms Authentication, Roles, and Output Caching for all content.


I have not benchmarked the performance in the two but my experience says that Asp.net MVC is easier to configure on IIS7 than on IIS6 especially when you are on a shared hosting. The url mapping and stuff works best without complain on IIS7.


I just found this http://forums.iis.net/t/1150694.aspx#1875128 saying that IIS6 is faster.

Any now with .NET 4 MVC can be auto configured to just work.

0

精彩评论

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