Skip to content
Discussion options

You must be logged in to vote

In other words, it's totally unrelated to whatever you are doing in high level callers, including your plugin, or the Microsoft.Extensions.* libraries.

The fundamentally wrong thing is that you are loading lib\netstandard2.0 version of System.Diagnostics.EventLog into a Windows process. It's a throw-only version. You should use runtimes\win\lib\net8.0 version for a net8.0 process, and lib\net462 version for a .NET Framework process. The two versions are not compatible.

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
6 replies
@huoyaoyuan
Comment options

@bairog
Comment options

@huoyaoyuan
Comment options

@bairog
Comment options

@huoyaoyuan
Comment options

Comment options

You must be logged in to vote
5 replies
@huoyaoyuan
Comment options

@bairog
Comment options

@huoyaoyuan
Comment options

@huoyaoyuan
Comment options

Answer selected by bairog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants