[Mono-list] Problem with a program that uses a .config file

Jonathan Pryor jonpryor@vt.edu
21 Jan 2003 13:59:44 -0500


--=-X5nX+I3pDH2QA61MIUKT
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

It looks like you have some "invalid" blank characters in your .config
file.  When I opened it in vim, I got garbage, for lack of a better
description.  More specifically, the indented text was an "A" with a
funky caret above it.  The "RunMultiUser" line had the same funky
characters at the end of the line.

I was able to make it work properly by removing the leading and trailing
whitespace, then re-indenting with spaces.

I suppose this could be an XML issue, or you just had invalid character
data in the file.

Attached is the modified .config file which works for me.

 - Jon

On Tue, 2003-01-21 at 13:43, Carlos Guzmán Álvarez wrote:
> Hello:
> 
> 
> Here is the config file, i´m testing it on Linux Red Hat 8.0 with mono 
> cvs sources of this morning.
> 
> <?xml version="1.0" encoding="utf-8" ?>
> <configuration>
> <appSettings>
> 	<add key="DataPath" value="/home/linux/desarrollo/AS3AP/data/data-4mb" />
> 	<add key="RunCreate" value="true" />
> 	<add key="RunSingleUser" value="true" />
> 	<add key="RunMultiUser" value="false" />	
> 	<add key="User" value="SYSDBA" />
> 	<add key="Password" value="masterkey" />
> 	<add key="Database" value="/home/linux/desarrollo/AS3AP/build/as3ap.fdb" />
> 	<add key="Server" value="localhost" />
> 	<add key="Port" value="3050" />
> 	<add key="Dialect" value="3" />
> 	<add key="Charset" value="NONE" />
> 	<add key="Role" value="" />
> 	<add key="Connection lifetime" value="15" />
> 	<add key="Pooling" value="false" />
> </appSettings>
> </configuration>
> 
> 
> 

--=-X5nX+I3pDH2QA61MIUKT
Content-Disposition: attachment; filename=as.exe.config
Content-Type: text/plain; name=as.exe.config; charset=UTF-8
Content-Transfer-Encoding: 7bit

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
        <add key="DataPath" value="/home/linux/desarrollo/AS3AP/data/data-4mb" />
        <add key="RunCreate" value="true" />
        <add key="RunSingleUser" value="true" />
        <add key="RunMultiUser" value="false" />
        <add key="User" value="SYSDBA" />
        <add key="Password" value="masterkey" />
        <add key="Database" value="/home/linux/desarrollo/AS3AP/build/as3ap.fdb" />
        <add key="Server" value="localhost" />
        <add key="Port" value="3050" />
        <add key="Dialect" value="3" />
        <add key="Charset" value="NONE" />
        <add key="Role" value="" />
        <add key="Connection lifetime" value="15" />
        <add key="Pooling" value="false" />
</appSettings>
</configuration>


--=-X5nX+I3pDH2QA61MIUKT--