I’m in trouble, Nuget packages are all up to date and I have no idea how to fix

Asked

Viewed 33 times

-2

inserir a descrição da imagem aqui Unfortunately I can’t share the code on account of a contract with the company, but if you want the written error:

Server Error in Application '/'. Could not load file or Assembly 'Microsoft.Data.Odata' or one of its dependencies. The definition of the localized Assembly manifest does not correspond to the reference of Assembly. (HRESULT exception: 0x80131040) Description: An untreated exception occurred during the execution of the current web request. Examine stack tracking for more information about the error and where it originated in the code.

Exception Details: System.IO.Fileloadexception: Unable to load file or Assembly 'Microsoft.Data.Odata' or one of its dependencies. The definition of the localized Assembly manifest does not correspond to the Assembly reference. (HRESULT exception: 0x80131040)

Error of Origin:

Untreated exception was generated during the execution of the current web request. Information related to the origin and location of the exception can be identified using the exception stack tracking below.

Assembly Loading Tracking: The following information may be useful to determine why Assembly 'Microsoft.Data.Odata' could not be loaded.

=== Pre-association status information === LOG: Displayname = Microsoft.Data.Odata (Partial) AVI: Partial association information has been provided for an Assembly: AVI: Assembly Name: Microsoft.Data.Odata | Domain ID: 2 AVI: A partial association occurs when only part of the Assembly display name is provided. AVI: This can cause the associator to load an incorrect Assembly. AVI: It is recommended to provide a fully specified textual identity for Assembly, AVI: which consists of the simple name, version, culture and public key token. AVI: See the white paper http://go.microsoft.com/fwlink/? Linkid=109270 for more information and common solutions to the problem. LOG: Appbase = file://D:/Ciacard/job1/cloned/Ciapremios/Ciagroup.CiaPremios.Campanha/ LOG: Initial privatepath = D: Ciacard job1 cloned Ciapremios Ciagroup.CiaPremios.Campaign bin Calling Assembly: (Unknown).

LOG: this association starts in the default upload context. LOG: using application configuration file: D: Ciacard job1 cloned Ciapremios Ciagroup.CiaPremios.Campaign web.config LOG: using host configuration file: C: Users djalm Documents Iisexpress config aspnet.config LOG: using C machine configuration file: Windows Microsoft.NET Framework v4.0.30319 config machine.config. LOG: the policy is not being applied for reference at this time (particular, custom, partial or association of site-based Assembly). LOG: trying to download a new URL file://C:/Users/djalm/Appdata/Local/Temp/Temporary ASP.NET Files/vs/c77ab89a/708c07a9/Microsoft.Data.Odata.DLL. LOG: trying to download a new URL file://C:/Users/djalm/Appdata/Local/Temp/Temporary ASP.NET Files/vs/c77ab89a/708c07a9/Microsoft.Data.Odata/Microsoft.Data.Odata.DLL. LOG: trying to download a new URL file://D:/Ciacard/job1/cloned/Ciapremios/Ciagroup.CiaPremios.Campanha/bin/Microsoft.Data.Odata.DLL. LOG: using application configuration file: D: Ciacard job1 cloned Ciapremios Ciagroup.CiaPremios.Campaign web.config LOG: using host configuration file: C: Users djalm Documents Iisexpress config aspnet.config LOG: using C machine configuration file: Windows Microsoft.NET Framework v4.0.30319 config machine.config. LOG: redirect located in the application configuration file: 5.6.2.0 redirected to 5.8.4.0. LOG: post-policy reference: Microsoft.Data.Odata, Version=5.8.4.0, Culture=neutral, Publickeytoken=31bf3856ad364e35 LOG: trying to download a new URL file://C:/Users/djalm/Appdata/Local/Temp/Temporary ASP.NET Files/vs/c77ab89a/708c07a9/Microsoft.Data.Odata.DLL. LOG: trying to download a new URL file://C:/Users/djalm/Appdata/Local/Temp/Temporary ASP.NET Files/vs/c77ab89a/708c07a9/Microsoft.Data.Odata/Microsoft.Data.Odata.DLL. LOG: trying to download a new URL file://D:/Ciacard/job1/cloned/Ciapremios/Ciagroup.CiaPremios.Campanha/bin/Microsoft.Data.Odata.DLL. AVI: Assembly name comparison resulted in incompatibility: Minor Version ERR: failed to complete Assembly configuration (hr = 0x80131040). Probing terminated.

Cell Trace:

[Fileloadexception: Unable to load file or Assembly 'Microsoft.Data.Odata' or one of its dependencies. The definition of the localized Assembly manifest does not correspond to the Assembly reference. (HRESULT exception: 0x80131040)]

[Fileloadexception: Unable to load file or Assembly 'Microsoft.Data.Odata, Version=5.8.4.0, Culture=neutral, Publickeytoken=31bf3856ad364e35' or one of its dependencies. The definition of the localized Assembly manifest does not correspond to the reference of Assembly. (HRESULT exception: 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) +37 System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +159 System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +80 System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +22 System.Reflection.Assembly.Load(String assemblyString) +29 System.Web.Configuration.CompilationSection.Loadassemblyhelper(String assemblyName, Boolean starDirective) +39

[Configurationerrorsexception: Unable to load file or Assembly 'Microsoft.Data.Odata, Version=5.8.4.0, Culture=neutral, Publickeytoken=31bf3856ad364e35' or one of its dependencies. The definition of the localized Assembly manifest does not correspond to the reference of Assembly. (HRESULT exception: 0x80131040) ] System.Web.Configuration.CompilationSection.Loadassemblyhelper(String assemblyName, Boolean starDirective) +777 System.Web.Configuration.CompilationSection.Loadallassembliesfromappdomainbindirectory() +229 System.Web.Configuration.CompilationSection.Loadassembly(Assemblyinfo ai) +140 System.Web.Compilation.BuildManager.Getreferencedassemblies(Compilationsection compConfig) +176 System.Web.Compilation.BuildManager.Getprestartinitmethodsfromreferencedassemblies() +99 System.Web.Compilation.BuildManager.Callprestartinitmethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +310 System.Web.Compilation.BuildManager.Executepreappstart() +165 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +590

[Httpexception (0x80004005): Could not load file or Assembly 'Microsoft.Data.Odata, Version=5.8.4.0, Culture=neutral, Publickeytoken=31bf3856ad364e35' or one of its dependencies. The definition of the localized Assembly manifest does not correspond to the reference of Assembly. (HRESULT exception: 0x80131040) ] System.Web.Httpruntime.Firstrequestinit(Httpcontext context) +10087352 System.Web.Httpruntime.Ensurefirstrequestinit(Httpcontext context) +99 System.Web.Httpruntime.Processrequestnotificationprivate(Iis7workerrequest Wr, Httpcontext context) +263

Version Information: Microsoft . NET Framework Version:4.0.30319; ASP.NET Version:4.8.4330.0

1 answer

1


I was able to solve my problem if someone goes through it, just use the command to force the package update Microsoft.Data.OData using the command:

Install-Package Microsoft.Data.OData -Version X

Remembering that X is the version you are using (5.8.4, 5.0.0...), try to leave everyone with the same version.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.