PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET app.config missing in setup

Reply

app.config missing in setup

 
Thread Tools Rate Thread
Old 03-04-2006, 02:25 PM   #1
Pieter
Guest
 
Posts: n/a
Default app.config missing in setup


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


  Reply With Quote
Old 03-04-2006, 03:00 PM   #2
Ignacio Machin \( .NET/ C# MVP \)
Guest
 
Posts: n/a
Default Re: app.config missing in setup

Hi,


"Pieter" <pietercoucke@hotmail.com> wrote in message
news:uqg48mxVGHA.4300@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


  Reply With Quote
Old 04-04-2006, 09:39 AM   #3
Pieter
Guest
 
Posts: n/a
Default Re: app.config missing in setup

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:epXZS6xVGHA.4664@TK2MSFTNGP10.phx.gbl...
> Not, it does not, a dll does not have a config associated.



  Reply With Quote
Old 04-04-2006, 11:13 AM   #4
Pieter
Guest
 
Posts: n/a
Default Re: app.config missing in setup

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;


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off