Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Configuration Files Location Problem

Configuration Files Location Problem

Scheduled Pinned Locked Moved C#
comhelpquestioncsharpasp-net
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    matthias s 0
    wrote on last edited by
    #1

    hi there, i'm building a small class library which will be used from classic asp (com interop), asp.net and for testing purposes from my console test application. the class library requires an app.config which i have created. a couple of settings are added to it. now my problem: in my console test application i've added a reference to the class library. everything works fine except that the class library doesn't read the configuration settings as i would expect. the values read using the ConfigurationManager.AppSettings["MySetting"] method always return null strings. i've been working with app.config files before and it always worked fine. i guess this might have to do with the hierarchy of configuration settings. i guess, if i would add the configuration file to the console app instead of adding it to the class library, everything would work fine. but this is not what i need. i need the configuration to be attached to the class library. does this have anything to do with installing the class library in the gac? do i need to do that? and if so, how do i do that? thanks for reading thus far. i hope i explained the problem properly. my english is not the best. any help is greatly appreciated.

    /matthias

    I love deadlines. I like the whooshing sound they make as they fly by.
    [Douglas Adams]

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups