Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 91875
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:05:54+00:00 2026-05-10T23:05:54+00:00

We have a custom section in my app.config file related to our IoC container

  • 0

We have a custom section in my app.config file related to our IoC container class. How can I get intellisense when editing the config file for this section, as well as getting rid of the compiler messages informing me of the missing schema.

I found this question here: app.config configSections custom settings can not find schema information, but I don’t understand if it applies to my problem or not, and how to use the answer there if it does.

I also found this page How to get Intellisense for Web.config and App.config in Visual Studio .NET, but it says to remove the xmlns attribute before running the application. Is that really the only/best way?

Here is an example of a simple file:

<?xml version='1.0' encoding='utf-8' ?> <configuration>   <configSections>     <section name='ServiceContainers'         type='LVK.IoC.RegistrationsSectionHandler, LVK'/>   </configSections>   <ServiceContainers>     <Registration type='DatabaseConnection' class='DatabaseConnection'>       <Parameter name='connectionString' type='System.String'           value='TYPE=MSSQL2000;SERVER=localhost;DATABASE=db'/>     </Registration>   </ServiceContainers> </configuration> 

Basically I would like to be able to type <R inside the <ServiceContainers> node, and get Registration suggested to me in the intellisense dropdown, as well as the appropriate attributes for it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T23:05:55+00:00Added an answer on May 10, 2026 at 11:05 pm

    XML Intellisense will not automatically work for a custom configuration section.

    Visual Studio may report warnings on compilation complaining that the attributes of the custom configuration section are not defined. These warnings may be ignored.

    If you want XML IntelliSense support for a custom configuration section (or if you just want the ‘schema not found’ warnings to disappear), add the following line to your DotNetConfig.xsd file immediately after the first <xs:schema …> line (which is typically the second line in the DotNetConfig.xsd file).

    <xs:include schemaLocation='YOUR_DIRECTORY\namespace.assemblyname.xsd'/> 

    The DotNetConfig.xsd file can be found in your Visual Studio 8 (or 9) installation directory in the Xml\Schemas subdirectory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have defined a custom section in the App.config file and all the Configuration
I have in the app.config file a section as <OurType> <sometype typename = type1
I have an assembly that provides the class structure for a custom config section.
I'm having difficulties reading an app.config using the ConfigurationManager. I have a custom section,
I have a custom configuration section registered in the app/web.config, let's call it MySection
I have a MyProject.config file that contains ConnectionStrings, AppSettings, and custom sections. I don't
This is copied example from: How to read custom config section in app.config in
I have the following problem trying to use a custom config section in my
I am just learning about app.config in respect of creating custom sections. I have
I have added an app.config file in which hostaddress and port is mentioned. When

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.