PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET
app.config missing in setup
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET
app.config missing in setup
![]() |
app.config missing in setup |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: 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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#3 |
|
Guest
Posts: 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:epXZS6xVGHA.4664@TK2MSFTNGP10.phx.gbl... > Not, it does not, a dll does not have a config associated. |
|
|
|
#4 |
|
Guest
Posts: 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; |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

