未知模块中发生 'System.ExecutionEngineException' 类型的未处理异常。发生了

An unhandled exception of type 'System.ExecutionEngineException' occurred in Unknown Module. occurred

我在 .net core 2.2 运行 odata 7.1.0 中收到以下错误。
错误:

An unhandled exception of type 'System.ExecutionEngineException' occurred in Unknown Module. occurred

错误似乎是由 countdistinct 函数触发的。否则应用程序似乎工作正常。发生错误时应用程序停止。

这个有效

http://localhost:5000/odata/Uploads?$skip=0&$top=10&$count=true&$apply=groupby((uploadStatus))

这会导致错误

http://localhost:5000/odata/Uploads?$skip=0&$top=10&$count=true&$apply=groupby((uploadStatus),aggregate(uploadID%20with%20countdistinct%20as%20total))

我升级了 odata 的版本,错误消失了。