Upload Media Exception After Upgrading To Sitecore 7.5

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:

sitecore 7.5 upgrade image browse error

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.

<assemblies>
<add assembly="System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> 
</assemblies>

Add a reference to System.Runtime. Next time you try to open your image picker it should load as expected:

sitecore_75_upgrade_image_browse_error_1

Jon D Jones

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

More Posts

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *