jonwagner / EventSourceProxy

EventSourceProxy (ESP) is the easiest way to add scalable Event Tracing for Windows (ETW) logging to your .NET program
Other
97 stars 20 forks source link

using newer versions of the Microsoft EventSource NuGet package throws FileLoadException #46

Closed oocx closed 3 years ago

oocx commented 8 years ago

When I try to use a newer version of the Microsoft EventSource NuGet package, EventSourceProxy fails with a FileLoadException. As a workaround, I need to manually add assembly binding redirects to all applications where I use EventSourceProxy.

Unhandled Exception: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.Diagnostics.Tracing.EventSo urce, Version=1.0.16.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assemb ly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) at EventSourceProxy.NuGet.EventSourceManifest.GenerateManifest(Type type) at GenerateProxyManifest.Program.GenerateManifest(String assemblyPath, String typeName) at GenerateProxyManifest.Program.Main(String[] args)

Benjol commented 8 years ago

I got this also, but only for the case where I was trying to extract the manifest using the GenerateProxyManifest tool.

jonwagner commented 3 years ago

Closing due to the age of the bug. Feel free to reopen when 4.0.0 is released.