Share via


System.Runtime.Remoting Schema not found.

I just had a case where customer wanted to validate the XML schema for .NET Remoting configuration files at runtime. He wanted to store the configuration parameters in database and wanted to generate the XML settings at runtime, so, after generating the schema he wanted to validate the XML text. So, for validating the XML file, he wanted the System.Runtime.Remoting schema definition. Generally the schema definitions for various config options are placed at,

C:\Program Files\Microsoft Visual Studio 8\Xml\Schemas\DotNetConfig.xsd

But, especially for .NET Remoting configuration, there is no schema definition stored. The tag is empty.

 

So, I tried finding the valid schema elements for System.Runtime.Remoting and I found it at,

https://msdn2.microsoft.com/en-us/library/z415cf9a.aspx

 

After that, I had to generate the schema definition. This can be done through Visual Studio 2005, New->New File->Schema file, but while searching a bit, could find a post on Simon's blog where he also faced the same issue and generated the schema definition. So, downloaded the file from his blog at,

https://simonchapman.blogspot.com/2006/09/net-remoting-config-schema.html

 

In the next version of visual studio, this should be fixed, though!!