Bug 7717 - Error MT0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com (MT0000)
Summary: Error MT0000: Unexpected error - Please file a bug report at http://bugzilla....
Status: RESOLVED DUPLICATE of bug 7712
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools ()
Version: 6.0.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2012-10-08 03:54 UTC by sean.blakemore
Modified: 2012-10-08 06:36 UTC (History)
2 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 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:

Description sean.blakemore 2012-10-08 03:54:30 UTC
Error MT0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com (MT0000)
Comment 1 sean.blakemore 2012-10-08 03:59:37 UTC
Trying to make a build of FluentValidation for MonoTouch. I have created a MT library and linked in the files and this builds fine. When I try to use any code from the the MT library in an MT iPad app I get to error in the title when trying to build.

Build Output:
Building Solution: FluentValidation (Release)

Building: MonoTouchTest (Release|iPhoneSimulator)
Performing main compilation...
/Developer/MonoTouch/usr/bin/smcs /noconfig "/out:/Users/seanb/Desktop/fluentvalidation-07e69a1a077b/MonoTouchTest/bin/iPhoneSimulator/Release/MonoTouchTest.exe" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll" "/r:/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll" "/r:/Users/seanb/Desktop/fluentvalidation-07e69a1a077b/MonoTouchLibraryTest/bin/Release/MonoTouchLibraryTest.dll" /nologo /warn:4 /optimize+ /codepage:utf8 /t:exe "/Users/seanb/Desktop/fluentvalidation-07e69a1a077b/MonoTouchTest/Main.cs" "/Users/seanb/Desktop/fluentvalidation-07e69a1a077b/MonoTouchTest/AppDelegate.cs" "/Users/seanb/Desktop/fluentvalidation-07e69a1a077b/MonoTouchTest/MonoTouchTestViewController.cs" "/Users/seanb/Desktop/fluentvalidation-07e69a1a077b/MonoTouchTest/MonoTouchTestViewController.designer.cs" 
Compilation succeeded - 1 warning(s)

/Users/seanb/Desktop/fluentvalidation-07e69a1a077b/MonoTouchTest/MonoTouchTestViewController.cs(30,29): warning CS0219: The variable `m' is assigned but its value is never used

Build complete -- 0 errors, 1 warning

Compiling to native code
/Developer/MonoTouch/usr/bin/mtouch -sdkroot "/Applications/Xcode.app/Contents/Developer" -v --cache "/Users/seanb/Desktop/fluentvalidation-07e69a1a077b/MonoTouchTest/obj/Release/mtouch-cache" --nomanifest --nosign -sim "/Users/seanb/Desktop/fluentvalidation-07e69a1a077b/MonoTouchTest/bin/iPhoneSimulator/Release/MonoTouchTest.app" -r "/Users/seanb/Desktop/fluentvalidation-07e69a1a077b/MonoTouchLibraryTest/bin/Release/MonoTouchLibraryTest.dll" -r "/Developer/MonoTouch/usr/lib/mono/2.1/System.dll" -r "/Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll" -r "/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll" -r "/Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll" -nolink -sdk "6.0" -targetver "5.0" --armv7 "-v" "-v" "-v" "/Users/seanb/Desktop/fluentvalidation-07e69a1a077b/MonoTouchTest/bin/iPhoneSimulator/Release/MonoTouchTest.exe"
MonoTouch version using framework: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk
error MT0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com
System.ArgumentOutOfRangeException: Index is less than 0 or more than or equal to the list count.
Parameter name: index
  at System.Collections.ArrayList.ThrowNewArgumentOutOfRangeException (System.String name, System.Object actual, System.String message) [0x00000] in <filename unknown>:0 
  at System.Collections.ArrayList.get_Item (Int32 index) [0x00000] in <filename unknown>:0 
  at System.Collections.CollectionBase.System.Collections.IList.get_Item (Int32 index) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.GenericParameterCollection.get_Item (Int32 index) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ReflectionReader.GetTypeRefFromSig (Mono.Cecil.Signatures.SigType t, Mono.Cecil.GenericContext context) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ReflectionReader.CompleteParameter (Mono.Cecil.ParameterDefinition parameter, Mono.Cecil.Signatures.Param signature, Mono.Cecil.GenericContext context) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ReflectionReader.BuildParameterDefinition (System.String name, Int32 sequence, ParameterAttributes attrs, Mono.Cecil.Signatures.Param psig, Mono.Cecil.GenericContext context) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ReflectionReader.CompleteMethods () [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ReflectionReader.VisitTypeDefinitionCollection (Mono.Cecil.TypeDefinitionCollection types) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.AggressiveReflectionReader.VisitTypeDefinitionCollection (Mono.Cecil.TypeDefinitionCollection types) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ReflectionReader.VisitModuleDefinition (Mono.Cecil.ModuleDefinition mod) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.StructureReader.TerminateAssemblyDefinition (Mono.Cecil.AssemblyDefinition asm) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.AssemblyDefinition.Accept (IReflectionStructureVisitor visitor) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.AssemblyFactory.GetAssembly (Mono.Cecil.Binary.ImageReader irv, Boolean manifestOnly) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.AssemblyFactory.GetAssembly (Mono.Cecil.Binary.ImageReader reader) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.AssemblyFactory.GetAssembly (System.String file) [0x00000] in <filename unknown>:0 
  at MonoTouch.Tuner.MonoTouchResolver.ReadAssembly (System.String file) [0x00000] in <filename unknown>:0 
  at MonoTouch.Tuner.MonoTouchResolver.AddAssembly (System.String fileName) [0x00000] in <filename unknown>:0 
  at MonoTouch.Tuner.MonoTouchResolver.SearchDirectory (System.String name, System.String directory) [0x00000] in <filename unknown>:0 
  at MonoTouch.Tuner.MonoTouchResolver.Resolve (Mono.Cecil.AssemblyNameReference reference) [0x00000] in <filename unknown>:0 
  at MonoTouch.Tuner.MonoTouchResolver.Resolve (System.String fullName) [0x00000] in <filename unknown>:0 
  at MonoTouch.Tuner.MonoTouchResolver.GetAssembly (System.String fileName) [0x00000] in <filename unknown>:0 
  at MTouch.ExtractNativeLinkInfo (System.String project_root, System.Collections.Generic.List`1 references) [0x00000] in <filename unknown>:0 
  at MTouch.Main2 (System.String[] args) [0x00000] in <filename unknown>:0 
  at MTouch.Main (System.String[] args) [0x00000] in <filename unknown>:0 

---------------------- Done ----------------------

Build: 1 error, 1 warning
Comment 2 Rolf Bjarne Kvinge [MSFT] 2012-10-08 06:36:00 UTC
This looks identical to bug #7712.

I'm closing this as a duplicate, but we're looking for a test case for bug #7712, so if you have one available (or can easily create one), I'd appreciate it if you could attach it (either here or in bug #7712).

*** This bug has been marked as a duplicate of bug 7712 ***