Just as with Windows, Mono expects the config to have the name of the exe plus '.config' - for example, for the xxx.exe, the config is xxx.exe.config.
Visual Studio uses a convention of renaming the App.config file correctly and copying it to the output directory. Depending on how you are creating your exe, you may need to do that yourself. Charlie > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Cleenex > Sent: Saturday, April 18, 2009 5:35 AM > To: [email protected] > Subject: [Mono-list] App.Config in Mono > > > I'm familiar with .NET on Windows and now I wish to try Mono on Linux. > One problem I'm having is with the App.config file. > > It just doesn't seem to work(I'm using MonoDevelop)=>Object > reference not set to an instance of an object > > I've already googled and 1 suggestion was to rename > app.config to foo.config(for an foo.exe) and put it in the > same directory. > But I still get the same error=>Object reference not set to > an instance of an object > -- > View this message in context: > http://www.nabble.com/App.Config-in-Mono-tp23112459p23112459.html > Sent from the Mono - General mailing list archive at Nabble.com. > > _______________________________________________ > Mono-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list > _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
