[Mono-list] App.Config in Mono

Charlie Poole charlie at nunit.com
Sat Apr 18 17:05:59 EDT 2009


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: mono-list-bounces at lists.ximian.com 
> [mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Cleenex
> Sent: Saturday, April 18, 2009 5:35 AM
> To: mono-list at lists.ximian.com
> 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  -  Mono-list at lists.ximian.com 
> http://lists.ximian.com/mailman/listinfo/mono-list
> 





More information about the Mono-list mailing list