MONO - 方法 'EventSource.WriteEvent' 未找到

MONO - Method 'EventSource.WriteEvent' not found

我的 ASP.NET MVC 应用程序与 Mono 有问题。我正在 Visual Studio 中创建一个简单的应用程序。该应用程序适用于 windows 服务器,但不适用于 Mono。我收到此错误:

System.MissingMethodException Method 'EventSource.WriteEvent' not found.

单声道版本:

Mono JIT compiler version 4.2.3 (Stable 4.2.3.4/832de4b Wed Mar 16 13:19:08 UTC 2016)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS:           __thread
SIGSEGV:       altstack
Notifications: epoll
Architecture:  amd64
Disabled:      none
Misc:          softdebug 
LLVM:          supported, not enabled.
GC:            sgen

屏幕:

并非 EventSource.WriteEvent 的所有重载都在 Mono 中实现。您要么需要更改代码以仅使用已实现的代码,要么等待第 7 周期发布。我想它会被称为 Mono 4.4,但你有 4.2,所以你必须升级。