469,587 Members | 2,666 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,587 developers. It's quick & easy.

How do I properly add a custom section to my Web.Config?

If I add my own section to my Web.Config file of my (2.0) web service
project (and refer to it by adding a "section" sub-element to a
"configSections" element, I then get information messages ("Could not
find schema information for the element"...) for every custom element
and attribute in my custom section when I build my project.
What should I do to properly dispose of these messages? Surely I
shouldn't have to create a schema?
Feb 8 '06 #1
3 5282
These are just info messages. You can filter them out by clicking on the
"Messages" button in the Error List.

--
Stan Kitsis
Program Manager, XML Technologies
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"Brad Wood" <bradley|.wood|@ndsu|.edu> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
If I add my own section to my Web.Config file of my (2.0) web service
project (and refer to it by adding a "section" sub-element to a
"configSections" element, I then get information messages ("Could not find
schema information for the element"...) for every custom element and
attribute in my custom section when I build my project.
What should I do to properly dispose of these messages? Surely I
shouldn't have to create a schema?

Feb 9 '06 #2
I have the same problem with my custom config sections resulting in
around 200 info messages. Is it possible to stop these info messages
being emitted as they just provide a lot of noise which obscures other
messages?

Actually what I would really like to do is provide a schema for my
config sections and then be able to use intellisense for these
sections. Is this possible and if so is there any guidance available on
how to it?
Stan Kitsis [MSFT] wrote:
These are just info messages. You can filter them out by clicking on the
"Messages" button in the Error List.

--
Stan Kitsis
Program Manager, XML Technologies
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

"Brad Wood" <bradley|.wood|@ndsu|.edu> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
If I add my own section to my Web.Config file of my (2.0) web service
project (and refer to it by adding a "section" sub-element to a
"configSections" element, I then get information messages ("Could not find
schema information for the element"...) for every custom element and
attribute in my custom section when I build my project.
What should I do to properly dispose of these messages? Surely I
shouldn't have to create a schema?


Feb 10 '06 #3

I couldn't stand having Messages show up even if it did still compile.
Here's the fix:
http://www.ovationmarketing.com/XSD.asp
Brad Wood wrote:
*If I add my own section to my Web.Config file of my (2.0) web
service
project (and refer to it by adding a "section" sub-element to a
"configSections" element, I then get information messages ("Could
not
find schema information for the element"...) for every custom
element
and attribute in my custom section when I build my project.
What should I do to properly dispose of these messages? Surely I
shouldn't have to create a schema? *


--
chris haas
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------

Mar 1 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Hazzard | last post: by
1 post views Thread by Andy Emmerson via .NET 247 | last post: by
reply views Thread by GOE | last post: by
6 posts views Thread by Tabi | last post: by
1 post views Thread by kevininstructor | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.