Bug 7469 - "mdtool build" crashes with System.TypeInitializationException
Summary: "mdtool build" crashes with System.TypeInitializationException
Status: RESOLVED NORESPONSE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Project Model ()
Version: 3.0.x
Hardware: PC Windows
: Normal normal
Target Milestone: master
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-09-26 09:45 UTC by Vladimir Shalimov
Modified: 2016-10-18 12:12 UTC (History)
4 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 NORESPONSE

Description Vladimir Shalimov 2012-09-26 09:45:31 UTC
Here is command line output.

C:\Work\Test\TestConsole>"C:\Program Files (x86)\MonoDevelop\bin\mdtool.exe" --v
erbose build
MonoDevelop Build Tool
The type initializer for 'MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectSer
vice' threw an exception.
FATAL ERROR [2012-09-26 17:26:15Z]: System.TypeInitializationException: The type
 initializer for 'MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectService' th
rew an exception. ---> System.BadImageFormatException: Could not load file or as
sembly 'MonoDevelop.Projects.Formats.MSBuild, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=null' or one of its dependencies. Была сделана попытка загрузить
программу, имеющую неверный формат.
   at MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectService..cctor()
   --- End of inner exception stack trace ---
   at MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectService.FindHandlerForF
ile(FilePath file)
   at MonoDevelop.Projects.Formats.MSBuild.MSBuildFileFormat.CanReadFile(FilePat
h file, Type expectedType)
   at MonoDevelop.Projects.FileFormatManager.GetFileFormats(String fileName, Typ
e expectedType)
   at MonoDevelop.Projects.ProjectService.IsSolutionItemFileInternal(String file
name)
   at MonoDevelop.Projects.DefaultProjectServiceExtension.IsSolutionItemFile(Str
ing filename)
   at MonoDevelop.Projects.ProjectServiceExtension.IsSolutionItemFile(String fil
eName)
   at MonoDevelop.Projects.ProjectServiceExtension.IsSolutionItemFile(String fil
eName)
   at MonoDevelop.Projects.ProjectServiceExtension.IsSolutionItemFile(String fil
eName)
   at MonoDevelop.Projects.ProjectServiceExtension.IsSolutionItemFile(String fil
eName)
   at MonoDevelop.Projects.ProjectServiceExtension.IsSolutionItemFile(String fil
eName)
   at MonoDevelop.Projects.CompiledAssemblyExtension.IsSolutionItemFile(String f
ileName)
   at MonoDevelop.Projects.ProjectServiceExtension.IsSolutionItemFile(String fil
eName)
   at MonoDevelop.Projects.ProjectServiceExtension.IsSolutionItemFile(String fil
eName)
   at MonoDevelop.Projects.ProjectService.IsSolutionItemFile(String filename)
   at MonoDevelop.Projects.BuildTool.Run(String[] arguments)
   at MonoDevelop.Core.ApplicationService.StartApplication(String appId, String[
] parameters)

-------------------------------------

Environment:

MonoDevelop 3.0.4.7
Installation UUID: 8242579b-32f0-4a42-8041-f4c693234f51
Runtime:
	Microsoft .NET 4.0.30319.1
	GTK 2.16.6
	GTK# (2.12.0.0)
Mono for Android: 4.2.6
Android SDK: C:\android-sdk
	Supported Android versions:
		1.6   (API level 4)
		2.1   (API level 7)
		2.2   (API level 8)
		2.3   (API level 10)
		3.1   (API level 12)
		3.2   (API level 13)
		4.0   (API level 14)
		4.0.3 (API level 15)
		4.1   (API level 16)

Java SDK: C:\Program Files (x86)\Java\jdk1.6.0_27
No build info
Operating System:
	Windows 6.1.7600.0 (64-bit)

------------------------------------

Crash happens also when I try to build actual project, usin more command line parameters.
Comment 1 Lluis Sanchez 2015-08-21 07:03:37 UTC
Old bug. Is this still an issue?
Comment 2 iain 2016-10-18 12:12:49 UTC
We have not received the requested information. If you are still experiencing this issue please provide all the requested information and re-open the bug report. Thanks