|
-
Jul 19th, 2004, 12:56 AM
#1
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?
-
Jul 19th, 2004, 04:56 AM
#2
Retired VBF Adm1nistrator
All you need is just the tag on its own without any properties.
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Jul 19th, 2004, 06:14 AM
#3
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?
-
Jul 19th, 2004, 07:17 AM
#4
Retired VBF Adm1nistrator
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|