Browse by Tags

Logging modules for ASP.NET (MVC) and also for Windows Azure
I was just reading through Scott Hanselman’s post about ELMAH and this sounds like a great idea.  Getting a easy to consume report of all of your exceptions is a wonderful thing, especially when you add in that you can get it as an RSS feed, an email Read More...
Linq exception
If you have done much programming with Linq and using the relationships between tables, you may come across the following exception: System.Data.Linq.ForeignKeyReferenceAlreadyHasValueException Operation is not valid due to the current state of the object. Read More...
Posted 25 February 09 10:44 by Tom | 1 Comments   
Filed under , ,
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 Read More...
System.IndexOutOfRangeException on a webfarm
Here is another issue that a customer had that I thought would be helpful to others. Problem The customer said they are getting Exception type: System.IndexOutOfRangeException every minute or so when accessing their web site.  The error looks like: Read More...
Posted 13 August 08 06:00 by Tom | 6 Comments   
Filed under , , ,
Update for viewstate issues
So a while ago I posted about how to fix the Validation of viewstate MAC failed error .  There is some really exciting news that is coming with Visual Studio 2008 Service Pack 1 and .NET Framework 3.5 Service Pack 1.  One of the improvements Read More...
ASP.NET Tips: DumpAllExceptions output changes
The first time you run !DumpAllExceptions you will see it print out one full exception for each type of exception that is in the dump. This will include the message and the callstack of the exception. For example: Any time after that, if you run the same Read More...
Posted 23 July 08 06:00 by Tom | 1 Comments   
Filed under , , , ,
Unable to use Session State Server
Issue ASP.NET site running under .NET 2.0 has the following setting in web.config: <sessionState mode="StateServer" stateNetworkTimeout="10" cookieless="false" timeout="30"/> When the application attempts Read More...
Posted 14 July 08 06:00 by Tom | 4 Comments   
Filed under , , ,
ASP.NET Tips: What to gather to troubleshoot - part 5 - OutOfMemoryException
So we already talked about what to gather when you are experiencing high memory .  But what if you are actually getting a System.OutOfMemoryException?  Here is how you capture a dump at the time you are running out of memory. The following steps Read More...
HOWTO: Capture a dump on a specific managed exception
So often times, we get an exception of interest, either we see it in the Event Log or we see it in a dump and we want to get a dump at the time of the exception to see what was happening. So how do we go about doing that? Well, the answer is, there are Read More...

Search

This Blog

Page view tracker