Bug 59221 - System.MissingMethodException: Method 'System.Security.Cryptography.ECDsaCng.set_HashAlgorithm' not found
Summary: System.MissingMethodException: Method 'System.Security.Cryptography.ECDsaCng....
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Core ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2017-09-05 02:11 UTC by Peter Yang
Modified: 2017-09-11 11:12 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 59221 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Peter Yang 2017-09-05 02:11:19 UTC
Hi Supported Team,

I'm working on a .NET project that needs to run on Linux. In my project, we use IdentityServer4 to implement our authentication. It can work well on Windows OS, but when it runs on Linux, it throws an unhandled exception: System.MissingMethodException: Method 'System.Security.Cryptography.ECDsaCng.set_HashAlgorithm' not found. I view the source code and find it call ECDsaCng inside. So I created an simple like below and ran it on Linux with Mono and get the same exception.

The following code snippet is my testing code:

public static void Main(string[] args)
    ECDsaCng ecdsaCng = new ECDsaCng();
    ecdsaCng.HashAlgorithm = new CngAlgorithm(string.Empty)

My develop environment information:

.NET Framework: 4.5.2
Mono: (tarball Mon Aug 14 15:46:12 UTC 2017)
Ubuntu: 16.04