Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.TypeInitializationException under .NET Framework 4.7.2 and 4.8 #190

Open
securityfreax opened this issue Feb 17, 2022 · 0 comments
Open

Comments

@securityfreax
Copy link

securityfreax commented Feb 17, 2022

Hey all,

I am running into the following exception, with Microsoft Visual Studio Professional 2019, Version 16.11.3.
I have installed the managed NuGet Package “Microsoft.O365.Security.Native.ETW, Version 4.2.2”

The App compiles with no errors, but when I run the app, it raises a “System.TypeInitializationException” Exception immediately when loading the Class, where “Microsoft.O365.Security.Native.ETW” is in the using clause.

Here is the translated Exception Message (from German):

System.IO.FileLoadException: The file or assembly "Microsoft.O365.Security.Native.ETW, Version=1.0.7951.28336, Culture=neutral, PublicKeyToken=31bf3856ad364e35" or a dependency on it was not found. An attempt is made to load a non-verifiable executable with fixups (IAT with more than 2 sections or a TLS section).

Is this a known issue?
Is there any fix?

Thank you very much in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant