Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional iPhone Programming with MonoTouch and .NET/C#
This is the forum to discuss the Wrox book Professional iPhone Programming with MonoTouch and .NET/C# by Wallace B. McClure, Rory Blyth, Craig Dunn, Chris Hardy, Martin Bowling ; ISBN: 978-0-470-63782-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional iPhone Programming with MonoTouch and .NET/C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old June 26th, 2012, 04:41 AM
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.
  #2 (permalink)  
Old June 26th, 2012, 06:03 AM
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 6 - Error messages and localization slaneyrw BOOK: Professional ASP.NET MVC 3 1 August 9th, 2011 05:34 PM
Generics chapter 12 difficult chapter i found ...? Larryz C# 2005 1 July 4th, 2007 09:40 PM
Chapter 12 .MAttButler BOOK: Professional Web Parts and Custom Controls ASP.NET ISBN: 0-7645-7860-X 5 September 10th, 2006 08:31 PM
Errors on Chapter 12 example(12.8) sonnie ASP.NET 2.0 Professional 2 June 7th, 2006 10:55 AM
example in chapter 12 peterml JSP Basics 0 August 23rd, 2003 08:11 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.