ASP.NET Case Study: Lost session variables and appdomain recycles

Last night I got a question from one of the readers of the blog that went like this:     “We are facing a problem that i cannot understand, every now and than i see that my app domain is recycled (i have a log in the application_end), I check the IIS logs and i…

112

ASP.NET Memory: If your application is in production… then why is debug=true

Statement   “Ensure that the debug=”false” on the <compilation> element in the web.config file of each and every ASP.NET application on the server. The default during development is “true” and it is a common mistake to allow this development time setting to find its way onto production servers during deployment. You don’t need it set…

87

ASP.NET 2.0 Crash case study: Unhandled exceptions

For a long time all my case studies have been on 1.1. it’s time to venture out in 2.0 land and look at what may seem like a 2.0 specific issue.   I say “may seem” because this case study will only directly crash if you are using 2.0, but as you’ll learn later the…

84

.NET Debugging Demos – Information and setup instructions

.NET Debugging Demos This is a series of debugging demos aimed to help you get some hands on experience in debugging the most common types of Hang/performance, memory and crash scenarios in .net applications. The demos are written in ASP.NET which means that you do need IIS and .net framework 2.0 installed on the development…

66

.NET Memory Leak: XmlSerializing your way to a Memory Leak

I hate to give away the resolution in the title of the blog since it takes away a lot of the suspense:) but I can’t figure out a better way to name the blog posts and still keep them nicely searcheable so here we go… This one has come up a number of times, in…

63

.NET Debugging Demos Lab 1: Hang – Review

Earlier this week I published the first .NET Debugging Demos Lab. If you haven’t downloaded and tried it out you can get it here. This is a review of this lab with answers to the questions and comments inline in red. Note: results and thread IDs will vary depending on how fast you click and what…

60

.NET Memory usage – A restaurant analogy

My favourite author Simon Singh is a wiz at analogies. In his book The big bang he explains concepts like the doppler effect and the theory of relativity using analogies with frogs and trains that makes it not only easy to understand but you will remember them forever because of the picture they paint in…

58

How can I make you learn and benefit from my Blog? and how can I learn from you?

Summer is almost over and a new season of heavy work is beginning.  I wanted to take this opportunity to start on a new page and make sure that I’m spending my cycles doing the right things.  I’ve been blogging for almost 3 years now and throughout the blogs life I’ve been blogging pretty much…

58

.NET Debugging Demos Lab 1: Hang

  This is the first in a series of about 10 labs on .NET debugging.  The lab will use a site called BuggyBits, and as the name suggests the bits are extremely buggy. To get started, follow the setup instructions posted here. I have a feeling that these hands-on-labs may generate a lot of questions…

55

Are you aware that you have thrown over 40,000 exceptions in the last 3 hours?

This may seem like a preposterous statement, but unfortunately it’s all too common. In my work I go through a lot of dumps, somewhere in the neighborhood of 5-20 in a day:) Since the information is readily available to me, I usually do a quick check for the number of exceptions that the application has thrown and…

51