CmisSync无法正确构建

时间:2014-10-09 13:18:36

标签: c# xml visual-studio cmis

尝试通过Visual Studio 2013安装CmisSync,我不断收到AppData Roaming文件夹的异常。

File Path; AppData/Roaming/cmissync/config.xml

当我查看文件时,它是空白的。

到目前为止我所做的是下载压缩的源文件。提取它,打开windows sln文件并构建项目。当我去调试时,我得到一个例外。 DotCMIS项目也不可用。 以下是例外。

非常感谢任何帮助。

System.InvalidOperationException was unhandled
HResult=-2146233079
Message=There is an error in XML document (0, 0).
Source=System.Xml
StackTrace:
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader)
at CmisSync.Lib.Config.Load() in e:\Users\davette\Documents\Visual Studio 2013\Projects\CmisSync-master\CmisSync.Lib\Config.cs:line 345
at CmisSync.Lib.Config..ctor(String fullPath) in e:\Users\davette\Documents\Visual Studio 2013\Projects\CmisSync-master\CmisSync.Lib\Config.cs:line 164
at CmisSync.Lib.ConfigManager.get_CurrentConfig() in e:\Users\davette\Documents\Visual Studio 2013\Projects\CmisSync-master\CmisSync.Lib\ConfigManager.cs:line 40
at CmisSync.Lib.Sync.ConfigMigration.CheckForDuplicatedLog4NetElement() in e:\Users\davette\Documents\Visual Studio 2013\Projects\CmisSync-master\CmisSync.Lib\ConfigMigration.cs:line 38
at CmisSync.Lib.Sync.ConfigMigration.Migrate() in e:\Users\davette\Documents\Visual Studio 2013\Projects\CmisSync-master\CmisSync.Lib\ConfigMigration.cs:line 27
at CmisSync.Program.Main(String[] args) in e:\Users\davette\Documents\Visual Studio 2013\Projects\CmisSync-master\CmisSync\Program.cs:line 74
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: System.Xml.XmlException
HResult=-2146232000
Message=Root element is missing.
Source=System.Xml
LineNumber=0
LinePosition=0
SourceUri=""
StackTrace:
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at System.Xml.XmlReader.MoveToContent()
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderSyncConfig.Read9_CmisSync()
InnerException:

1 个答案:

答案 0 :(得分:1)

如果出现此问题,请查看here

它的长短是删除配置文件,然后重新运行调试。

然后一切都应该有效。