Microsoft.Data.Edm

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
Hello,

I had installed nopcommerce 3.8 but when I am trying to launch the application I have the error:

Server Error in '/' Application.

Could not load file or assembly 'Microsoft.Data.Edm, Version=5.6.4.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)

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 'Microsoft.Data.Edm, Version=5.6.4.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)

Source Error:


Line 356:
Line 357:            //we can now register the plugin definition
Line 358:            var shadowCopiedAssembly = Assembly.Load(AssemblyName.GetAssemblyName(shadowCopiedPlug.FullName));
Line 359:
Line 360:            //add the reference to the build manager

Source File: C:\Users\Luis\Google Drive\Final Project\nopCommerce\nopCommerce_3.80_Source\Libraries\Nop.Core\Plugins\PluginManager.cs    Line: 358

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Microsoft.Data.Edm, Version=5.6.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.


=== Pre-bind state information ===
LOG: Where-ref bind. Location = C:/Users/Luis/AppData/Local/Temp/Temporary ASP.NET Files/root/2cbf0d6f/f2163cca/Microsoft.Data.Edm.dll
LOG: Appbase = file:///C:/Users/Luis/Google Drive/Final Project/nopCommerce/nopCommerce_3.80_Source/Presentation/Nop.Web/
LOG: Initial PrivatePath = C:\Users\Luis\Google Drive\Final Project\nopCommerce\nopCommerce_3.80_Source\Presentation\Nop.Web\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in LoadFrom load context.
WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().
LOG: Using application configuration file: C:\Users\Luis\Google Drive\Final Project\nopCommerce\nopCommerce_3.80_Source\Presentation\Nop.Web\web.config
LOG: Using host configuration file: C:\Users\Luis\Documents\IISExpress\config\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Attempting download of new URL file:///C:/Users/Luis/AppData/Local/Temp/Temporary ASP.NET Files/root/2cbf0d6f/f2163cca/Microsoft.Data.Edm.dll.
LOG: Redirect found in application configuration file: 5.6.4.0 redirected to 5.7.0.0.
LOG: Post-policy reference: Microsoft.Data.Edm, Version=5.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
WRN: Comparing the assembly name resulted in the mismatch: Minor Version
LOG: Using application configuration file: C:\Users\Luis\Google Drive\Final Project\nopCommerce\nopCommerce_3.80_Source\Presentation\Nop.Web\web.config
LOG: Using host configuration file: C:\Users\Luis\Documents\IISExpress\config\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Redirect found in application configuration file: 5.6.4.0 redirected to 5.7.0.0.
LOG: Post-policy reference: Microsoft.Data.Edm, Version=5.7.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: Attempting download of new URL file:///C:/Users/Luis/AppData/Local/Temp/Temporary ASP.NET Files/root/2cbf0d6f/f2163cca/Microsoft.Data.Edm.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Minor Version
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.

Stack Trace:


[FileLoadException: Could not load file or assembly 'Microsoft.Data.Edm, Version=5.6.4.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)]

[FileLoadException: Could not load file or assembly 'Microsoft.Data.Edm, Version=5.7.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)]
   System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
   System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +36
   System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +152
   System.Reflection.Assembly.Load(AssemblyName assemblyRef) +36
   Nop.Core.Plugins.PluginManager.PerformFileDeploy(FileInfo plug) in C:\Users\Luis\Google Drive\Final Project\nopCommerce\nopCommerce_3.80_Source\Libraries\Nop.Core\Plugins\PluginManager.cs:358
   Nop.Core.Plugins.PluginManager.Initialize() in C:\Users\Luis\Google Drive\Final Project\nopCommerce\nopCommerce_3.80_Source\Libraries\Nop.Core\Plugins\PluginManager.cs:145

[Exception: Plugin 'Promo Slider'. Could not load file or assembly 'Microsoft.Data.Edm, Version=5.7.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)]
   Nop.Core.Plugins.PluginManager.Initialize() in C:\Users\Luis\Google Drive\Final Project\nopCommerce\nopCommerce_3.80_Source\Libraries\Nop.Core\Plugins\PluginManager.cs:175

[Exception: Plugin 'Promo Slider'. Could not load file or assembly 'Microsoft.Data.Edm, Version=5.7.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)
Could not load file or assembly 'Microsoft.Data.Edm, Version=5.7.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)
Could not load file or assembly 'Microsoft.Data.Edm, Version=5.6.4.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)
]
   Nop.Core.Plugins.PluginManager.Initialize() in C:\Users\Luis\Google Drive\Final Project\nopCommerce\nopCommerce_3.80_Source\Libraries\Nop.Core\Plugins\PluginManager.cs:186

[InvalidOperationException: The pre-application start initialization method Initialize on type Nop.Core.Plugins.PluginManager threw an exception with the following error message: Plugin 'Promo Slider'. Could not load file or assembly 'Microsoft.Data.Edm, Version=5.7.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)
Could not load file or assembly 'Microsoft.Data.Edm, Version=5.7.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)
Could not load file or assembly 'Microsoft.Data.Edm, Version=5.6.4.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)
.]
   System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection`1 methods, Func`1 setHostingEnvironmentCultures) +613
   System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +141
   System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +102
   System.Web.Compilation.BuildManager.ExecutePreAppStart() +157
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +531

[HttpException (0x80004005): The pre-application start initialization method Initialize on type Nop.Core.Plugins.PluginManager threw an exception with the following error message: Plugin 'Promo Slider'. Could not load file or assembly 'Microsoft.Data.Edm, Version=5.7.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)
Could not load file or assembly 'Microsoft.Data.Edm, Version=5.7.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)
Could not load file or assembly 'Microsoft.Data.Edm, Version=5.6.4.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)
.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9946024
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +90
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +261


I do not have any external plugin at this stage, just the default configuration. I did create a plugin myself but as it was giving me issues I had reverted to the original state

I only have the library under Nop.Services and Not.Web references, I tried to set the Copy Local to False and true but it is not working.

Could anybody advise?
7 years ago
SOLUTION:

I had to start from scratch to be able to solve this one.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.