Help with Windows Azure role stuck in Initializing/Busy/Stopped state

I have seen a number of issues where the Windows Azure role is stuck when you deploy it and you can’t get it started.  There are a few great posts about this problem at: Windows Azure role stuck in Initializing/Busy/Stopping Another common reason for Windows Azure role to stuck in Initializing/Busy/Stopping One of the problems…


Azure: There is not enough space on the disk

Problem There may be some times where you will see this message when developing an application for Windows Azure.  The message will look like: There is not enough space on the disk. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the…


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 or a web site.  You can check…


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.ForeignKeyReferenceAlreadyHasValueExceptionOperation is not valid due to the current state of the object. This is basically telling you that you have a Relationship between two tables and you are trying to update the link to…


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…


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: System.IndexOutOfRangeException: Index was outside the bounds of the array. at System.Web.UI.WebControls.GridView.LoadControlState(Object savedState) at System.Web.UI.Control.LoadControlStateInternal(Object savedStateObj) at…


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 that they made for this Service Pack is to help alleviate…


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 command, there is a chance that it will…


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 to use the session cache, the following exception is thrown: HttpException (0x80004005): Unable to use session state server because this version of ASP.NET requires session state server version 2.0 or above. This exception…


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 will configure DebugDiag to automatically capture the memory dump when the System.OutOfMemoryException occurs….