AppFabric Cache–How to check if a region exists

In an AppFabric Cache you can segregate your cached data into regions. You create a region using the CreateRegion() method of the DataCache object. Working on a recent project I was asked How do I check if a cache exits ? There is no RegionExits() method on the DataCache object. To check if a region…

0

Where is ASP.NET 4.5 …wait Where is .NET 4.5 ?

When .NET 3.5 was released a lot of people wondered why ASP.NET 3.5 wouldn’t show up in IIS. http://blogs.msdn.com/b/vijaysk/archive/2008/03/20/running-asp-net-3-5-on-iis.aspx Well with .NET 4.5 you might be a bit more confused… So first .NET 4.5 will not show up in IIS But now if you check the Microsoft.NET framework folder you will see that you will…

6

.NET 4.5 – Information of Caller Function (Caller Attributes in .NET 4.5)

While debugging code “Who called my function ?” is  a million dollar question. Knowing the origin of your function call is in many cases the first step in debugging any code. Until now a few ways of doing this were to look at the CallStack in visual studio or  a debugger or the most common…

0

ASP.NET Debugger Extension – Manual Install / Uninstall

In case you have problems with the setup files for ASP.NET Debugger Extension you can manually install the module. FILES ADE.dll This is the main module that loads in IIS Location : GAC ADEWOWHelper.exe This is a helper exe that is used in x64 environments to support WOW worker processes Location : system32\inetsrv MdbgCore.dll This…

0

ASP.NET Debugger Extension – Trace Process for Debug Events

With ASP.NET Debugger Extension you can also trace the process for events. This is actually a wrapper around the MdbgEngine (mdbgcore.dll) options to interrupt a process when an event occurs. You can use it to trace exceptions / module loads etc. For example below we are tracing for exceptions. Every time an exceptions occurs you…

0

ASP.NET Debugger Extension – Find Debug Modules

ASP.NET Debugger Extension has an useful feature to find modules that are built in debug mode. You start by selecting a website, ADE then scans all the folders under that website to figure out the modules that are built in debug mode. Debug modules should usually not be deployed on production servers as the code…

2

ASP.NET Debugger Extension – Callstack Viewer

I recently created an ASP.NET Debugger Extension for IIS 7 that you can use to troubleshoot issues that would usually involve taking a memory dump of the process. One of the features in this extension is the ability to get a managed stack trace of all the threads in the worker process that are running…

1

ASP.NET Debugger Extension for IIS 7

Just finished writing an extension for IIS 7 that will provide advanced debugging features for IIS worker processes running managed code. It basically does three things 1. Find Debug Modules This feature will help you scan your website content to spot modules that have been built in debug mode. 2. Callstack Viewer This feature will…

10

Using Themes in ASP.NET loads System.Drawing namespace

Using the System.Drawing namespace is strongly discouraged in ASP.NET as it leads to a lot of performance/runtime problems. Recently one of our customers reported an issue where we were getting GDI+ errors in a  normal ASP.NET application. Exception type: System.Runtime.InteropServices.ExternalException Message: GDI+ is not properly initialized (internal GDI+ error). InnerException: <none> StackTrace (generated):     SP      …

9

The lone System.OutOfMemoryException in your memory dump

I was recently asked … Every time you run !dumpallexceptions ( !dae ) you will find that there is always a System.OutOfMemory exception object that will be listed Number of exceptions of this type:        1 Exception MethodTable: 0482151c Exception object: 182d005c Exception type: System.OutOfMemoryException Message: <none> InnerException: <none> StackTrace (generated): <none> StackTraceString: <none> HResult: 8007000e…

0