After upgrading from Sitecore 7.2 to 7.5, whenever a content editor tried to upload an image, using the image picker from a data template, like so:

They would receive this error:

Server Error in '/' Application.
________________________________________
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0012: The type 'System.Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Source Error:
Line 25: }
Line 26: }
Line 27: @Html.Sitecore().Placeholder("Page.Stylesheets")
Line 28: @Html.Sitecore().Placeholder("Page.Code")
Line 29: </head>
Source File: c:\Websites\authoring.instantoffices.com\Website\sitecore\shell\client\Speak\Layouts\Layouts\Speak-Layout.cshtml Line: 27

The fix to get the image picker to work again is quite simple. Sitecore is complaining that it doesn’t know about the ‘System.Runtime’ assembly. To fix this all you need to do is register the assembly in your web.config and everything should be up and running again. In order to do this, open your websites web.config and navigate to the section.

Software Architect, Programmer and Technologist Jon Jones is founder and CEO of London-based tech firm Digital Prompt. He has been working in the field for nearly a decade, specializing in new technologies and technical solution research in the web business. A passionate blogger by heart , speaker & consultant from England.. always on the hunt for the next challenge

SITECORE DEVELOPER?

Connect

Hi, I'm Jon, I write articles about creating and optimizing websites as well as making money from your online business. I am technical architect and technology fanatic by profession. You can find out more about me by signing up to my newsletter.