Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

The error "configuration system failed to initialize" occurred

$
0
0

Hi

When I converted and built the solution file that was developed by Visual Studio .net 2003 using Visual Studio 2005, the application program was abnormal-ended at the following step:

m_TCPChannel = New System.Runtime.Remoting.Channels.Tcp.TcpChannel(tcp_properties, Nothing, Nothing)

The error message was "configration system failed to initialize".  The Exception.ToString said that the root <configuration> tag was not included in the configuration file. Therefore, I changed <configopt> tag to <configuration> tag in the app.config file of the target project, and then executed again. Next time, the application program was abnormal-ended by the unrecognized section <xs:schema>. Therefore, I changed the app.config file to the simple one (only <configuration> and </configuration> tags), and then executed again. The error didn't occur. I guess that it's caused by configuration settings. Please advise.

app.config file:

<?xml version="1.0" standalone="yes"?>
<configopt>
<xs:schema id="configopt" xmlns="" xmlns:xs="URLリンク" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="configopt" msdata:IsDataSet="true" msdata:Locale="en-AU">
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="Environment">
<xs:complexType>
<xs:sequence>
<xs:element name="Name" type="xs:string" minOccurs="0" />
<xs:element name="System" type="xs:string" minOccurs="0" />
<xs:element name="DataLibrary" type="xs:string" minOccurs="0" />
<xs:element name="Default" type="xs:boolean" minOccurs="0" />
<xs:element name="UserId" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<Environment>
<Name>Test</Name>
<System>XXXX.COM</System>
<DataLibrary>XXXTEST</DataLibrary>
<Default>false</Default>
<UserId></UserId>
</Environment>
<Environment>
<Name>Production</Name>
<System>XXXXX.COM</System>
<DataLibrary>XXXPROD</DataLibrary>
<Default>true</Default>
<UserId />
</Environment>
</configopt>

 


Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>