Browse by Tags

Tagged Content List
  • Blog Post: 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:         ...
  • Blog Post: 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 ...
  • Blog Post: 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...
  • Blog Post: 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 terminating...
  • Blog Post: 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...
  • Blog Post: 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 problem...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: autoConfig=”false” effects

    My post on autoConfig triggered and interesting discussion with my colleague Cenk about which is the real effect of this setting; one of his customers asked what to do if they needed to adjust only one or two values and not all the ones discussed in Contention, poor performance, and deadlocks when you...
  • Blog Post: Switch thread using the ThreadID

    Quick hint for today: how do you switch the thread you’re examining in Windbg ? If you know the thread number you can type the command ~<thread number>s (e.g. ~21s to switch to thread 21). But what about if you only know the ThreadID (which is an hexadecimal value)? For example if you examine the...
  • Blog Post: And when you think there's nothing left to do... you can still debug live

    There are circumstances where taking a dump is not possible or simply not convenient; imagine a situation where you're hunting a nasty exception you don't know where it comes from and you need to follow some complex steps to get there, or when you have dozens of that exception (let's say an Access Violation...
  • Blog Post: aspnet_wp.exe can not be started. Code: 80070003

    This was a Windows 2000 server with ASP.NET 1.1 installed, and for some reason the customer was unable to start his web applications, he was getting "Server Application Unavailable" messages on the client. We found the Application event log full of entries like this one: Event Type:   ...
  • Blog Post: Need to print from a x64 machine? Can you wait 60 seconds?

    I guess some of you might have developed a web application which, among other functionalities, prints some kind of report; and sooner or later you might consider to move the application to a 64 bit machine. At this is what this customer did. They had this ASP.NET application which allows the user to...
  • Blog Post: Don't let IE local cache drive you crazy!

    I stumbled across this issue multiple times during my life of web developer (which begun about 10 years ago), it appeared every now and then to complicate things when I was in the middle of a heavy debugging sessions and doing frequent changes to my pages; I was expecting some kind of results but despite...
  • Blog Post: .NET Runtime 2.0 Error, Event id:5000

    This error message was reported by a customer last week; every day, randomly, his application pools (on two servers in NLB) were restarted during business hours without an apparent reason, and of course users were complaining because of lost sessions etc...; the following entry was added to the Application...
  • Blog Post: Take control over Windbg

    If you're like me and most of my colleagues in Customer Service and Support, you'll probably spend a good deal of time in your debugger, which for me is WinDbg. So, since I'm in love with keyboard shortcuts (a colleague of mine likes kidding me stealing my mouse since I hardly use it, and every now and...
  • Blog Post: Ok, now how do I capture my dump?

    Now we know how it started , some basic information and terminology and why symbols are important , it's now time to capture our first dump. How? When? Using which tool? It depends... From the second post of this series we already know the difference between a hang and a crash dump and depending on the...
  • Blog Post: Why should we care about symbols?

    I already touched this topic a while ago , but since it's an important part of the debugging process (and your debugging techniques may vary a lot, depending if you have or not good symbols for your dump) I though would be a good idea to give some more details. And just to jump start on the topic, here...
  • Blog Post: Something you need to know before start debugging

    It may appear as a contradiction after my previous post , but the first thing to do to start analyzing a memory dump is ask yourself: do I really need a dump?!? Let me explain: when you need to troubleshoot an error there are a number of things to do before really going down the dump path, simply because...
  • Blog Post: New to debugging? How it all begun (and how could begin for you, too...)

    When I joint Microsoft and the EMEA Internet Dev Support Team in late 2004, I soon realized that I had to build a new skillset to have a future in my new role; before that I was a kind of "self made" developer, in the sense that almost everything I learnt I did in "the hard way", buying and readings...
  • Blog Post: Start to play with LogParser

    A few months ago (back at the beginning of March) at the annual offsite meeting my virtual team had in Lisbon, my colleague Doug held an hour session about LogParser and some of the cool features it has. Doug promised to blog about it with more details, so I don't want to steal him an argument (and he...
  • Blog Post: I have an OutOfMemory exception in my dump! Am I leaking memory?

    Well... the short answer is: not necessarily I had this discussion a few days ago with a customer who called CSS for a crash they were having, and since he was also starting to learn some debugging and dump analysis basics, he was interested to have some deeper details about my findings in the crash...
  • Blog Post: Visual Studio debugger conflicts on port 80

    I personally got this problem on my laptop a while ago where IIS and Skype where involved, and even if this time the customer reported two different applications involved (Visual Studio 2005 and Cisco IP Communicator), the symptoms where the same: with Visual Studio 2005 and Cisco IP Communicator running...
Page 1 of 2 (35 items) 12