0

我非常需要一些帮助。我无法在其中一个计算机辅助翻译程序中打开项目文件 (.mpr)(XML 文档中的错误)。它说如下:

TYPE:
System.InvalidOperationException

MESSAGE:
There is an error in XML document (102, 3).

SOURCE:
System.Xml

CALL STACK:
   at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
   at System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream)
   at Kilgray.Utils.SerializationHelper.DeserializeXML(Type objType, String filePath)
   at MemoQ.Project.Migration.ProjectMigrator.PerformV5toV6Migration(Form owner, String& projectDirectory)
   at MemoQ.Project.ProjectDocument.OnOpenDocument(Object openParam)
   at MemoQ.ApplicationFramework.DocTypeManager.<>c__DisplayClass7.<OpenDocument>b__6()
   at MemoQ.ApplicationFramework.DocTypeManager.executeFromOpenErrorHandlingBlock(Func`1 func, Object openParam)
------------------ Inner exception ------------------

TYPE:
System.Xml.XmlException

MESSAGE:
'', hexadecimal value 0x04, is an invalid character. Line 102, position 3.

SOURCE:
System.Xml

CALL STACK:
   at System.Xml.XmlTextReaderImpl.Throw(Exception e)
   at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
   at System.Xml.XmlTextReaderImpl.Throw(Int32 pos, String res, String[] args)
   at System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Int32 pos, Char invChar)
   at System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)
   at System.Xml.XmlTextReaderImpl.ParseText()
   at System.Xml.XmlTextReaderImpl.ParseElementContent()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlTextReader.Read()
   at System.Xml.XmlTextReaderImpl.Skip()
   at System.Xml.XmlTextReader.Skip()
   at System.Xml.Serialization.XmlSerializationReader.UnknownNode(Object o, String qnames)
   at 
Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderProjectInfo.Read44_ProjectInfo(Boolean isNullable, Boolean checkType)
   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderProjectInfo.Read45_ProjectInfo()
4

0 回答 0