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. Web Development
  3. ASP.NET
  4. custom section in configuration files

custom section in configuration files

Scheduled Pinned Locked Moved ASP.NET
questionannouncementworkspace
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.
  • R Offline
    R Offline
    red60mans
    wrote on last edited by
    #1

    type="System.Configuration.AppSettingsSection, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" I want to write a custom section that can be added to configuration file (web.config)... I dont understand all the parts of the "type" attribute 1)PublicKeyToken --- Is this the one generated thru sn.exe??? 2)System.Configuration.AppSettingsSection --- Is this any name or should it be my class name 3) System.Configuration --- what about this ??? yojimbo

    M 1 Reply Last reply
    0
    • R red60mans

      type="System.Configuration.AppSettingsSection, System.Configuration, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" I want to write a custom section that can be added to configuration file (web.config)... I dont understand all the parts of the "type" attribute 1)PublicKeyToken --- Is this the one generated thru sn.exe??? 2)System.Configuration.AppSettingsSection --- Is this any name or should it be my class name 3) System.Configuration --- what about this ??? yojimbo

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      red60mans wrote:

      1)PublicKeyToken --- Is this the one generated thru sn.exe???

      You can see the PublicKeyToken value when your assembly is made strong-named, otherwise it's a null value.

      red60mans wrote:

      2)System.Configuration.AppSettingsSection --- Is this any name or should it be my class name

      It should be your fully qualified name of your class as you here want to create a custom config entry.

      red60mans wrote:

      1. System.Configuration --- what about this ???

      This is the namespace containing your custom config handler class. Basically, when you define a custom configuration section, you'll have to specify the handler for this section and you also need to tell the system about how to locate the type of your class. For more information, see ASP.NET Configuration [^]

      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