Investigating Locks

Consider the following scenario: You have an ASP.NET application which intermittently responds sluggishly. As the problem occurs memory usage is about average, as is CPU usage, but still certain pages respond slower and slower. The machine acts just as if it is under heavy load, but judging from the CPU it isn’t. In fact CPU…

2

Office Automation

A very common scenario that keeps sprouting new heads like a hydra is Office Automation. Let me start by saying that this is not supported. There is a KB-article number 257757 discusses this, and clearly states the following: Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended,…

1

Why doesn’t the GC kick in when the worker process is inactive?

I got the following question in my Getting started with windbg – post and I thought it might be worth posting the replies in a separate article: Hi Johan, about those threads with an ID of XXXX, should they go away after certain amount of idle time like 2 minutes? I am trouble shooting an…

1

What to do about the slow startup of web services

Due to the architecture of web services and web applications they can be quite slow to start. For example on my Windows 2003-box the initial localhost-call to a simple “Hello World!”-web service takes approximately 8 seconds, while the next request is more or less immediate. Why is this? This isn’t news, really. One of the…

6

Using IE6 With Visual Studio 2008

Here’s a little scenario I came across the other day. I’ve forwarded the information to development, so it’s pending further investigation. I still thought it would be a good idea to publish the scenario though. Visual Studio 2008 + FTP = Possible trouble It seems like there might be a bug in Visual Studio 2008 when it…

6

Monitoring Application Pool and Application Restarts

This morning I found the following in my inbox: I had set my web servers running on IIS 6 to recycle if they hit 700 MB (Maximum used Memory).Can I run a report to know how many times per day or week the W3WP got recycled.Any suggestions please.Thanks in anticipation The quick answer to your…

5

Did you know? – Changing ASP.NET Version restarts IIS

Here’s a little something I learned the other day. If you go to the ASP.NET tab and change the ASP.NET version for an application pool this will not only reset the application pool, but the entire IIS. I was a bit surprised at first, but investigating the matter showed that there was a pretty solid architectural…

3

Debugging School

As you may or may not have noticed I’ve started organizing all posts I’ve made regarding debugging training in a separate list on the left hand side of the page. If you’re new to debugging and don’t know where to begin, then at least you know where I’d recommend you to start. I hope you’ll…

0

Using WinDbg – Hunting Exceptions

Prerequisites This post will require some basic knowledge of windbg and the sos extension. For this I recommend looking at the following posts: Getting started with WinDbg – Part I Getting started with WinDbg – Part II For more information on Exceptions in general and why they should be avoided I’d like to recommend this post:…

9

Implicit casting in DataRepeater not working in certain scenarios after SP1

Problem Using the following VB-syntax in a DataRepeater will no longer work after applying .NET Framework 2.0 Service Pack 1 in a medium-trust environment. <asp:Repeater ID=”Repeater1″ runat=”server”>        <ItemTemplate>               <%#Container.DataItem(“data”)%><br />        </ItemTemplate></asp:Repeater>   Resolution Use Eval-method, as recommended in all Microsoft documentation. Using explicit casting would work as well, but you’d have to re-write every page…

2