May 2009 Entries
If you are running IIS 7 on Vista x64 you may get this error: System.BadImageFormatException: Could not load file or assembly 'XXXX.XXXXX' or one of its dependencies. An attempt was made to load a program with an incorrect format. By default IIS 7 won't load x86 (32 bit) assemblies, make sure you set your application pool's “Enable 32-Bit Applications” setting to “True”. Internet Information Services (IIS) Manager > Application Pools > {Your App Pool} > Advanced Settings > Enable 32-Bit Applications If this still doesn't work. Try changing your build configuration platform setting for each...
I got a new 128GB G.Skill SSD drive Thursday and I've been repaving my laptop with Windows 7 x64 RC. Overall this has been a really smooth experience. I admit most of my excitement is about my new hard drive and I chose Windows 7 because I read it is optimized for Solid State Drives and I wanted to get the most out of my new purchase. The first thing was that Windows install time was about 30 min. This was my first confirmation that I was gonna love my new drive. The first thing I installed...
I was working on a Windows 7 post about my installation experience and I ended up in a rant. So I decided that I should move my rant to a separate post where it belongs. Two criticisms that I have heard leveled at Windows 7 are: It's too soon (3 years) to roll out a new OS. It's just a Vista service pack I'd like to take a minute or two to answer those from my own perspective. First to the criticism that it's too soon. The...
Problem: If you are using Visual Studio testing tools and you open your testrunconfig file to update or turn on code coverage it closes/crashes immediately. Workaround: If your solution contains a Silverlight project (not Silverlight Class Library, these are ok for some reason) or a WSSF project (Web Services Software Factory) you can unload the project (right-click project in Solution Explorer, select “Unload Project”). Once you have done this your code coverage will work and you can open the property window for Code Coverage in your testrunconfig file. Tags: Unit Testing, Visual Studio 2008 SP 1, Silverlight
This is a post I've been meaning to write for a while. I had quite a bit of trouble getting the Oracle client working properly since I started with my current client. I've never used Oracle before and so it's been pretty frustrating since I've wanted the opportunity to work with it for a long time. But it turns out that the solutions have been pretty simple. Here's a list of some of the problems I've run into and their solutions: Use Admin install – When it comes to software/services that open up ports to the...
I've been using ASP.NET MVC since Preview 1 (Nov 2007). When I need to reference a Resource File (.resx) in my View, I just do the following: 1: <%=Resources.MyResourceFile.MyResourceKey%> Until today, I took that for granted. I received an email this morning referencing this post on ASP.NET. The post was about using Resource Files in an MVC View. I replied to the original post in February 2008 and then forgot about it. Today, I was asked how I got this to work. Since I hadn't ever given it much thought –...
As an ASP.NET developer I've always worked for companies which had little or no support for any environments other than Windows. But the situation is reversed at my current client. Most development is done in Java or PHP with an Oracle back end. As a Microsoft developer I am in the minority here. The project I am working on is an ASP.NET rewrite of a rare classic ASP application within the organization. During ramp up, we decided that ASP.NET MVC would be a good fit (an a whole lot of fun). The project is going well...