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. when does the assembly.exe.config file is created

when does the assembly.exe.config file is created

Scheduled Pinned Locked Moved C#
question
3 Posts 3 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.
  • P Offline
    P Offline
    prasadbuddhika
    wrote on last edited by
    #1

    i'm trying to understand the usage of settings.setting file, it says u can only change user scoped data at runtime and application scoped data cannot be changed at runtime, to modify the application scope data i have to use the assembly.exe.cofig file . but in my application it isn't there . how can i create it

    D R 2 Replies Last reply
    0
    • P prasadbuddhika

      i'm trying to understand the usage of settings.setting file, it says u can only change user scoped data at runtime and application scoped data cannot be changed at runtime, to modify the application scope data i have to use the assembly.exe.cofig file . but in my application it isn't there . how can i create it

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      See if this[^] helps.

      1 Reply Last reply
      0
      • P prasadbuddhika

        i'm trying to understand the usage of settings.setting file, it says u can only change user scoped data at runtime and application scoped data cannot be changed at runtime, to modify the application scope data i have to use the assembly.exe.cofig file . but in my application it isn't there . how can i create it

        R Offline
        R Offline
        ramzg
        wrote on last edited by
        #3

        Hi, You can right-click on your project (from the solution explorer) and choose Add-->New Item and select Application Configuration File from the dialog box that pops up and click OK. This will add an App.Config file to your project. This will be automatically renamed to Assembly.exe.config when you run your application. You can use the same XML data as given in the link to the post that d@nish had posted. Also, if you use string test1 = System.Configuration.ConfigurationSettings.AppSettings["Key1"]; in your code, the VS compiler might throw a warning that this is deprecated. To get through that warning, Add reference to System.Configuration component in your project and use : string test1 = System.Configuration.ConfigurationManager.AppSettings["key1"]; Hope this helps. Thanks, Ram

        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