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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. App.config

App.config

Scheduled Pinned Locked Moved C#
testingbeta-testingquestionworkspace
2 Posts 2 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.
  • S Offline
    S Offline
    s196675m
    wrote on last edited by
    #1

    I am testing a dll by including it in a project. In that project I have a App.config file where there is a sharedListeners tag with one or more custom listener. Test is success in the case. ============================== I am testing that dll in another project where there is a configuration file but name is not App.config instead name is xxxx.yyyy.config. Test fail in this case. No log file generated from custom listener. Exact code inside both config file only name is different. Changing name to App.config works fine but this is not an option for me. How can I configure the application, so that it will take the parameter from config file even though name is not App.config. Any idea will be greately appreciated

    V 1 Reply Last reply
    0
    • S s196675m

      I am testing a dll by including it in a project. In that project I have a App.config file where there is a sharedListeners tag with one or more custom listener. Test is success in the case. ============================== I am testing that dll in another project where there is a configuration file but name is not App.config instead name is xxxx.yyyy.config. Test fail in this case. No log file generated from custom listener. Exact code inside both config file only name is different. Changing name to App.config works fine but this is not an option for me. How can I configure the application, so that it will take the parameter from config file even though name is not App.config. Any idea will be greately appreciated

      V Offline
      V Offline
      vaghelabhavesh
      wrote on last edited by
      #2

      Usually when you deploy the application, the app.config becomes xyz.exe.config where xyz.exe is the application executable name. One more thing app.config should be in the same directory where the executable located.

      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