Caching Application Block Error - caching-application-block

Has anyone seen this error before?
An error occurred creating the configuration section handler for cachingConfiguration: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) (C:\WorkingDir\Projects\ReportCentral\ReportCentral\bin\Debug\ReportCentral.vshost.exe.config line 5)
I am using Ent Lib 4.0. I changed my App Traget Framework from 2.0 to 3.5.
Edit ~
I have the following in the bin
Caching.dll
Common.dll
ObjectBuilder2.dll
Edit ~ "Solution"
This was the deal, when referencing dlls in the C:\EntLib4Src\bin, they are signed and could only be configured by the EntLibConfig.exe found in that same folder and not the one from "Start>Programs>Microsoft Patterns...>Ent Wasn't that tricky?

That means it can't find the file. So you either need to put it into the GAC or the bin folder so that the assembly can be loaded.

This was the deal, when referencing dlls in the C:\EntLib4Src\bin, they are signed and could only be configured by the EntLibConfig.exe found in that same folder and not the one from "Start>Programs>Microsoft Patterns...>Ent Wasn't that tricky?

Related

trying to install Sitecore instance getting failed in all 8.2, 9.2 and 10.2 giving same error failed to start MicrosoftMarketingAutomationService

Hi have tried all the solutions in google for the this error nothing worked opened the IIS and checked the Xconnect is stopped while the installation is in process. after installation failure opened the Xconnect url from IIS found that the error is related to System.Memory.dll 4.5.5.0 version reference tried different solutions nothing worked. installation failing at step 68.
Error message:
Could not load file or assembly 'System.Memory, Version=4.5.5.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' 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 'System.Memory, Version=4.5.5.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Screenshots:
enter image description here, enter image description here
I believe that the error means that the DLL does not exist in your web root:
c:/inetpub/wwwroot/[webroot]
In your webroot can you:
Look in your bin folder and see whether the System.Memory.dll exists?
Also. check your web.config file, and specifically the assemblies section and make sure that the System.Memory.dll version name and number is referenced correctly.

Could not load file or assembly Newtonsoft.Json, Version=6.0.0.0

I am trying to build a Web Api in F#. I am using .NET 4.5.2, F# 4.0 (FSharp.Core 4.4.0.0). I used the F# templates extension, so this project was created as a WebApi project.
When I launch, I get this error:
Could not load file or assembly 'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
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
'Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
or one of its dependencies. The located assembly's manifest definition does not
match the assembly reference. (Exception from HRESULT: 0x80131040)
Source Error:
Line 23:
Line 24: member __.Configuration(builder: IAppBuilder) =
Line 25: let config = new HttpConfiguration()
Line 26: Startup.RegisterWebApi(config)
Line 27: builder.UseWebApi(config) |> ignore
I have Newtonsoft.Json on version 10.0.2.
I have tried the following:
Force-uninstalling & re-installing Newtonsoft.Json
Adding an assembly binding redirect for Newtonsoft.Json, specifically to version 10.0.2. There was not one there before I added it.
Newtonsoft.Json is set to copy locally. The dll is in the bin folder of the API, at version 10.0.2
My solution has 3 projects but only the API uses this nuget package.
I know there are a hundred versions of this question on SO, but none of them seem to deal with this error in relation to an F# Api, and I think I have tried all the easy things I've seen listed elsewhere.

I cannot use Grid.Mvc and I get this error : Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0

I am using Grid.MVC, after I build and run the program, I get this error:
Could not load file or assembly 'System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
this error apears when server tries to run this line from the view:
#Html.Grid(Model).Columns(..........
I installed and uninstalled different versions of Grid.Mvc but it still doesn't work!!! and I still get this error, even with another version of .net framework!!!
How can I solve this problem?

Could not load file or assembly Microsoft.mshtml

I have a program in c# that is using WatiN. It compiles and runs well in my development windows 7. However when I copy the program to windows 2012 datacenter in azure, it throws below exception when the application tries to start an instance of internet explorer(which exists in windows 2012 datacenter):
System.IO.FileNotFoundException: Could not load file or assembly
'Microsoft.mshtml, Version=7.0.3300.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The
system cannot find the file specified. File name: 'Microsoft.mshtml,
Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at
WatiN.Core.Native.InternetExplorer.IEWaitForComplete.WaitForCompleteOrTimeout()
at WatiN.Core.IE.WaitForComplete(Int32 waitForCompleteTimeOut) at
WatiN.Core.Browser.GoTo(Uri url) at
WatiN.Core.IE.FinishInitialization(Uri uri)
I am kind of lost on this exception, what is missing on the server?
Thank.
It is a standard interop assembly that is installed in the GAC on any dev machine. Not exactly sure how it got there, most likely it is the VS installer that put it there. But it won't be in the GAC on that Azure node.
Open the References node of your project and select the Microsoft.mshtml entry. Change the Copy Local property to True. Rebuild and you'll now have a copy of the assembly in your build directory. Copy it along with the rest of your executables to the Azure node.

Error building project with XNAnimationPipline.dll and XNA3.1

I have a model with 2 animations, created in Blender and exported to fbx.
Referencing the XNAnimation.dll works, however when I reference the XNAnimationPipline.dll in the Content project I get a build error.
The "BuildContent" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'XNAnimationPipeline, Version=0.7.0.0, Culture=neutral, PublicKeyToken=0c21691816f8c6d0' or one of its dependencies.
The system cannot find the file specified.
File name: 'XNAnimationPipeline, Version=0.7.0.0, Culture=neutral, PublicKeyToken=0c21691816f8c6d0'
I have recently upgraded to XNA3.1 and am using the latest XNAnimation library.
Any ideas?
Thanks
Rebuilding the source code sorts it out
This explains

Resources