Re: app.config and assembly config in My.Config

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi Michael,

It is just a class library (my datalayer of a winforms app)
A setting for example is the connectionstring.
I cannot change it on deployment.

Thanks
art


"Michael Nemtsev" wrote:

Hello Bart,

Right. Class library can't have it's own config, only dll's host application
can have it
What kind of app is datalayer.dll? just class library or mb COM+?

BTW u can keep datalayer.config and use content manually via System.Xml namespace

B> Hi Michael,
B>
B> I have an assembly called datalayer.dll. When I compile this dll
B> separate
B> datalayer.config is generated.
B> When I compile my project called MyApp for example, only MyApp.config
B> is
B> generated.
B> I tried to copy the datalayer.config file to my app folder but it
B> seems that
B> my settings are not picked up by datalayer.dll.
B> Thanks
B> Bart
B> "Michael Nemtsev" wrote:
B>
Hello Bart,

B> What is the best approach to deal with My.config and assemblies.

use System.Configuration to read data from config

What do u mean by "deap with assemblies"

B> When I compile an application the app.config is generated but not
the B> assembly.config.

in generated into <projectName>.exe.config

B> I tried to add those setting in the application.config but this is
B> not
B> working.
B> How can this be done?
Could u desribe it wide?

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents
do not cease to be insipid." (c) Friedrich Nietzsche

---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche



.



Relevant Pages

  • Re: I used to use VB but...
    ... does that silly Michael C really believe ... takes his VB.Not app to load and run on their machine! ... While dot net apps are a little slower there ... jokes in emails were exes?). ...
    (microsoft.public.vb.general.discussion)
  • Re: DOS app very slow on VPC7 4 Mac
    ... Michael: XP runs this software fine on PC's. ... I know very little about running DOS apps in XP but I presume there ... Sounds like the app is doing ... > Dosbox was only written for running grand old DOS games. ...
    (microsoft.public.mac.virtualpc)
  • Re: Make Gnome app look like KDE
    ... On Wed, 2005-03-30 at 23:10, Michael A. Peters wrote: ... >> Nothing bugs me more than an app that doesn't do what I ask it to. ... One app that I use is evolution for email and calendar ...
    (Fedora)
  • Re: Chinese text entry
    ... Michael T. Richter wrote: ... but I can use SCIM everywhere. ... I can do the same in any app that can cope with UTF-8 input at all. ...
    (Ubuntu)
  • Re: Crazy Unexplained Errors
    ... Do you get the error at compile or runtime? ... To check run your app by pushing ctrl-f5, if you get the error then then ... it's a compile time error. ... Michael ...
    (microsoft.public.vb.enterprise)