Results 1 to 4 of 4

Thread: Another web.config question

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Another web.config question

    In web.config, it's possible to specify a new section like so:

    Code:
    		 <section name="pluto"  type="System.Configuration.NameValueFileSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
    My question is: are the 'version', 'culture', 'publickeytoken' attributes necessary? What is the smallest tag I can write to define a new section?

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    All you need is just the tag on its own without any properties.
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    I tried that, and it asks me to specify the type attribute.

    Parser Error Message: The 'type' attribute must be specified on the 'section' tag.

    Then I removed the elements one by one, and ended up with this as the minimum.

    Code:
    type="System.Configuration.NameValueFileSectionHandler"

    Thing is, I don't understand it at all. Maybe I need a book? What says you?

  4. #4
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Okay actually mine won't let me add items to web.config that it isn't expecting.
    Try using a seperate xml file?
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width