Input validation and another StackOverflow

Here’s another interesting crash problem I worked on a few days ago: the application pool was randomly crashing and the following errors were logged: Event Type:      Error Event Source:   .NET Runtime 2.0 Error Reporting Event Category: None Event ID:          1000 Date:                21/08/2009 Time:                12:23:12 User:                N/A Computer:        <computername> Description: Faulting application w3wp.exe, version 6.0.3790.3959, stamp…

1

Logparser automated within Windbg

The .shell command in Windbg allows to pipe the output of a debugger command to an external process and automatically print its output back inside the debugger window; a useful example is the command FIND, for example if we want to parse the stack for every thread and find every call where the word “isapi”…

1

StackOverflowException and DataBind()

The application pool for this site was getting disabled quite frequently and we found quite a few entries like the following in the event log: Event Type: Error Event Source: W3SVC Event Category: None Event ID: 1002 Date: 19/11/2008 Time: 15:20:23 User: N/A Computer: <computername> Description: Application pool ‘DefaultAppPool’ is being automatically disabled due to…

3

Where’s my dump gone?!?

Have you ever found yourself patiently waiting for a problem to reproduce with your debugger ready, and when it happens you just find there are no signs of your dump anywhere? If you are using adplus you likely had the text logs, but nothing more… In such situations it is possible that the OS is…

2

ViewState validation troubles?

If you work with web sites in a complex/multi server environment you might be familiar with this error and as the error message itself suggest, the first thing to check if the machineKey value which must be the same across all of the involved server. Anyway every now and then it happens that you might…

2

How much garbage to you still have on the managed heap?

When you’re focused on a specific problem, you’re sunk into it and you’re at a dead end, you have to take a step back to see the whole picture and breath again before being able to continue; often discussing with a colleague whom still has a “fresh mind” and doesn’t know anything about the specific…

0

Troubles downloading public symbols?

Imagine you are debugging your dump, are already looking forward for the output of the command you just typed (say a kpn to get the stack of a thread) and you get this message instead: *** ERROR: Symbol file could not be found.  Defaulted to export symbols for mscorwks.dll WARNING: Frame IP not in any…

1

Invalid length for a Base-64 char array

There are various causes for this error, this is one we had some time ago when paginating through a DataGrid (for this case we’re talking about ASP.NET 1.1); the error appeared systematically under a specific user pattern: Invalid length for a Base-64 char array. Description: An unhandled exception occurred during the execution of the current…

6

Visual Studio 2008 crashes in “split view”

“Split view” is one of the new features in Visual Studio 2008 web designer: this is the possibility to have Design View and Source View of your page at the same time (see What’s New in ASP.NET and Web Development, “Visual Web Developer Enhancements” paragraph). A few days ago a customer called in to report…

14

An interesting fusion cache lock: that’s what the GAC is meant for

This has been an interesting case where we had an ASP.NET 2.0 application which under load was completely blocked after a few minutes. Since we were talking about a hang/deadlock (as reported from the customer), the !critlist command (you can find the command within the SieExtPub.dll extension) is a good start: 0:021> !critlist CritSec at…

5