Bug 29627 - Build fails after upgrade to Xamarin Studio 5.9 - Mono.Cecil.ResolutionException: Failed to resolve System.Security.Permissions.FileIOPermissionAccess
Summary: Build fails after upgrade to Xamarin Studio 5.9 - Mono.Cecil.ResolutionExcept...
Status: RESOLVED DUPLICATE of bug 28918
Alias: None
Product: iOS
Classification: Xamarin
Component: Tools (show other bugs)
Version: XI 8.10
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-04-30 21:28 UTC by Nick Tindall
Modified: 2015-04-30 23:23 UTC (History)
2 users (show)

See Also:
Tags:
Is this bug a regression?: ---
Last known good build:


Attachments

Description Nick Tindall 2015-04-30 21:28:57 UTC
When we attempt to build the iOS app after the upgrade we get the following exception:

MTOUCH: error MT0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com
Mono.Cecil.ResolutionException: Failed to resolve System.Security.Permissions.FileIOPermissionAccess
  at Mono.Cecil.Mixin.CheckedResolve (Mono.Cecil.TypeReference self) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.SignatureReader.ReadCustomAttributeEnum (Mono.Cecil.TypeReference enum_type) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.SignatureReader.ReadCustomAttributeElementValue (Mono.Cecil.TypeReference type) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.SignatureReader.ReadCustomAttributeElement (Mono.Cecil.TypeReference type) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.SignatureReader.ReadCustomAttributeFixedArgument (Mono.Cecil.TypeReference type) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.SignatureReader.ReadCustomAttributeNamedArgument (Mono.Collections.Generic.Collection`1& fields,
      Mono.Collections.Generic.Collection`1& properties) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.SignatureReader.ReadCustomAttributeNamedArguments (UInt16 count, Mono.Collections.Generic.Collection`1& fields,
      Mono.Collections.Generic.Collection`1& properties) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.SignatureReader.ReadSecurityAttribute () [0x00000] in <filename unknown>:0 
  at Mono.Cecil.MetadataReader.ReadSecurityDeclarationSignature (Mono.Cecil.SecurityDeclaration declaration) [0x00000] in <filename
      unknown>:0 
  at Mono.Cecil.SecurityDeclaration.<Resolve>m__1 (Mono.Cecil.SecurityDeclaration declaration, Mono.Cecil.MetadataReader reader) [0x00000]
      in <filename unknown>:0 
  at Mono.Cecil.ModuleDefinition.Read[SecurityDeclaration,SecurityDeclaration] (Mono.Cecil.SecurityDeclaration item, System.Func`3 read)
      [0x00000] in <filename unknown>:0 
  at Mono.Cecil.SecurityDeclaration.Resolve () [0x00000] in <filename unknown>:0 
  at Mono.Cecil.SecurityDeclaration.get_SecurityAttributes () [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ImmediateModuleReader.ReadSecurityDeclarations (ISecurityDeclarationProvider provider) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ImmediateModuleReader.ReadMethods (Mono.Cecil.TypeDefinition type) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ImmediateModuleReader.ReadType (Mono.Cecil.TypeDefinition type) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ImmediateModuleReader.ReadTypes (Mono.Collections.Generic.Collection`1 types) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ImmediateModuleReader.ReadModule (Mono.Cecil.ModuleDefinition module) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ModuleWriter.WriteModuleTo (Mono.Cecil.ModuleDefinition module, System.IO.Stream stream, Mono.Cecil.WriterParameters
      parameters) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ModuleDefinition.Write (System.IO.Stream stream, Mono.Cecil.WriterParameters parameters) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.ModuleDefinition.Write (System.String fileName, Mono.Cecil.WriterParameters parameters) [0x00000] in <filename unknown>:0 
  at Mono.Cecil.AssemblyDefinition.Write (System.String fileName, Mono.Cecil.WriterParameters parameters) [0x00000] in <filename unknown>:0
      
  at MTouch.SaveAssembly (Mono.Cecil.AssemblyDefinition assembly, System.String destination) [0x00000] in <filename unknown>:0 
  at MonoTouch.Assembly.RemoveResources (Boolean remove_resources, System.String target_directory, System.String nores_directory) [0x00000]
      in <filename unknown>:0 
  at MonoTouch.Target.ProcessAssemblies () [0x00000] in <filename unknown>:0 
  at MonoTouch.Application.BuildApp () [0x00000] in <filename unknown>:0 
  at MonoTouch.Application.Build () [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
Comment 1 Sebastien Pouliot 2015-04-30 23:23:11 UTC

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

Note You need to log in before you can comment on or make changes to this bug.