Bug 17726 - Monogame app is crashing with System.Reflection.ReflectionTypeLoadException:System.Core
Summary: Monogame app is crashing with System.Reflection.ReflectionTypeLoadException:S...
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Debugger ()
Version: 1.10.x
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2014-02-12 09:29 UTC by Prashant Cholachagudda
Modified: 2016-09-15 17:02 UTC (History)
9 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 on 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:

Description Prashant Cholachagudda 2014-02-12 09:29:20 UTC
Every time user try to build the Monogame app from Visual Studio, the app crashes with following exception.

Could not load 'System.Core' for registration: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
  at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Reflection/Assembly.cs:351 
  at MonoTouch.Registrar.OldDynamicRegistrar.RegisterAssembly (System.Reflection.Assembly a) [0x00000] in /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/OldDynamicRegistrar.cs:67 

However the same project builds successfully on Mac with Xamarin Studio.

Complete build log available here: https://gist.github.com/prashantvc/bb6f88b5faad7b88492b
Comment 2 Vinicius Jarina 2014-02-18 14:07:24 UTC
Hi Prashant

This seem to be a runtime issue.

Can you repro this in a small program? or send the part that is crashing to repro the problem here?

Thank you
Comment 3 Parmendra Kumar 2015-07-14 09:53:47 UTC

Could you please provide us a sample project? so that we can reproduce this issue at our end.

Comment 4 Akhilesh kumar 2016-09-15 17:01:45 UTC
As these is no response on the bug, so I am closing this issue.

Please feel free to reopen it again if you have any concern or suggestion for the same.