1.8.4: "[CCNet Server:ERROR] Exception: The configuration file contains invalid xml" with german umlaut

Added by Disaster Area over 4 years ago

Hello,

I have upgraded from 1.6. to 1.8 and first of all, using my old ccnet.config file gives the warning, that my file is 1.6. and not 1.8 style.

So I used the ccnet.config file of version 1.8.4 and copied the values from that old 1.6 file in the new one.

Starting ccnet in commandline gives the following output:

-------------------------------------------------------------------------
[CCNet Server:ERROR] Exception: The configuration file contains invalid xml:
C:\Program Files (x86)\CruiseControl.NET\server\ccnet2013.config
----------
ThoughtWorks.CruiseControl.Core.Config.ConfigurationException: The configuration file contains invalid xml:
C:\Program Files (x86)\CruiseControl.NET\server\ccnet2013.config ---> System.Xml.XmlException:
Invalid character in the given encoding. Line 11, position 73.
-------------------------------------------------------------------------

At line 11, position 73 there is a german umlaut. The old 1.6 version config file has started with

The new one doesn't have this and placing this in does not help.

The old cruisecontrol tag starts like this
<cruisecontrol xmlns="http://thoughtworks.org/ccnet/1/6" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:cb="urn:ccnet.config.builder">

So what is the right schema / way to solve this.


Replies (1)

RE: 1.8.4: "[CCNet Server:ERROR] Exception: The configuration file contains invalid xml" with german umlaut - Added by Disaster Area over 4 years ago

Hello,

I found out by myself, which error occurred. The error message is misleading. There was a not closed tag before that line and the parser stopped at the umlaut for some reason. Because german umlauts often made problems in the past in computer programming, I thought it was an umlaut / utf-8 problem. That was misleading.

Solved by myself, but...

is there a schema definition file for config files?

(1-1/1)