How to get access to config params?

Options
KEMBL
edited April 2010 in DotNet
Hi all, I needs small help with access to server config params.
	<Application
		Name="Lite"
		BaseDirectory="Lite\Lite"
		Assembly="Lite"
		Type="Lite.LiteApplication">
	</Application>

I wish to add my own parameters to this config, for example, like this:
	<Application
		Name="Lite"
		BaseDirectory="Lite\Lite"
		Assembly="Lite"
		Type="Lite.LiteApplication">
		     <Database server="my.server.com" port=4567>
                            <Account name="db_user" password="db_password"></Account>
		    </Database>
	</Application>

And now, I wish to access from .Net to server config for parse it and get my special configuration. How to do this?

Comments

  • Tobias
    Options
    Sorry, this is not supported directly. This particular XML is used for the Photon Core (the .exe).
    You can easily add application settings in DotNet and they are saved as XML, too. Just add them to your application directly.