question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not load file or assembly 'Audit.NET, Version=15.3.0.0'

See original GitHub issue

Hellow dear.

I’m trying to use Audit.NET 15.3 and also Aduit.EntityFramework 15.3

My project version is: id=“Audit.EntityFramework” version=“15.3.0” targetFramework=“net48” /> id=“Audit.NET” version=“15.3.0” targetFramework=“net48” /> id=“EntityFramework” version=“6.4.4” targetFramework=“net48” /> id=“Microsoft.AspNet.WebApi” version=“5.2.7” targetFramework=“net48” /> id=“Microsoft.AspNet.WebApi.Client” version=“5.2.7” targetFramework=“net48” /> id=“Microsoft.AspNet.WebApi.Core” version=“5.2.7” targetFramework=“net48” /> id=“Microsoft.AspNet.WebApi.WebHost” version=“5.2.7” targetFramework=“net48” /> id=“Microsoft.CodeDom.Providers.DotNetCompilerPlatform” version=“2.0.1” targetFramework=“net48” /> id=“Newtonsoft.Json” version=“12.0.3” targetFramework=“net48” />

But when it will load the context I get the exception:

Exception: Could not load file or assembly 'Audit.NET, Version=15.3.0.0, Culture=neutral, PublicKeyToken=571d6b80b242c87e' or one of its dependencies. The manifest definition of the localized assembly does not match the assembly reference. (Exception of HRESULT: 0x80131040)

Stacktrace: at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType) at System.Reflection.RuntimeMethodInfo.FetchNonReturnParameters() at System.Reflection.RuntimeMethodInfo.GetParametersNoCopy() at System.Reflection.RuntimePropertyInfo.GetIndexParametersNoCopy() at System.Reflection.RuntimePropertyInfo.GetIndexParameters() at System.Data.Entity.Internal.DbSetDiscoveryService.<>c.<GetSets>b__4_1(PropertyInfo p) at System.Data.Entity.Internal.DbSetDiscoveryService.GetSets() at System.Data.Entity.Internal.DbSetDiscoveryService.InitializeSets() at System.Data.Entity.DbContext.InitializeLazyInternalContext(IInternalConnection internalConnection, DbCompiledModel model) at System.Data.Entity.DbContext..ctor(String nameOrConnectionString) at Audit.EntityFramework.AuditDbContext..ctor(String nameOrConnectionString)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
thepirat000commented, Jul 24, 2020

The conflict is that you use the same assembly name as the Audit.NET library… Have your own name for your assemblies.

https://github.com/renandegrandi/Audit.NET/blob/0e48d0e17af9244e12827996daf0e42d14a82b4e/Audit.NET/Audit.NET.csproj#L16

<AssemblyName>Audit.NET</AssemblyName>

0reactions
renandegrandicommented, Jul 25, 2020

Thank you very much, I used this namespace because it was just a poc, I will perform the test again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error after upgrading to 15.1.5
Hi guys , I've upgraded my project from 15.1.4 to 15.1.5. Now I have this error when running the web app (see attached)...
Read more >
asp.net mvc - NuGet Package restore failed for project ...
Now start the visual studio and open the solution. Now try to install the package again.
Read more >
Untitled
M97xe vs v15, Huong dan crack idm 6.18, Lake and pond management massachusetts, Hotel la viva ... Range rover p38 4.6, Bad company...
Read more >
Untitled
It audit report pdf, Transformaciones trigonometricas pdf file, Adam font download, ... Amy m smith on facebook, Unable to open exe file windows...
Read more >
Untitled
Pitra devta songs pk, Download of google chrome failed to start side, ... Live 365 xmas music, Error loading media file not found...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found