PC Review


Reply
Thread Tools Rate Thread

app.config missing in setup

 
 
Pieter
Guest
Posts: n/a
 
      3rd Apr 2006
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
 
 
 
 
Ignacio Machin \( .NET/ C# MVP \)
Guest
Posts: n/a
 
      3rd Apr 2006
Hi,


"Pieter" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
 
Pieter
Guest
Posts: n/a
 
      4th Apr 2006
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:(E-Mail Removed)...
> Not, it does not, a dll does not have a config associated.



 
Reply With Quote
 
Pieter
Guest
Posts: n/a
 
      4th Apr 2006
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
app.config missing in setup Pieter Microsoft Dot NET 3 4th Apr 2006 10:13 AM
CONFIG.NT - did WinXP setup do all that? =?Utf-8?B?SGVyemwgUmVnZXY=?= Windows XP General 0 25th Dec 2005 06:44 AM
web.config and Setup project Nikhil Patel Microsoft ASP .NET 1 17th Nov 2004 11:59 PM
Re: XP won't start missing/corrupt, missing config Michael Funaro Windows XP Help 0 22nd Nov 2003 06:04 PM
How to setup config.sys Tommy Yan Windows XP General 2 17th Jul 2003 04:41 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:59 PM.