Saturday, March 10, 2012

SPUpgradeException was thrown

I was trying to install SharePoint Server 2010 on my laptop which runs Windows 7 x64 and the configuration failed at the second step:
Exception: Microsoft.SharePoint.Upgrade.SPUpgradeException: Failed to call GetTypes on assembly Microsoft.Office.Server.Search
The error does not help you a lot... But the problem occurs if your Windows 7 does not have the Chart Control installed.

You just have to quit the configuration wizard and to download the Chart Control here. You can now restart your configuration wizard, this should work better now!

Monday, March 5, 2012

Could not load file or assembly 'msshrtmi' or one of its dependencies

Today, for no reason, one of mine projects in ASP.NET MVC 3 crashed at launch... I had this error every time:

After some searches, I've found the solution:

  • unload your web project
  • edit the .csproj file
  • remove all "PlatformTarget" elements that you found
  • reload your web project

Normally, it should be enough but I have also changed my build configuration to x64 (inspite of Any CPU).

Hope that information can be useful for someone!