473,725 Members | 2,397 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5559
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******** ********@TK2MSF TNGP09.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******** ********@TK2MSF TNGP09.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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2146
by: Hazzard | last post by:
I am trying to create a custom section and section handler in my config file. The custom section should be something like; <appSecurity> <method name = "Protect the Ice Cream"> <allow group = "admin"/> <allow group = "ice cream eaters"/> <deny group= "weightwatchers"/> <deny user = "hazz"/>
1
1246
by: Hazzard | last post by:
I am trying to create a custom section and section handler in my config file. The custom section should be something like; <appSecurity> <method name = "Protect the Ice Cream"> <allow group = "admin"/> <allow group = "ice cream eaters"/> <deny group= "weightwatchers"/> <deny user = "hazz"/>
1
1379
by: Andy Emmerson via .NET 247 | last post by:
Hi I am looking to write a custom section handler so that I can populate the MobileCapabilities object from my our custom data rather than the browserCaps section in machine.config. From my understanding (limited) it looks like you can implement the IConfigurationSectionHandler and use the IConfigurationSectionHandler.Create to intercept this functionality. It looks like I need to return a MobileCapabilities object from this function. How...
0
1030
by: GOE | last post by:
I wrote the C++ project which impersonate Duwamish sample,when I wrote some code about custom section,it don't work and show the exception: "System.TypeLoadException: accemble SystemFramework, Version=1.0.1873.4208, Culture=neutral, PublicKeyToken=null" type "SystemFramework.ApplicationConfiguration" method of "Create" didn't implement. I rewrote the code by C#,and the web.config file was the same one, it work very well. I can't find...
6
3802
by: Tabi | last post by:
Hi, I want to create a custom section in my web.config that can hold my custom values. I created a section in web.config as written below. <configSections> <section name="myCustomSection" type="ComIT.Applications.Common.ConfigurationSections.MyHandler" allowLocation="true" allowDefinition="Everywhere" /> </configSections>
1
5352
by: kevininstructor | last post by:
I added a custom section from code found on the Internet and can not get it to work in DotNet 1.1 In the configuration file below my focus is on the "TestGroup" section, all other parts work fine. The following code returns a zero count for "nvc" and can not determine why? Any thoughts? Thanks for taking the time to look at the code,
0
1254
by: mnowosad | last post by:
This problem has become a "show-stopper" for us. I have defined a custom section for my web application that contains sensitive data. Because of that, I want to have it encrypted in the same way I encrypt the "connectionStrings" section using the ASPNET_REGIIS tool. The problem is that I get an error saying that the ASPNET_REGIIS tool can't find the assembly file that contains my custom section. My custom section is coded like that:
3
9131
by: sreemathy2000 | last post by:
My requirement is to read a store the value of values in the custome section of app.config. in the form load i need to read the custom section and populate the values in the combobox. section can be like <links> <add key="key1" value="any value"> <add key="key2" value="any value"> <add key="key3" value="any value"> </links>
0
1749
by: valdas | last post by:
Hi, I have a problem in accessing "sqlServerCatalogNameOverwrites" section in app.config file. <configuration> <configSections> <section name="sqlServerCatalogNameOverwrites" type="System.Configuration.NameValueSectionHandler" /> </configSections> <sqlServerCatalogNameOverwrites>
0
8878
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8749
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9097
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8079
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6699
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6006
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4507
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2626
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2153
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.