Could not load file or assembly 'Telerik.Sitefinity.Analytics.Server.Infrastructure
Hello,
Could not load file or assembly
'Telerik.Sitefinity.Analytics.Server.Infrastructure, Version=4.3.1885.0,
Culture=neutral, PublicKeyToken=null' or one of its dependencies. The
located assembly's manifest definition does not match the assembly
reference. (Exception from HRESULT: 0x80131040)
This error occur when i'll upgrade to 7.1 version.
Hello Rohin,
Regarding the exception, apparently Sitefinity is looking for an older version of the Analytics assembly. This could happen e.g. if you have some external library built using an older Analytics version. This could be avoided if you rebuild the external library using the new Analytics dll used by your upgraded Sitefinity project.
Another, faster approach to fix this is by adding a binding redirect in your web.config file:
<
runtime
>
<
assemblyBinding
xmlns
=
"urn:schemas-microsoft-com:asm.v1"
>
<
dependentAssembly
>
<
assemblyIdentity
name
=
"Telerik.Sitefinity.Analytics.Server.Infrastructure"
publicKeyToken
=
"
YourToken
"
culture
=
"neutral"
/>
<
bindingRedirect
oldVersion
=
"0.0.0.0-65535.65535.65535.65535"
newVersion
=
"your 7.0 dll version"
/>
</
dependentAssembly
>
</
assemblyBinding
>
</
runtime
>