Author: Benjamin Perkins

Debugging a hung application with WinDbg

WinDbg Benjamin Perkins

There are many reasons that threads can be blocked causing an application to hang. This is an example of one of those situations. I loaded a memory dump into WinDbg and loaded the PSSCOR2 extension. When I executed !syncblk, I received the following result shown in the following. 0:000> !syncblk Index  SyncBlock  MonitorHeld  Recursion  Owning    […]

Read More →

A global directory for IIS Express

IIS Benjamin Perkins

I know of 3 different Microsoft web server versions that can be used to host and test your web applications. They are: Internet Information Services (IIS) Cassini Web Server IIS Express IIS is the full version with many features and can be enhanced and extended in many, many ways. It can be installed on your […]

Read More →

Troubleshooting an IIS Add Roles and Features error

IIS Benjamin Perkins

It is common to install or uninstall Web Server features. You need these features to execute ASP.NET pages, perform logging, authenticate user requests, etc…. Figure 1 shows a sub-set list of features which you may choose to install. Figure 1, Add Roles and Features list, small example Try walking through the ‘Add Roles and Features’ […]

Read More →

Recreate Event Viewer logs

Benjamin Perkins Windows

If you ever receive “the event log file is corrupted” on Windows 2008 R2, try the following list of actions to fix it. Following these steps result in the recreation of the event logs. Open a command as an Administrator and enter “NET STOP EVENTLOG” as shown in Figure 1. Figure 1, stopping event logging […]

Read More →

NHibernate Serialized startup

NHibernate Benjamin Perkins

In all of my NHibernate implementations I serialize the startup. It saves a noticeable amount of time. We know that without it, NHibernate validates all the mapping files each time we start the program. If we only have 1 or 2 simple files it is not a problem, however, if you have a large implementation, […]

Read More →