This article is a mirror article of machine translation, please click here to jump to the original article.

View: 22270|Reply: 0

[Source] [StackExchange.Redis.ServerEndPoint]' violates the constraint of type paramet...

[Copy link]
Posted on 7/22/2016 12:08:48 PM | | |
Method System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1[System.Boolean]. AwaitUnsafeOnCompleted: type argument 'Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[StackExchange.Redis.ServerEndPoint]' violates the constraint of type parameter 'TAwaiter'.


Original installation command:



net 40 project packages.config already has dependency on 1.1.10 updating nuspec as well.
with 1.1.9 customers run into following error:
Method System.Runtime.CompilerServices.AsyncTaskMethodBuilder 1[System.Boolean]. AwaitUnsafeOnCompleted: type argument 'Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable 1+ConfiguredTaskAwaiter[StackExchange.Redis.ServerEndPoint]' violates the constraint of type parameter 'TAwaiter'.
Descrip{filtering}tion: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Security.VerificationException: Method System.Runtime.CompilerServices.AsyncTaskMethodBuilder 1[System.Boolean]. AwaitUnsafeOnCompleted: type argument 'Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable 1+ConfiguredTaskAwaiter[StackExchange.Redis.ServerEndPoint]' violates the constraint of type parameter 'TAwaiter'.



https://github.com/StackExchange/StackExchange.Redis/pull/397

https://ci.appveyor.com/project/StackExchange/stackexchange-redis/build/1.0.155


Solution:



Execute it.







Previous:Redis method of hiding command-line windows
Next:asp.net Implement SSO single sign-on scheme with REDIS
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com