Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ConvertToType in mmString class
Message
De
22/07/2004 08:33:14
Filip Bruman
Kirschberg Holding
Copenhagen, Denmark
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00926919
Message ID:
00926963
Vues:
21
Thanks a bunch, you saved my day :)

>I had a similar problem with a web-based application. You apparently need to do two things: 1) if you do not have the MM.NET localization database tables defined, you will need to run C:\Program Files\Mere Mortals .NET Framework 2003\Wizards\Scripts\MMLocalize.sql. Then you will need to make sure that you have the appropriate app keys for localization (even if you are not using it) in your config file... somthing like this:
>
>
><add key="MessageDatabaseKey" value="MyDataBase" />
><add key="LocalizeApp" value="false" />
><add key="DefaultLanguage" value="1" />
>
>
>The DefaultLanguage value is the primary key to the default language specified in the Language table. In the above example, the pk points to the English row.
>
>Of course, if you are using localization, then set the LocalizeApp value to True.
>
>I don't know if that was the intended behavior that it is required to have the localization tables and config app keys even if your are not using localization... however, if you do the above your applciation should run.
>
>Hope this is of some help to you.
>
>Regards,
>Carl.
>
>>We have just installed Mere Mortals .NET Framework 1.2 with success and built our solution.
>>When starting the windows application an exception is thrown and the following debug info. can be found in the Output window.
>>
>>
An unhandled exception of type 'System.ArgumentNullException' occurred in mscorlib.dll
>>
>>Additional information: Value cannot be null.
>>
>>
>>Unhandled Exception: System.ArgumentNullException: Value cannot be null.
>>Parameter name: String
>>   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
>>   at System.Int32.Parse(String s, NumberStyles style, IFormatProvider provider)
>>   at System.Int32.Parse(String s, NumberStyles style)
>>   at OakLeaf.MM.Main.mmString.ConvertToType(String stringValue, String type)
>>   at OakLeaf.MM.Main.Globalization.mmLanguageManager..ctor()
>>   at OakLeaf.MM.Main.Patterns.mmFactory.CreateLanguageManager()
>>   at OakLeaf.MM.Main.mmAppBase.get_LanguageMgr()
>>   at OakLeaf.MM.Main.Windows.Forms.mmBaseForm..ctor()
>>   at OakLeaf.MM.Main.Windows.Forms.mmBusinessBaseForm..ctor()
>>   at OakLeaf.MM.Main.Windows.Forms.mmEntityBusinessForm..ctor()
>>   at OakLeaf.MM.Main.Windows.Forms.mmBusinessForm..ctor()
>>   at OakLeaf.MM.Main.Windows.Forms.mmExceptionForm..ctor(String exception, String stackTrace)
>>   at KireconHolding.[...].Main.Main.AppMainEntry.Main() in C:\[...] has exited with code 0 (0x0).
>>
>>Any suggestions are welcome.
>>
>>Regards
>>
>>-Filip
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform