Bug 16667 - Lastest beta: mvvmcross project does not run on any simulator
Summary: Lastest beta: mvvmcross project does not run on any simulator
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Pre-release ()
Version: 7.0.4.x
Hardware: PC Windows
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-12-08 10:07 UTC by softlion
Modified: 2014-02-25 08:49 UTC (History)
5 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 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.

Related Links:
Status:
RESOLVED FIXED

Description softlion 2013-12-08 10:07:25 UTC
The error appears for all projects, each using MVVMCross Hot Tuna (from nuget),
for all simulator versions.

Unhandled Exception:
System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Uri ---> System.TypeInitializationException: An exception was th
rown by the type initializer for System.UriParser ---> System.TypeLoadException: Could not load type 'System.Runtime.Versioning.BinaryCompatibility' from assembly 'System'.
  --- End of inner exception stack trace ---
  at System.Uri..cctor () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Configuration.ConfigurationManager.EnsureConfigurationSystem () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at System.Configuration.Config
urationMstderr: anager.EnsureConfigurationSystem () [0x00000] in <filename unknown>:0 
2013-12-08 16:03:00.854 AcTouch[820:80b] Unhandled managed exception: Configuration system failed to initialize (System.Configuration.ConfigurationErrorsException)
  at System.Configuration.ConfigurationManager.EnsureConfigurationSystem () [0x00000] in <filename unknown>:0 
mono-rt: Stacktrace:


mono-rt: 
Native stacktrace:


mono-rt: 	0   AcTouch                             0x000b4d5d mono_handle_native_sigsegv + 349

m
ono-rt: 	1   AcTouch                             0x000bfd2a sigabrt_signal_handler + 122

mono-rt: 	2   libsystem_platform.dylib            0x053fddeb _sigtramp + 43

mono-rt: 	3   ???                                 0xffffffff 0x0 + 4294967295

mono-rt: 	4   libsystem_sim_c.dylib               0x0511ae12 abort + 127

mono-rt: 	5   AcTouch                             0x00232023 monotouch_unhandled_exception_handler + 291

mono-rt: 	6   AcTouch                             0x000b558b mono_invoke_unhandled_exc
eption_hook + 91stderr: 

mono-rt: 	7   AcTouch                             0x000b45a9 mono_handle_exception_internal + 3817

mono-rt: 	8   AcTouch                             0x000b36b9 mono_handle_exception + 41

mono-rt: 	9   AcTouch                             0x00058e09 mono_x86_throw_exception + 281

mono-rt: 	10  ???                                 0x0e4bfee7 0x0 + 239861479

mono-rt: 	11  ???                                 0x139685b8 0x0 + 328631736

mono-rt: 	12  ???                               
  0x13968570 0x0 + 328631664

mono-rt: 	13  ???                                 0x1396852c 0x0 + 328631596

mono-rt: 	14  ???                                 0x139684d4 0x0 + 328631508

mono-rt: 	15  ???                                 0x13967c34 0x0 + 328629300

mono-rt: 	16  ???                                 0x13967b44 0x0 + 328629060

mono-rt: 	17  ???                                 0x13967a58 0x0 + 328628824

mono-rt: 	18  ???                                 0x139679a4 0x0 + 328628644

mono-rt: 	19  
???                     stderr:             0x13967628 0x0 + 328627752

mono-rt: 	20  ???                                 0x139675a4 0x0 + 328627620

mono-rt: 	21  ???                                 0x13964268 0x0 + 328614504

mono-rt: 	22  ???                                 0x1396416e 0x0 + 328614254

mono-rt: 	23  ???                                 0x12278345 0x0 + 304579397

mono-rt: 	24  ???                                 0x122772a0 0x0 + 304575136

mono-rt: 	25  ???                                 
0x12277010 0x0 + 304574480

mono-rt: 	26  ???                                 0x12276ede 0x0 + 304574174

mono-rt: 	27  ???                                 0x12276672 0x0 + 304572018

mono-rt: 	28  ???                                 0x12276787 0x0 + 304572295

mono-rt: 	29  AcTouch                             0x000e4686 mono_jit_runtime_invoke + 790

