Peter Ritchie Inc. Software Consulting Co. Home
      Downloads    General    .NET Topics    C++ Topics    C# Topics

Home
Products & Services
Articles/Blog
Downloads
Links
Members Only
Support
Contact
Login
Register
Downloads
File Name: DotNetConfig.xsd
File Size: 330,104 bytes
Downloaded: 8733 times
Posted by Peter Ritchie on Friday, March 24, 2006 (EST)
Click here to download this file
More accurate DotNetConfig.xsd for Visual Studio 2005 (replaces C:\Program Files\Microsoft Visual Studio 8\Xml\Schemas\DotNetConfig.xsd)
Average Rating:

I've been noticing some warnings with various config files that Visual Studio creates/maintains/updates and I thought I'd have a closer look.  In particular, warnings regarding the section.requirePermission attribute and the trace/listeners/add.initializeData attribute.

When I first looked at these config files there was no xmlns attribute on the configuration element, so, I thought that was the cause.  A little research seemed to show that xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0" was the configuration file namespace.  Adding the xmlns attribute to the configuration section quickly made Visual Studio not recognize any elements--clearly the wrong thing to do.

I then had a look at properties for the app.config document in Visual Studio and it showed "C:\Program Files\Microsoft Visual Studio 8\xml\Schemas\DotNetConfig.xsd" in the Schemas property.  Once I had a look at this DotNetConfig.xsd file I found what the problem was.  This file is not completely accurate when compared to the documented attributes; in particular it didn't have schema information for the two aforementioned attributes.

So, I quickly added the schema information and the warnings disappeared.

This is the results of that research.  See http://www.peterritchie.com/Hamlet/Articles/75.aspx to discuss this.

Comments:

Enjoy the intellisense web.config
By SMHMayboudi on Friday, October 13, 2006 (EST)

Download this file ( DotNetConfig.xsd ):
http://www.peterritchie.com/Hamlet/Downloads/Downloads_GetFile.aspx?id=74

Then put it in this folder:
C:\Program Files\Microsoft Visual Studio 8\Xml\Schemas\

Make your web.config with this structure:
<?xml version="1.0" encoding="utf-8"?>
<configuration xmlns:xs="DotNetConfig.xsd" xmlns:vs="http://schemas.microsoft.com/.NetConfiguration/v2.0">
[Write you web configuration here]
</configuration>

Reply to this Comment

Could not find schema information for the element
By shanthi on Friday, March 16, 2007 (EST)

Hi Peter,

 

I was having the problem with App.config file. When i build the application it gave me warnings like "Could not find schema information for the element...". So i followed what you said. I downloaded the DotNetConfig.xsd file in the path where you specified. But i still get the same warning. What should i do to fix this problem. Can you please let me know ASAP?

 

Thanks in advance,

shanthi.

Reply to this Comment

Thanks Alot
By Lesly on Friday, April 20, 2007 (EST)

Hi Peter,

 

Even I also was facing the same problem regarding of schema information. After a small research, I found out that this problem begins from this DotNetConfig file. Anyway thanks alot. I have downloaded this file. Its got updated. Now its working fine.

 

Thanks and Regards

Lesly Sebastian

Reply to this Comment

Silly config file warnings
By ttoal on Tuesday, August 28, 2007 (EST)

I downloaded the DotNetConfig.xsd file and added the appropriate attributes/elements to my app.config file, and it made no difference, I still get these warnings (including from a small remoting project downloaded from Microsoft).

 

 

Reply to this Comment

Web.Config
By wilerk on Monday, December 31, 2007 (EST)
Hi there, Thanks for the fix, now how do I fix my Web.Configs? I now get this error in my web.config: Unrecognized attribute 'xmlns:xs'. Regards, Xander

Reply to this Comment

More complete DotNetConfig.xsd
By ratkiley on Wednesday, November 05, 2008 (EST)
The below blog posting has a complete xsd file with all of the possible configuration elements for <system.runtime.remoting> (the above only contains some of the configuration elements): http://simonchapman.blogspot.com/2006/09/net-remoting-config-schema.html

Reply to this Comment

Add Your Comment

Advertisement
Rent and Buy DVDs. No Late Fees. Click to join Today.
New Downloads

  • PRI.Rules.2.zip
    Visual Studio 2008 RTM Code Analysis Rules release 2

  • PRI.Rules.1.zip
    Visual Studio 2008 Code Analysis Rules release 1

  • SortableValueType.snippet
    A code snippet for Visual Studio 2005 that implements a skeleton value type adhering to Framework Design Guidelines



  •  
    Copyright © 2005, Peter A. Ritchie All rights reserved