This project is read-only.
1
Vote

[SOLVED]: Xml Exception OnLoad: ' ', hexadecimal value 0x0C, is an invalid character. Line 1, position 1.

description

When I try to Start the project, my project throw this exception: ' ', hexadecimal value 0x0C, is an invalid character. Line 1, position 1.

This is the stackTrace:
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
at System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Char[] data, Int32 length, Int32 invCharPos)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(String filename)
at DbDiff.Common.Helper.ConfigLoader.Load(Boolean encrypted) in d:\Projeto\DbDiff\Source\DbDiffCommon\Helper\ConfigLoader.cs:line 130

It happens when the method DbDiff.Common.Helper.ConfigLoader.Load, is executed with the value "false", with parameter and my config file is a encrypted file.

comments

Safi wrote Aug 30, 2014 at 5:08 PM

Please delete the config file. As I remember it us happen when the file is broken

abeppler2000 wrote Sep 5, 2014 at 2:05 PM

Tks Safi!

I deleted the file, and the error message isn't showed to me anymore.

wrote Sep 5, 2014 at 2:05 PM