upgrade from 6.1.43 to 6.1.46 crashed the site
the error message I'm getting is this:
Server Error in '/Annapolis' Application.Could not load file or assembly 'Telerik.Sitefinity, Version=6.1.4300.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Telerik.Sitefinity, Version=6.1.4300.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Sitefinity, Version=6.1.4300.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' could not be loaded.
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
Stack Trace:
[FileLoadException: Could not load file or assembly 'Telerik.Sitefinity, Version=6.1.4300.0, Culture=neutral, PublicKeyToken=b28c218413bdf563' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
System.Reflection.CustomAttribute._CreateCaObject(RuntimeModule pModule, IRuntimeMethodInfo pCtor, Byte** ppBlob, Byte* pEndBlob, Int32* pcNamedArgs) +0
System.Reflection.CustomAttribute.CreateCaObject(RuntimeModule module, IRuntimeMethodInfo ctor, IntPtr& blob, IntPtr blobEnd, Int32& namedArgs) +77
System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) +1294
System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit) +235
System.ComponentModel.ReflectTypeDescriptionProvider.ReflectGetAttributes(Type type) +394
System.ComponentModel.ReflectedTypeData.GetAttributes() +111
System.ComponentModel.DefaultTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetAttributes() +127
System.ComponentModel.TypeDescriptor.GetAttributes(Type componentType) +143
System.Web.UI.ViewStateModeByIdAttribute.IsEnabled(Type type) +74
System.Web.UI.Control.SaveViewStateRecursive(ViewStateMode inheritedMode) +269
System.Web.UI.Control.SaveViewStateRecursive(ViewStateMode inheritedMode) +325
System.Web.UI.Control.SaveViewStateRecursive(ViewStateMode inheritedMode) +325
System.Web.UI.Control.SaveViewStateRecursive(ViewStateMode inheritedMode) +325
System.Web.UI.Control.SaveViewStateRecursive(ViewStateMode inheritedMode) +325
System.Web.UI.Control.SaveViewStateRecursive(ViewStateMode inheritedMode) +325
System.Web.UI.Control.SaveViewStateRecursive(ViewStateMode inheritedMode) +325
System.Web.UI.Control.SaveViewStateRecursive(ViewStateMode inheritedMode) +325
System.Web.UI.Control.SaveViewStateRecursive(ViewStateMode inheritedMode) +325
System.Web.UI.Control.SaveViewStateRecursive(ViewStateMode inheritedMode) +325
System.Web.UI.Control.SaveViewStateRecursive(ViewStateMode inheritedMode) +325
System.Web.UI.Page.SaveAllState() +728
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4660
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18045
When I was upgrading from 6.0 to 6.1.43 the site crashed as well. The support sent a bunch of dlls - to substitute the existing ones. Then they said it has been fixed. What is wrong this time???
Hello Inna,
This issue is caused by a custom control or other file that was built against the 6.1 version of the Telerik.Sitefinity assembly and as a result is still looking for that version. The issue can be resolved with a simply binding redirect pointing that version to the actual current version of the assembly. You can resolve this by placing the following binding redirect in your web.config:
<
runtime
>
<
assemblyBinding
xmlns
=
"urn:schemas-microsoft-com:asm.v1"
>
<
dependentAssembly
>
<
assemblyIdentity
name
=
"Telerik.Sitefinity"
publicKeyToken
=
"b28c218413bdf563"
culture
=
"neutral"
/>
<
bindingRedirect
oldVersion
=
"0.0.0.0-65535.65535.65535.65535"
newVersion
=
"6.1.4600.0"
/>
</
dependentAssembly
>
</
assemblyBinding
>
</
runtime
>