в защищённом приложении проявляется ошибка:
Code: Select all
2021-03-10 23:28:25.028 [FTL] Exception
{ ThreadId: 7, ExceptionDetail: [("HResult": -2146233054), ("Message": "GenericArguments[0], 'TR', on '6B2F5301+3B3200AA[TR,TA]' violates the constraint of type parameter 'TR'."), ("Source": "fsapi"), ("TypeName": ""), ("Type": "System.TypeLoadException")] }
[2A3A4FF5.HandleRequestAsync] [RequestHandler.cs:196]
System.TypeLoadException: GenericArguments[0], 'TR', on '6B2F5301+3B3200AA[TR,TA]' violates the constraint of type parameter 'TR'.
at Task<string> 6B2F5301.RunAsync(string, CancellationToken)
at Task<string> 278542D9.78041C95(string, CancellationToken)
at async Task<string> 278542D9.RunAsync(string, CancellationToken)
at async Task<byte[]> 7DBF3DD9.65927295(byte[], CancellationToken)
at async Task 2A3A4FF5.0F532B9C(HttpListenerContext, CancellationToken)
Code: Select all
2021-03-10 23:33:59.041 [FTL] Exception
{ ThreadId: 7, ExceptionDetail: [("HResult": -2146233054), ("Message": "GenericArguments[0], 'TR', on 'fsapi.API.ProcessRequestCommon`2+<RunAsync>d__13[TR,TA]' violates the constraint of type parameter 'TR'."), ("Source": "fsapi"), ("TypeName": ""), ("Type": "System.TypeLoadException")] }
[fsapi.RequestHandler.HandleRequestAsync] [RequestHandler.cs:196]
System.TypeLoadException: GenericArguments[0], 'TR', on 'fsapi.API.ProcessRequestCommon`2+<RunAsync>d__13[TR,TA]' violates the constraint of type parameter 'TR'.
at Task<string> fsapi.API.ProcessRequestCommon<TR, TA>.RunAsync(string request, CancellationToken token)
at Task<string> fsapi.API.ProcessRequestServerState.<>n__0(?)
at async Task<string> fsapi.API.ProcessRequestServerState.RunAsync(string request, CancellationToken token)
at async Task<byte[]> fsapi.API.ProcessRequest.RunAsync(byte[] data, CancellationToken token)
at async Task fsapi.RequestHandler.HandleRequestAsync(HttpListenerContext context, CancellationToken token)
Если не обрабатывать VMP, то ошибки нет.