mono-rt: 	30  AcTouch                             0x0017ea9f mono_runtime_invoke + 127

mono-rt: 	31  AcTouch                             0x002297f5 monotouch
_trampoline + 4005

mono-rt: 	32stderr:   UIKit                               0x0292df65 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 309

mono-rt: 	33  UIKit                               0x0292e7a5 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1536

mono-rt: 	34  UIKit                               0x02932fb8 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 824

mono-rt: 	35  UIKit                       
        0x0294742c -[UIApplication handleEvent:withNewEvent:] + 3447

mono-rt: 	36  UIKit                               0x02947999 -[UIApplication sendEvent:] + 85

mono-rt: 	37  UIKit                               0x02934c35 _UIApplicationHandleEvent + 736

mono-rt: 	38  GraphicsServices                    0x0606e2eb _PurpleEventCallback + 776

mono-rt: 	39  GraphicsServices                    0x0606ddf6 PurpleEventCallback + 46

mono-rt: 	40  CoreFoundation                      0x01578dd5 __CFRUNLOOP_IS_C
ALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTIONstderr: __ + 53

mono-rt: 	41  CoreFoundation                      0x01578b0b __CFRunLoopDoSource1 + 523

mono-rt: 	42  CoreFoundation                      0x015a37ec __CFRunLoopRun + 2156

mono-rt: 	43  CoreFoundation                      0x015a2b33 CFRunLoopRunSpecific + 467

mono-rt: 	44  CoreFoundation                      0x015a294b CFRunLoopRunInMode + 123

mono-rt: 	45  UIKit                               0x029326ed -[UIApplication _run] + 840

mono-rt: 	46  UI
Kit                               0x0293494b UIApplicationMain + 1225

mono-rt: 	47  ???                                 0x12273d64 0x0 + 304561508

mono-rt: 	48  ???                                 0x12272dc4 0x0 + 304557508

mono-rt: 	49  ???                                 0x12272b48 0x0 + 304556872

mono-rt: 	50  ???                                 0x12272bd7 0x0 + 304557015

mono-rt: 	51  AcTouch                             0x000e4686 mono_jit_runtime_invoke + 790

mono-rt: 	52  AcTouch                
             0x0017ea9f mono_runtime_invoke + 12stderr: 7

mono-rt: 	53  AcTouch                             0x00184313 mono_runtime_exec_main + 435

mono-rt: 	54  AcTouch                             0x001840b4 mono_runtime_run_main + 628

mono-rt: 	55  AcTouch                             0x0005107d mono_jit_exec + 93

mono-rt: 	56  AcTouch                             0x0021bdea main + 2426

mono-rt: 	57  AcTouch                             0x000032d5 start + 53

mono-rt: 	58  ???                           
      0x00000004 0x0 + 4

mono-rt: 
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================
Comment 1 Sebastien Pouliot 2013-12-09 14:43:46 UTC
There is no `System.Configuration` assembly, nor namespaces in assemblies, in the SDK shipped with Xamarin.iOS.

Your project must be including a version of System.dll* that comes from the full .NET framework (not the mobile profile) - either Mono or MS version.

It's impossible to diagnose without a full built log (with extra `-v -v -v -v`) or a self-contained test case.

* my guess from the exception/stack trace
Comment 2 softlion 2013-12-10 05:46:18 UTC
Hi again, sure :)

I have uninstalled beta version on vs and get back to stable version. The same solution deploys and works ok.

I won't have time to create a repro, as i don't want to install/uninstall beta again. It takes too much time.
Comment 3 Brendan Zagaeski (Xamarin Team, assistant) 2014-01-14 17:33:06 UTC
I suspect this bug is the same as bug 17028 (and bug 16718, and maybe bug 17190).

The report for bug #17028 has a workaround:
https://bugzilla.xamarin.com/show_bug.cgi?id=17028#c1
Comment 4 softlion 2014-02-25 08:48:54 UTC
Fixed on 7.0.7
Comment 5 softlion 2014-02-25 08:49:49 UTC
Fixed on 7.0.7 without app.config