C#: Calling grant on a EncryptionKey throws Parameter count mismatch
See original GitHub issueDescribe the bug Calling testKey.GrantEncryptDecrypt(new Anyone()); throws System.Reflection.TargetParameterCountException: Parameter count mismatch. on the GrantEncryptDecrypt or any Grant part
To Reproduce
var testKey = new EncryptionKey(this, "key", new EncryptionKeyProps
{
Description = "test key",
EnableKeyRotation = false,
Enabled = true,
Retain = false
});
testKey.GrantEncryptDecrypt(new Anyone());
Expected behavior The grant to happen, worked in 0.28
Version:
- Windows 10
- dotnet core 2.1, C#
- 0.29
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Parameter Count Mismatch - Stack Overflow
Your problem is that you're calling a two-parameter delegate with only one parameter. The following line label_sensorValue.
Read more >How to resolve the exception "Parameter count mismatch" is ...
When i'm trying to open the "Preview and Edit" window to change the grid properties, it throws "Parameter count mismatch" exception.
Read more >DevicePolicyManager - Android Developers
Any application calling an api may only pass as an argument a device administrator component it owns. Otherwise, a SecurityException will be thrown....
Read more >2 Server Error Message Reference - MySQL :: Developer Zone
Message: Illegal GRANT/REVOKE command; please consult the manual to see which ... Message: Incorrect parameter count in the call to native function '%s'....
Read more >kms - Amazon Web Services - Go SDK - AWS Documentation
All KMS API calls must be signed and be transmitted using Transport Layer Security ... This exception is thrown when the value of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This might be fixed in the next version.
Having save error when trying to addContainer to taskDefinition