Tuesday, 29 August 2017

Fixing the Error While Installing Sitecore 8.2 Complete Set Up : 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

I face one unexpected issue while installing Sitecore 8.2 using Sitecore 8.2 rev. 160729.exe

I will say unexpected because I have used the same installer in order to install the Sitecore Complete Instance at least 10 times.

The Error is as below

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 10: @model Sitecore.Mvc.Presentation.RenderingModel
Line 11: @{
Line 12:   var rendering = Html.Sitecore().Controls().
GetUserControl(Model.Rendering);
Line 13:   rendering.Class = "sc-launchpad";
Line 14:   

Source File: c:\inetpub\wwwroot\Habitat\Website\sitecore\shell\client\Applications\LaunchPad\Layouts\Renderings\LaunchBar.cshtml    Line: 12 



As the Error is clearly saying  You must add the Reference to 'System.Runtime

I copied the System.Runtime.dll from below location

C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.1\Facades

to Bin folder of Sitecore Instance; In my case it was

C:\Inetpub\wwwroot\Habitat\Website\bin






It was relaxed feeling when I saw launchpad screen back



Happy Sitecore




No comments:

Post a Comment

Featured post

Getting Started With SOLR

Getting Started with Solr ·           Features o    Hit highlighting o    Auto correction o    Faceted Search o    Multi lan...