.NET

Reply
Distinguished Contributor
Posts: 132
Registered: ‎01-06-2003
Message 1 of 3 (170 Views)

Config XML INI share on network drive

170 Views, 2 Replies
05-19-2012 11:05 PM

I want to have an application settings file stored centrally on a network drive. In the past I have used INI files, and for a Windows app would now use an app.exe.config XML file. My question is: what is the preferred technique for storing shared settings centrally for an AutoCAD .dll plug-in? It seems even for a full Windows app that the app.exe.config file can't be located on a network drive, but I could be mistaken. In any case that doesn't appear an option for a .dll plug-in. Everyone comments that INI files "are so 90s", but I can't see an alternative. Thanks again for any and all comments. Dale   

*Expert Elite*
dgorsman
Posts: 4,723
Registered: ‎10-12-2006
Message 2 of 3 (136 Views)

Re: Config XML INI share on network drive

05-22-2012 07:56 AM in reply to: Dale.Bartlett

Stupid question time: is anything preventing you from just using a "normal" XML file on the network instead of app.exe.config?

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
Adopt. Adapt. Overcome. Or be overcome.
A good question will be halfway to a good answer.


Distinguished Contributor
Posts: 132
Registered: ‎01-06-2003
Message 3 of 3 (119 Views)

Re: Config XML INI share on network drive

05-23-2012 03:44 AM in reply to: dgorsman

No it's not a stupid question. There are lots of ways to store shared values, from simple text, INI, XML, etc. It is a very common requirement in a managed networked environment, and the tools to set these values are built into Dot Net 4.0 with the app.exe.config process. I'm happy with the suggestion of plain XML on the server if there is no "best practice" alternative. It seems that ConfigurationManager is able to be shared http://msdn.microsoft.com/en-us/library/ms224437.aspx but I am yet to test this. Also I am not sure this fits with a plug-in .dll rather than a Windows application .exe - bit of experimentation required. Of course it is hard to fault the tried and tested INI approach. Thanks for the response. Dale

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community