Bug 51751 - btus-cert-sync | System.MethodAccessException: Method `Mono.Btls.BtlsCertSync:Main (string[])' is inaccessible from method `Mono.Net.Security.MonoTlsProviderFactory:IsBtlsSupported ()'
Summary: btus-cert-sync | System.MethodAccessException: Method `Mono.Btls.BtlsCertSync...
Status: RESOLVED FEATURE
Alias: None
Product: Tools
Classification: Mono
Component: other ()
Version: 4.8.0 (C9)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Martin Baulig
URL:
Depends on:
Blocks:
 
Reported: 2017-01-25 02:20 UTC by RobertN
Modified: 2017-04-03 15:39 UTC (History)
2 users (show)

Tags:
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 on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FEATURE

Description RobertN 2017-01-25 02:20:13 UTC
Mono JIT compiler version 4.8.0 (mono-4.8.0-branch/cd26828 Fri Jan 13 14:32:29 EST 2017)

Execute "btus-cert-sync" results in "System.MethodAccessException"
>btls-cert-sync

Unhandled Exception:
System.MethodAccessException: Method `Mono.Btls.BtlsCertSync:Main (string[])' is inaccessible from method `Mono.Net.Security.MonoTlsProviderFactory:IsBtlsSupported ()'

  at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_throw_method_access (intptr,intptr)
  at Mono.Btls.BtlsCertSync.Main (System.String[] args) [0x00000] in <ed40fd25ef8e4a8fbba4a220ea122772>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.MethodAccessException: Method `Mono.Btls.BtlsCertSync:Main (string[])' is inaccessible from method `Mono.Net.Security.MonoTlsProviderFactory:IsBtlsSupported ()'

  at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_throw_method_access (intptr,intptr)
  at Mono.Btls.BtlsCertSync.Main (System.String[] args) [0x00000] in <ed40fd25ef8e4a8fbba4a220ea122772>:0

>mono --version
Mono JIT compiler version 4.8.0 (mono-4.8.0-branch/cd26828 Fri Jan 13 14:32:29 EST 2017)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           normal
	SIGSEGV:       altstack
	Notification:  kqueue
	Architecture:  x86
	Disabled:      none
	Misc:          softdebug
	LLVM:          yes(3.6.0svn-mono-master/8b1520c)
	GC:            sgen
Comment 1 Martin Baulig 2017-04-03 15:39:08 UTC
We do not use the btls-cert-sync tool anymore, using cert-sync now automatically handles both the old and the new store.

The error that you're getting is because you have a stale version of 'btls-cert-sync' (which does not exist anymore) somewhere.