避免10 个常见ASP.NET缺陷 使网站平稳运行
本文将讨论:
|
This article uses the following technologies:
本文使用了以下技术: .NET Framework, ASP.NET, Windows Server 2003 |
Contents:本文内容:
1.LoadControl and Output Caching == LoadControl 和输出缓存
2.Sessions and Output Caching == 会话和输出缓存
3.Forms Authentication Ticket Lifetime == Froms身份验证票证生存期
4.View State: The Silent Perf Killer == 视图状态:无声的性能杀手
5.SQL Server Session State: Another Perf Killer == SQL Server会话状态:另一个性能杀手
6.Uncached Roles == 未缓存的角色
7.Profile Property Serialization == 配置文件属性系列化
8.Thread Pool Saturation == 线程池饱和
9.Impersonation and ACL Authorization == 模拟和ACL授权
10.Don’t Just Trust It—Profile Your Database! == 不要完全信赖它--请设置数据库的配置文件!
Conclusion == 结论
One of the reasons ASP.NET is successful is that it lowers the bar for Web developers. You don’t need a Ph.D. in computer science to write ASP.NET code. Many of the ASP.NET people I encounter in my work are self-taught developers who wrote Microsoft® Excel® spreadsheets before they wrote C# or Visual Basic®.Now they’re writing Web applications and, in general, they’re doing a commendable job.
ASP.NET 成功的其中一个原因在于它降低了 Web 开发人员的门槛。即便您不是计算机科学博士也可以编写 ASP.NET 代码。我在工作中遇到的许多 ASP.NET 开发人员都是自学成材的,他们在编写 C# 或 Visual Basic® 之前都在编写 Microsoft® Excel® 电子表格。现在,他们在编写 Web 应用程序,总的来说,他们所做的工作值得表扬。
But with power comes responsibility, and even veteran ASP.NET developers aren’t immune to mistakes. Years of consulting on ASP.NET projects has shown me that certain mistakes have an uncanny predisposition to keep pitfalls occurring. Some of these mistakes affect performance. Others inhibit scalability. Still others cost development teams precious time tracking down bugs and unexpected behavior.
但是与能力随之而来的还有责任,即使是经验丰富的 ASP.NET 开发人员也难免会出错。在多年的 ASP.NET 项目咨询工作中,我发现某些错误特别容易导致缺陷不断发生。其中某些错误会影响性能。其他错误会抑制可伸缩性。有些错误还会使开发团队耗费宝贵的时间来跟踪错误和意外的行为。
Here are 10 of the pitfalls that litter the path to releasing your production ASP.NET applications, and what you can do to avoid them. All of the examples draw from my experiences with real companies building real Web applications, and in some cases I provide background by describing some of the problems that the ASP.NET development team encountered along the way.
下面是会导致 ASP.NET 生产应用程序的发布过程中出现问题的 10 个缺陷以及可避免它们的方法。所有示例均来自我对真实的公司构建真实的 Web 应用程序的亲身体验,在某些情况下,我会通过介绍 ASP.NET 开发团队在开发过程中遇到的一些问题来提供相关的背景。
from:asp学习网/title:避免10 个常见ASP.NET缺陷 使网站平稳运行/ time:2007-5-20 17:41:09
本文主题,1,ASP,NET