ASP.NET Tip: Understanding the caching of data in SOS

The sos that comes with the debugger, in the clr10 directory, has a lot of additional features and speed improvements for .NET 1.x troubleshooting.  One of the main ways it does this is by caching the data that is gathered from !DumpHeap -stat. This is something important to remember if something happens where the command…

3

ASP.NET Tips: Careful Use of Static’s

Not sure how many people realize it, but when you start dealing with multiple users access a system (in this case a web server), you have to be very careful what you store in static’s (global variables).  This is because all the users will have access to this data and so if you create a…

13

Improving Time-Critical Code written in C

Writing web pages is very similar to writing any other type of code.  You have to understand how it is going to be used and where you need to really make things run as quickly as possible. There are a number of tips on this blog already that deal with managed code and ways to…

0

ASP.NET Tip: Keep hidden files hidden

I have seen a few cases of this so I wanted to let everyone know.  If you install the FrontPage Server Extensions (FPSE) on a web server, it will install some configuration files in a directory under your web site called _vti_cnf.  This folder contains a bunch of files that FPSE use to update files…

3

ASP.NET Tip: ASP.NET MSDN Site

Have you checked out the MSDN site for ASP.NET lately?  It is full of useful information.  You can find it at the ASP.NET Developer Center.  My favorite things to check out are the “How Do I” videos.  They can be really helpful and can get you started on a specific topic.  Check them out, “How…

4

ASP.NET Tips: Loading a DLL out of the bin directory

Question A customer has created a web project which references a class library project.  When deployed to the local machine the web/classes all work fine.  When deployed to a ‘shared’ IIS site, the class DLLs exist in the /bin folder, but the web page generates an error: can’t find file “Documents and settings/….” when trying…

8

ASP.NET Tips: Using Process Explorer to help with high CPU

I am not sure how many people are familiar with the great tools that Mark and the Sysinternals folks have created, but this is one that is a must for monitoring the performance of your machine.  It is called Process Explorer.  With it, you can see what is taking up your CPU time in real…

2

ASP.NET and Performance

I wanted to talk about monitoring performance in ASP.NET for a bit.  I have already posted a few postings that talk around this issue, namely: ASP.NET Debugging – High Memory part 5 – Fragmentation ASP.NET Debugging – ASP.NET Tips- How to use DebugDiag to track down But there are some other things to keep in…

2

ASP.NET Tips: What to gather to troubleshoot

So now that I am done with all the individual posts, I thought I would wrap them all together.  So here are all of the posts that I created on gathering information when you are having a problem. Please keep in mind that these are geared towards the type of information you would be sending…

3

ASP.NET Tips: What to gather to troubleshoot – part 6 – Recycle due to memoryLimit

Here is another situation that you may come across and what to do in order to gather information about it. The following steps will configure DebugDiag to automatically capture a memory dump of the ASPNET_WP.exe process recycling when it exceeds the memoryLimit.  This only applies to the ASPNET_WP.exe process, so if using w3wp.exe, this doesn’t…

4