Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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
Developer Community or GitHub 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.
Using the code on BZ#8746
If I compile and run this from my Mac to either my Nexus or S2, I get an X509 (open store) error returned. If I run the exact same code using the VS2010 plugin from my PC and deploy, I hit no problems at all
The code has to be run with DEBUG switched on - you don't see any issue on release via the Mac or PC.
I'm unable to reproduce on a Nexus 10. I see no X509 errors.
Created attachment 3228 [details]
Video showing the crash
I have done a clean build, and deployed to my nexus 7. This is with MD 3.1.1 using M4A 4.4.54. This in debug mode. I don't see anything when I build on the PC using the same version of m4a
Since it's a Crypto error, where's it coming from? Presumably you're hitting a HTTPS URI; what is it?
Once you find the URI, what happens if you enter it into Browser on the same device? Are you able to view it w/o any dialogs or messages?
Created attachment 3229 [details]
zip archive of logcat throwback
Attachment 3229 [details] doesn't contain the CryptographicException. :-(
What happens if you Run > Start Without Debugging instead of Run > Start Debugging? Do you still get the exception? I wonder if the exception is on the MonoDevelop side of things; does $HOME/Library/Logs/MonoDevelop-3.0/MonoDevelop.log contain any CryptographicExceptions?
Created attachment 3230 [details]
Without debugging, life is good and it does as it should. The monodev throwback has some bits in, but no crypto errors from what I can see
Is it possible that you're still catching all exceptions, and that this is just an internal exception that you shouldn't be seeing in the first place?
Within MonoDevelop, click Run > Exceptions....
Select all within the Stop in exceptions section.
Click the Left arrow.
Stop in exceptions should now be empty.
Do you still get the exception?
ok, remove all exceptions lets it run without an problem :)
any ideas which exception is being thrown that I shouldn't be seeing?
As I explained in bug 8746, the CryptographicException not a bug. It is caught and handled internally in Mono, and is only being shown in the debugger because catchpoints are enabled. The exception shown in your video is caught and handled here: https://github.com/mono/mono/blob/master/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs#L282
What do you mean "exception is being thrown that I shouldn't be seeing"?
which of the exceptions that has been caught and handled in https://github.com/mono/mono/blob/master/mcs/class/System/System.Security.Cryptography.X509Certificates/X509Chain.cs#L282 is the one on the exceptions list that when cleared makes the error go away
It's not an error if the consuming code thinks it's safe to catch and silently discard it...
Here it is, anyway:
It will be shown in the debugger if you have a catchpoint for System.Security.Cryptography.CryptographicException, System.SystemException or System.Exception (because CryptographicException subclasses SystemException, which subclasses Exception).
As per above comments changing the status to Verified.