-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.MethodAccessException when calling Key.Activate #52
Comments
@samirem thanks for reporting this! I thought it was fixed in v4025 but the error still seems to persist. We are looking into a way to solve this. |
@samirem We released a pre-release as a part of PR #53. The compiled binaries can be downloaded here: https://github.com/Cryptolens/cryptolens-dotnet/releases/tag/v4.0.26 Could you please check if the error still persists? |
Hi! Unfortunately, the problem still persists:
|
@samirem thanks the details. Quick question: could you please tell me a bit more about the platform and project type where this error occurs? |
Sure, I'm developing a desktop application in WPF. My solution includes 5 C# projects, 3 of them .NET Standard 2.0, and 2 of them .NET Framework 4.6.1 (1 WPF project and 1 Class Library). The call to |
@samirem Thanks! I created a WPF C# project targeting .NET 4.6.1 on Windows 10 and tried it in both debug and release mode, but I'm not able to reproduce the error. Could you please check if Helpers.GetMachineCodePI works better? |
I actually tried calling See snippet below:
|
It's quite strange why it returns this error even if the machine code methods are not called. I have attached a sample WPF application, when you run it, do you get the same error? |
I could run your sample app without any errors. It worked to call |
Ok I have finally isolated the problem. It is related to having the nuget package ReactiveUI.Events.WPF installed. |
Hi @artemlos! I wanted to check if this issue has been resolved for me, but unfortunately I cannot check due to my trial running out. Did try to contact you via email but haven't gotten any response yet 😄 |
I'm trying to call
Key.Activate
, but I get the following exception:Running version 4.0.25.
I've tried mixing around with attributes such as
[assembly: SecurityRules(SecurityRuleSet.Level2)]
without any success so far.The text was updated successfully, but these errors were encountered: