I've added the Microsoft.SqlServer.SqlManagementObjects (140.17235.0) from Nuget to an Asp.Net MVC application and am getting an error immediately upon running.
Could not load file or assembly 'Microsoft.SqlServer.XEvent.Linq' or one of its dependencies. Strong name signature could not be verified. The assembly may have been tampered with, or it was delay signed but not fully signed with the correct private key. (Exception from HRESULT: 0x80131045)
I've tried to check the PublicKeyToken on the this dll that gets copied into the bin folder and I get the same error using Powershell
([system.reflection.assembly]::loadfile("\bin\Microsoft.SqlServer.XEvent.Linq.dll")).FullName
What am I missing here? If I remove the dll from the bin folder and refresh the error page, the app works..., but not sure what functionality uses this dll...
I've tried adding it and removing many times..., to no avail...
User contributions licensed under CC BY-SA 3.0