p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/)
-   BOOK: Professional iPhone Programming with MonoTouch and .NET/C# (http://p2p.wrox.com/book-professional-iphone-programming-monotouch-net-c-593/)
-   -   Chapter 12: localization - ngenstrings.exe (http://p2p.wrox.com/book-professional-iphone-programming-monotouch-net-c/87843-chapter-12-localization-ngenstrings-exe.html)

fous June 26th, 2012 04:41 AM

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.

fous June 26th, 2012 06:03 AM

Does it works with strings in LocalizedString() metod only ?


All times are GMT -4. The time now is 10:23 PM.

Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
2013 John Wiley & Sons, Inc.