Hi David, I think you're out of look there. Normally all configuration is done through the Android SharedPreferences system. I don't think this is going to work.
Kind regards, Willem Meints Ontwikkelaar PDC -----Oorspronkelijk bericht----- Van: [email protected] [mailto:[email protected]] Namens david.chhang Verzonden: Monday, May 23, 2011 11:53 AM Aan: [email protected] Onderwerp: [mono-android] Problem with configuration manager Hi, I want to develop an Android application with Monodevelop, and i want to access to a app.config file. So, I put the System.configuration.dll in the references and add using System.Configuration. When I compile the program, it works, but when the application launch, it doesn't work... this is the code : base.OnCreate (bundle); var tv = new TextView(this); tv.Text = ConfigurationManager.AppSettings["utilisateur"]; SetContentView(tv); It is simple, just a test to know if the configuration manager works, and I have this message in the console : I/MonoDroid( 279): UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type 'System.Configuration.ConfigurationErrorsException' from assembly 'System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. I/MonoDroid( 279): at Test.Activity1.OnCreate (Android.OS.Bundle) <0x00047> I/MonoDroid( 279): at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) <0x0005f> I/MonoDroid( 279): at (wrapper dynamic-method) object.ff8541a0-fab1-4158-a6ca-70aef38b25a7 (intptr,intptr,intptr) <0x00033> E/mono ( 279): E/mono ( 279): Unhandled Exception: System.TypeLoadException: Could not load type 'System.Configuration.ConfigurationErrorsException' from assembly 'System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. E/mono ( 279): at Test.Activity1.OnCreate (Android.OS.Bundle bundle) [0x00000] in <filename unknown>:0 E/mono ( 279): at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (IntPtr jnienv, IntPtr native__this, IntPtr native_savedInstanceState) [0x00000] in <filename unknown>:0 E/mono ( 279): at (wrapper dynamic-method) object:ff8541a0-fab1-4158-a6ca-70aef38b25a7 (intptr,intptr,intptr) I have Monodevelop 2.6 beta 2 on Windows 7. I don't know what it means...somebody can help me please ? Thanks PS : I'am French and i don't speak English very well. Sorry. PS2 : I already post this message on MonoDevelop Forum but I don't see this forum that is maybe better for my problem. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Problem-with-configuration-manager-tp4418578p4418578.html Sent from the Mono for Android mailing list archive at Nabble.com. _______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid _______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
