question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

C#: Calling grant on a EncryptionKey throws Parameter count mismatch

See original GitHub issue

Describe 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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
RomainMullercommented, Nov 4, 2019

This might be fixed in the next version.

1reaction
Kylia669commented, Aug 8, 2019

Having save error when trying to addContainer to taskDefinition

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found