Diagnosing IIS 500 Internal Server Errors

Diagnosing IIS 500 Internal Server Errors

Recently I was tasked with deploying a new version of my company’s website onto a clean Windows Server 2012 host and encountered a rather frustrating issue with the dreaded “500 Internal Server Error” page. Despite there being many articles attempting to cover this error online, none of them addressed my specific case which turned out to be a Web.config issue due to a missing IIS feature. Unfortunately IIS isn’t very informative when it comes to configuration errors, and tends to…

Read More Read More

Debugging Visual Studio Extensions

Debugging Visual Studio Extensions

If you ever need to debug a Visual Studio extension to diagnose problems or just test that it’s behaving how you expected, it’s quite easy to do by taking the following steps: Firstly make sure your extension isn’t currently installed (if you’re working on a newer version or fixing bugs) – if so, uninstall it and restart VS before continuing. Right-click on the project, choose Properties and switch to the Debug tab. Click the radio button for “Start External Program”…

Read More Read More

Implementing simple caching in MVC applications

Implementing simple caching in MVC applications

Whenever I develop a new MVC-based website there is always a question of how best to implement caching so that it’s unobtrusive and fits neatly with the standard Repository pattern without adding too much extra coding requirement on top. I’m going to be using dependency injection (DI) for this example so if your solution doesn’t use a DI container such as Ninject, you might need to look elsewhere — or better still consider implementing dependency injection to make your code…

Read More Read More

Paranormal Activity 4 Reviewed

Paranormal Activity 4 Reviewed

Haven’t added a movie review in ages (who even reads these? Probably just me…) but what’s a blog without some posts? Now that me and the missus have BT Infinity — fibre-to-the-cabinet a.k.a “super-fast” broadband (depending on what the speeds are like where you’re reading this, of course) — let’s just say it’s 70Mbps and have done with it okay? Fast enough for Super HD streaming on Netflix, hellooo and thank you very much Mr British Telecom. Anyway, where was…

Read More Read More

Improving Entity Framework performance by tracking changes manually

Improving Entity Framework performance by tracking changes manually

Introduction While working on a recent personal project, I had the not-too-unfamiliar pleasure of fighting Entity Framework to try and get some half-decent performance out of a console application that I was using to bulk add and update records based on some external data feeds. It’s often said that EF isn’t really geared towards bulk database operations and other approaches should be considered (ADO.NET, Integration Services etc.) but there is naturally a trade-off here between time spent implementing the solution…

Read More Read More

Generating service contract from static WSDL and XSD files

Generating service contract from static WSDL and XSD files

Recently I needed to generate a service contract interface for a third-party client based on their specification. My client would be hosting the service so we would be providing our own WSDL and endpoint, but the service had to conform to the end client’s requirement including which objects would be exchanged. To make this work I needed to generate an interface and associated classes from the WSDL definition and XSDs supplied by the third-party, but at first I wasn’t sure…

Read More Read More

Cowboys & Aliens Reviewed

Cowboys & Aliens Reviewed

So my wife and I finally watched Cowboys & Aliens last night. This was one film we debated about seeing at the cinema but eventually ended up not going, and after watching it at home courtesy of Lovefilm I’m very glad we didn’t! Okay so it isn’t the worst film ever, not by a long shot, but with a cast including Daniel Craig (love him as Bond) and Harrison Ford (just a legend) I think it’s fair to expect a…

Read More Read More

Converting from Linq-to-SQL to Entity Framework Model First

Converting from Linq-to-SQL to Entity Framework Model First

Recently I switched hosting providers and had to update an existing project to work against a MySQL database instead of SQL Server. After successfully creating the MySQL database and porting over all the data (which turned out to be a major chore and worthy of a post in itself…), I went to update my website to target the MySQL database only to find out (having forgotten completely) that I’d used Linq-to-SQL (L2S) as the ERM and, of course, L2S only…

Read More Read More

Today’s Shoulder Workout

Today’s Shoulder Workout

Been 4 weeks since coming back from LA and the training’s now back in full flow. Although a lot of strength/size was lost training for the Waveney Valley Super-Sprint Triathlon back in May, I’ve put about 6lbs of mass since then most of which is lean muscle. Currently 13st 2lb (83.5kg) which for my height (6′ 2) gives me a BMI of 23.6 which is on the low side for me, but obviously well within the ‘normal’ range. Today’s workout…

Read More Read More

Wimble-done!

Wimble-done!

So Wimbledon is over for another year. Congratulations to Andy Murray for getting to the final this year, bit gutted he didn’t win but it’s hard to deny that the better man won on the day so well done to RFed for yet another Wimbledon title! I guess that’s it now until the Olympics start on 27th July – I can’t wait!