if (!DependencyResolver.Current.GetService<IDatabaseUpgradeDetector>().UpdateNeeded()) return;
Either of them being null is problematic, DependencyResolver is a MVC framework feature so if that’s null there’s a big problem and f the db upgrader is null then the dependencies haven’t loaded which is also a problem.
- On a shared or dedicated host?
- Have you ensured .NET 4.0 is installed?
- Is the app pool set correctly for .NET 4.0?
- Have you got MVC3 installed?
I don’t have a clue where to start, event viewer may have something if a dependency is failing to load but that’s a wild guess