StrataFrame Forum

Error When Starting DDT

http://forum.strataframe.net/Topic2272.aspx

By Kenneth Langley - 8/18/2006

I get the following error upon startup of DDT.

XmlException
 Invalid character in the given encoding. Line 1, position 1.

Source     : System.Xml

Stack Trace:
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
   at System.Xml.XmlTextReaderImpl.InvalidCharRecovery(Int32& bytesCount, Int32& charsCount)
   at System.Xml.XmlTextReaderImpl.GetChars(Int32 maxCharsCount)
   at System.Xml.XmlTextReaderImpl.ReadData()
   at System.Xml.XmlTextReaderImpl.SwitchEncoding(Encoding newEncoding)
   at System.Xml.XmlTextReaderImpl.ParseXmlDeclaration(Boolean isTextDecl)
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlTextReader.Read()
   at System.Xml.XmlReader.MoveToContent()
   at System.Data.DataSet.ReadXml(XmlReader reader, XmlReadMode mode, Boolean denyResolving)
   at System.Data.DataSet.ReadXml(String fileName, XmlReadMode mode)
   at MicroFour.StrataFrame.Xml.XmlBasics.OpenXmlFile(String CurrentVersion, String TableName, String PathAndFileName, List`1 ColumnStructure)
   at MicroFour.StrataFrame.Xml.XmlBasics.OpenXmlFile(String Version, String TableName, String PathAndFileName, List`1 ColumnStructure, Boolean DecryptFile)
   at MicroFour.StrataFrame.Data.BusinessObjects.DbeApplicationData.FillAll()
   at MicroFour.StrataFrame.Data.ConnectionManager.SetConnections()
   at MicroFour.StrataFrame.Data.AppMain.SetDataSources()
   at MicroFour.StrataFrame.Application.StrataFrameApplication.Raise_SetDataSources()
   at MicroFour.StrataFrame.Application.StrataFrameApplication.RunApplication()
   at MicroFour.StrataFrame.Data.AppMain.Main()

By Trent L. Taylor - 8/18/2006

I just replied to your email...sorry for the delay.  The reason you are getting this is because your encrypted connection data became corrupt.  To fix the issue simply delete the connection files located at the following location:

C:\Documents and Settings\All Users\Application Data\MicroFour\ConnectionData

There will be two files here that need to be deleted: AppKeys.Dat and Connections.Dat.  Once these files are removed, go back into Visual Studio and you will be required to provide the connection information again.  But this will get you going.