Does anyone know what it means when the DotNETConnect Code Generator throws the exception: ‘System.ArgumentException: Culture name ''neutral'' is not supported.’ The entire string is: 'System.ArgumentException: Culture name ''neutral'' is not supported. Parameter name: name at System.Globalization.CultureTableRecord..ctor(String cultureName, Boolean useUserOverride) at System.Globalization.CultureTableRecord.GetCultureTableRecord(String name, Boolean useUserOverride) at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride) at System.Globalization.CultureInfo..ctor(String name) at System.Reflection.AssemblyName.nGetFileInformation(String s) at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile) at Heeg.ReflectionProxy.Static_System_Reflection_AssemblyName_GetAssemblyName(ReflectionProxy* , return_type* vwReturnValue, Char* assemblyFile)' Charles Adams _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Hi Charles,
according to http://msdn.microsoft.com/de-de/library/system.reflection.assemblyname.getassemblyname.aspx, an ArgumentException is raised if assemblyFile is invalid, such as an assembly with an invalid culture. However, the majority of the assemblies I have seen and used have Culture ''neutral'', this alone does not trigger the error. E.g. the mscorlib, which is used by the Code Generator, has Culture ''neutral''. Find attached a version of GACReader>>readAssemblies that will catch this error. It is untested, as I have never seen this exception. Regards, Ralf Propach Adams, Charles wrote: > Does anyone know what it means when the DotNETConnect Code Generator > throws the exception: > > > > 'System.ArgumentException: Culture name ''neutral'' is not supported.' > > > > The entire string is: > > > > 'System.ArgumentException: Culture name ''neutral'' is not supported. > > > > Parameter name: name > > > > at System.Globalization.CultureTableRecord..ctor(String cultureName, > Boolean useUserOverride) > > > > at > System.Globalization.CultureTableRecord.GetCultureTableRecord(String > name, Boolean useUserOverride) > > > > at System.Globalization.CultureInfo..ctor(String name, Boolean > useUserOverride) > > > > at System.Globalization.CultureInfo..ctor(String name) > > > > at System.Reflection.AssemblyName.nGetFileInformation(String s) > > > > at System.Reflection.AssemblyName.GetAssemblyName(String > assemblyFile) > > > > at > Heeg.ReflectionProxy.Static_System_Reflection_AssemblyName_GetAssemblyNa > me(ReflectionProxy* , return_type* vwReturnValue, Char* assemblyFile)' > > > > > > > > Charles Adams > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc -- Ralf Propach, [hidden email] Tel: +49 231 975 99 38 Fax: +49 231 975 99 20 Georg Heeg eK (Dortmund) Handelsregister: Amtsgericht Dortmund A 12812 <?xml version="1.0"?> <st-source> <time-stamp>From VisualWorks®, 7.8 of 30. März 2011 on 22. Juni 2011 at 14:37:27</time-stamp> <methods> <class-id>DotNETUtils.GACReader</class-id> <category>accessing</category> <body package="DotNETBrowser" selector="readAssemblies">readAssemblies "Information for an assembly is located in a property file that is located inside the Global Assembly Cache area in the Windows directory" | gacDirectories lastAssembly test | assemblies := OrderedCollection new. gacDirectories := self class getAssemblyDirectories. gacDirectories do: [:eachGACDir | eachGACDir directoryContents do: [:anAssemblyName | [assemblies add: (GACAssemblyNode readVersions: eachGACDir for: anAssemblyName)]on: Error do: [:ex|] ]]. assemblies add: GACAssemblyNode mscorlib. assemblies := assemblies asSortedCollection: [:a :b | a name < b name]. lastAssembly := GACAssemblyNode new. "merge duplicates" assemblies := assemblies reject: [:each | test := each name = lastAssembly name. test ifTrue: [lastAssembly versions addAll: each versions associations] ifFalse: [lastAssembly := each]. test].</body> </methods> </st-source> _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |