Visual Studio 2010 complaints about ELMAH on a 64-bit machine - fixed

My laptop has quickly become my development machine for smaller projects, especially after I purchased a low-end desktop to host the Subversion repositories.

I recently added ELMAH support to one of my sites, but since I run 64-bit, and have been using the built-in Cassini for quick development, I started getting a message in Visual Studio 2010 saying "ASP.NET runtime error: Could not load file or assembly 'System.Data.SQLite' or one of its dependencies. An attempt was made to load a program with an incorrect format."

While my low-end desktop has Server 2008 R2 installed on it for research and development purposes (thank you MSDN subscription), having a laptop means I won't always have this resource available. So, since Stack Overflow states that this is an issue with Cassini, and I'm running Windows 7 Home Premium, it was time to install IIS 7 on the machine. After a minimal click in the Control Panel and with the hep of Microsoft Web Platform Installer, my IIS instance was setup correctly.

Unfortunately, that requires that Visual Studio 2010 run as administrator (I was afraid I was going to have to update each of my pinned solutions; thankfully you need to (and can only) update this on the main application shortcut), and my MVC 2 project was failing horribly.

Instead of trying to debug this further I kept searching and found another post on Stack Overflow. After updating my 'shared' directory to contain a folder with all of the ELMAH files and another with just the necessary ones, I'm happy to report the errors (warnings) are gone.

My one site is still a mash of the old and new, so I had to manually remove the items from the Bin directory to verify, but things seem just fine.