View Single Post
  #1 (permalink)  
Old June 26th, 2012, 04:41 AM
fous fous is offline
Registered User
Points: 8, Level: 1
Points: 8, Level: 1 Points: 8, Level: 1 Points: 8, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 12: localization - ngenstrings.exe

I tried to use 'ngenstrings.exe' for my application localization.
For: mono ngenstrings.exe Localization02.exe - it was OK.
But: mono ngenstrings.exe MyApp.exe - exeptions occured

jiri-mac-mini:Applications jpa$ mono ngenstrings.exe TaskPoolMobile.exe

Unhandled Exception: Mono.Cecil.ReflectionException: Can not disassemble assembly ---> System.InvalidOperationException: Operation is not valid due to the current state of the object
at Mono.Cecil.TypeSpecification.set_IsValueType (Boolean value) [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.BuildParameterDefiniti on (System.String name, Int32 sequence, ParamAttributes 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.VisitTypeDefinitionCol lection (Mono.Cecil.TypeDefinitionCollection types) [0x00000] in <filename unknown>:0
at Mono.Cecil.AggressiveReflectionReader.VisitTypeDef initionCollection (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.TerminateAssemblyDefini tion (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 (System.String file) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at Mono.Cecil.AssemblyFactory.GetAssembly (System.String file) [0x00000] in <filename unknown>:0
at ngenstrings.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: Mono.Cecil.ReflectionException: Can not disassemble assembly ---> System.InvalidOperationException: Operation is not valid due to the current state of the object
at Mono.Cecil.TypeSpecification.set_IsValueType (Boolean value) [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.BuildParameterDefiniti on (System.String name, Int32 sequence, ParamAttributes 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.VisitTypeDefinitionCol lection (Mono.Cecil.TypeDefinitionCollection types) [0x00000] in <filename unknown>:0
at Mono.Cecil.AggressiveReflectionReader.VisitTypeDef initionCollection (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.TerminateAssemblyDefini tion (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 (System.String file) [0x00000] in <filename unknown>:0
--- End of inner exception stack trace ---
at Mono.Cecil.AssemblyFactory.GetAssembly (System.String file) [0x00000] in <filename unknown>:0
at ngenstrings.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0
jiri-mac-mini:Applications jpa$

What is wrong?

Thanks.
Reply With Quote