Search Unity

Build to Flash fail

Discussion in 'Flash' started by typehm, Dec 29, 2011.

  1. typehm

    typehm

    Joined:
    Jun 24, 2011
    Posts:
    161
    Hi,
    When I try to build my project with 3.5.06b. I got an error in console:

    Code (csharp):
    1. Failed to convert type <PrivateImplementationDetails>{341D0C8C-7AFA-47FF-AA0E-4A8E79CD2F55}: System.NotSupportedException: Default constructor missing from <PrivateImplementationDetails>{341D0C8C-7AFA-47FF-AA0E-4A8E79CD2F55}
    2.   at cil2as.Extensions.TypeDefinitionExtensions.MandatoryDefaultConstructor (Mono.Cecil.TypeDefinition typeDefinition) [0x00000] in <filename unknown>:0
    3.   at cil2as.Decompiler.Transforms.EraseConstructors.AddDefaultConstructorTo (ICSharpCode.NRefactory.CSharp.TypeDeclaration typeDeclaration) [0x00000] in <filename unknown>:0
    4.   at cil2as.Decompiler.Transforms.EraseConstructors.VisitTypeDeclaration (ICSharpCode.NRefactory.CSharp.TypeDeclaration typeDeclaration, System.Object data) [0x00000] in <filename unknown>:0
    5.   at ICSharpCode.NRefactory.CSharp.TypeDeclaration.AcceptVisitor[Object,Object] (IAstVisitor`2 visitor, System.Object data) [0x00000] in <filename unknown>:0
    6.   at ICSharpCode.NRefactory.CSharp.DepthFirstAstVisitor`2[System.Object,System.Object].VisitChildren (ICSharpCode.NRefactory.CSharp.AstNode node, System.Object data) [0x00000] in <filename unknown>:0
    7.   at ICSharpCode.NRefactory.CSharp.DepthFirstAstVisitor`2[System.Object,System.Object].VisitNamespaceDeclaration (ICSharpCode.NRefactory.CSharp.NamespaceDeclaration namespaceDeclaration, System.Object data) [0x00000] in <filename unknown>:0
    8.   at ICSharpCode.NRefactory.CSharp.NamespaceDeclaration.AcceptVisitor[Object,Object] (IAstVisitor`2 visitor, System.Object data) [0x00000] in <filename unknown>:0
    9.   at ICSharpCode.NRefactory.CSharp.DepthFirstAstVisitor`2[System.Object,System.Object].VisitChildren (ICSharpCode.NRefactory.CSharp.AstNode node, System.Object data) [0x00000] in <filename unknown>:0
    10.   at ICSharpCode.NRefactory.CSharp.DepthFirstAstVisitor`2[System.Object,System.Object].VisitCompilationUnit (ICSharpCode.NRefactory.CSharp.CompilationUnit unit, System.Object data) [0x00000] in <filename unknown>:0
    11.   at ICSharpCode.NRefactory.CSharp.CompilationUnit.AcceptVisitor[Object,Object] (IAstVisitor`2 visitor, System.Object data) [0x00000] in <filename unknown>:0
    12.   at cil2as.Decompiler.Transforms.DepthFirstAstTransform.Run (ICSharpCode.NRefactory.CSharp.AstNode node) [0x00000] in <filename unknown>:0
    13.   at cil2as.Decompiler.ActionScriptAstBuilder.ApplyTransforms (ICSharpCode.NRefactory.CSharp.AstNode node, IEnumerable`1 pipeline) [0x00000] in <filename unknown>:0
    14.   at cil2as.Decompiler.ActionScriptAstBuilder.ApplyTransformationPipelineTo (ICSharpCode.NRefactory.CSharp.AstNode node) [0x00000] in <filename unknown>:0
    15.   at cil2as.Decompiler.ActionScriptAstBuilder.AstFor (Mono.Cecil.TypeDefinition type) [0x00000] in <filename unknown>:0
    16.   at cil2as.ActionScriptGenerator.AstFor (Mono.Cecil.TypeDefinition type) [0x00000] in <filename unknown>:0
    17.   at cil2as.ActionScriptGenerator.Decompile (Mono.Cecil.TypeDefinition type) [0x00000] in <filename unknown>:0
    18.   at cil2as.ActionScriptGenerator.GenerateActionScriptCodeFor (Mono.Cecil.TypeDefinition type) [0x00000] in <filename unknown>:0
    19.   at cil2as.AssemblyConverter.ConvertTypesToActionScript () [0x00000] in <filename unknown>:0

    Does anybody know what's up with this error?
     
  2. BarryNorthern

    BarryNorthern

    Joined:
    Dec 5, 2011
    Posts:
    7
    Same version of Unity, same problem, different hex string (which I'm hoping may help direct me in some way to the offending type) ...

    Code (csharp):
    1. Failed to convert type <PrivateImplementationDetails>{[B]7FFFFEE5-CA43-4BD8-8322-3E3B4414ADB0[/B]}: System.NotSupportedException: Default constructor missing from <PrivateImplementationDetails>{7FFFFEE5-CA43-4BD8-8322-3E3B4414ADB0}
    2.   at cil2as.Extensions.TypeDefinitionExtensions.MandatoryDefaultConstructor (Mono.Cecil.TypeDefinition typeDefinition) [0x00000] in <filename unknown>:0
     
  3. BarryNorthern

    BarryNorthern

    Joined:
    Dec 5, 2011
    Posts:
    7