简体   繁体   中英

Could not load file or assembly 'Microsoft.Diagnostics.Tracing.EventSource

I am working in Visual Studio 2015 for a C sharp project. While running the project I am getting the following error in the browser

Could not load file or assembly 'Microsoft.Diagnostics.Tracing.EventSource, Version=1.1.24.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

Can any one please provide me the solution

I have the same issue and noticed that my project does not use Microsoft.Diagnostics.Tracing.EventSource , but uses Microsoft.Diagnostics.Tracing.EventSource.Redist and I just updated this reference to version 1.1.28 and it works

<PackageReference Include="Microsoft.Diagnostics.Tracing.EventSource.Redist">
  <Version>1.1.28</Version>
</PackageReference>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM