.net release 编译发布后,原来接口返回ITask包装的都会抛出异常,只要一await就会抛出这个异常
2022-01-06 06:15:05.118 +00:00 [ERR] Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.get_IsCompleted()
at AlterDomus.ClientDashboard.Application.Service.FundService.GetUserPermissionedFunds(Int32 mcpUserId, String permission, CancellationToken cancellationToken) in D:\work\project\ADWS\code\master\CorPro\AlterDomus.ClientDashboard\src\AlterDomus.ClientDashboard.Application\Service\FundService.cs:line 88
.net release 编译发布后,原来接口返回ITask包装的都会抛出异常,只要一await就会抛出这个异常 2022-01-06 06:15:05.118 +00:00 [ERR] Object reference not set to an instance of an object. System.NullReferenceException: Object reference not set to an instance of an object. at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.get_IsCompleted() at AlterDomus.ClientDashboard.Application.Service.FundService.GetUserPermissionedFunds(Int32 mcpUserId, String permission, CancellationToken cancellationToken) in D:\work\project\ADWS\code\master\CorPro\AlterDomus.ClientDashboard\src\AlterDomus.ClientDashboard.Application\Service\FundService.cs:line 88