By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,334 Members | 1,388 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,334 IT Pros & Developers. It's quick & easy.

app.config missing in setup

P: n/a
Hi,

When building my C#-dll, it creates the MyApplication.dll.config in the
Release\bin\-directory.
But when installing via a Setup, it doesn't copy this file.

Any idea why this could happen? and a solution?

Thanks a lot in advance,

Pieter
Apr 3 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi,
"Pieter" <pi**********@hotmail.com> wrote in message
news:uq**************@TK2MSFTNGP14.phx.gbl...
Hi,

When building my C#-dll, it creates the MyApplication.dll.config in the
Release\bin\-directory.


Not, it does not, a dll does not have a config associated.

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Apr 3 '06 #2

P: n/a
Ok thanks!
and what if I add it manually, and I want to force it to read a given
app.config-file, how do I have to do that?

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:ep**************@TK2MSFTNGP10.phx.gbl...
Not, it does not, a dll does not have a config associated.

Apr 4 '06 #3

P: n/a
Nezver mind, I did it with an XML-file:

XmlDocument doc = new XmlDocument();

doc.Load(My.DirectoryPath + "\\" + "settings.xml");

XmlNode node =
doc.SelectSingleNode("settings/MainConnectionString");

DocControl.clsDocShared.GlobalDoc.ConnectionString =
node.InnerText;
Apr 4 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.