Thanks for all your help
________________________________ From: Ruben Willems <[email protected]> To: [email protected] Sent: Friday, 8 May, 2009 9:36:54 Subject: [ccnet-user] Re: error in build - The data at the root level is invalid. Line 1, position 1. Hi it seems like it, but it is a nant problem, not a ccnet one. maybe you can call visual studio from nant or so. with kind regards Ruben Willems On Fri, May 8, 2009 at 10:31 AM, Richard Slade <[email protected]> wrote: Hi Ruben, Thanks. I see the point, but don't understand why it won't compile though. Surely all the other projects in my solution are classed as vbproj projects. I've targeted the solution for the build, not the project directly and it copes with all the other project types. Apologies - it's early still. Do I just have to accept that it won't compile SetUp and Deployment projects? Thanks ________________________________ From: Ruben Willems <[email protected]> To: [email protected] Sent: Friday, 8 May, 2009 9:20:06 Subject: [ccnet-user] Re: error in build - The data at the root level is invalid. Line 1, position 1. Hi bad news I'm afraid : vdproj files can only be compiled by Visual Studio http://khurwitz.blogspot.com/2008/08/nant-and-setup-projects-vdproj.html with kind regards Ruben Willems On Fri, May 8, 2009 at 10:11 AM, Richard Slade <[email protected]> wrote: Hi Ruben, Error in build log as follows: <failure> <builderror> <type>NAnt.Core.BuildException</type> <message><![CDATA[Error loading project 'C:\Documents and Settings\XXX\My Documents\Visual Studio 2005\Projects\XXX.HeadOffice.Setup\XXX.HeadOffice.Setup.vdproj'.]]></message> <stacktrace><![CDATA[ at NAnt.VSNet.ProjectFactory.CreateProject(SolutionBase solution, SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver referencesResolver, DirectoryInfo outputDir, String projectPath) at NAnt.VSNet.ProjectFactory.LoadProject(SolutionBase solution, SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver referencesResolver, DirectoryInfo outputDir, String path) at NAnt.VSNet.SolutionBase.LoadProjects(GacCache gacCache, ReferencesResolver refResolver, Hashtable explicitProjectDependencies) at NAnt.VSNet.WhidbeySolution..ctor(String solutionContent, SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver refResolver) at NAnt.VSNet.WhidbeySolutionProvider.GetInstance(String solutionContent, SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver refResolver) at NAnt.VSNet.SolutionFactory.LoadSolution(SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver refResolver) at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.Target.Execute() at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) at NAnt.Core.Project.Execute() at NAnt.Core.Project.Run()]]></stacktrace> <internalerror> <type>System.Xml.XmlException</type> <message><![CDATA[Data at the root level is invalid. Line 1, position 1.]]></message> <stacktrace><![CDATA[ at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) 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(TextReader txtReader) at NAnt.VSNet.ProjectFactory.LoadProjectXml(String path) at NAnt.VSNet.ProjectFactory.CreateProject(SolutionBase solution, SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver referencesResolver, DirectoryInfo outputDir, String projectPath)]]></stacktrace> </internalerror> </builderror> </failure> ________________________________ From: Ruben Willems <[email protected]> To: [email protected] Sent: Thursday, 7 May, 2009 19:29:43 Subject: [ccnet-user] Re: error in build - The data at the root level is invalid. Line 1, position 1. Hi whre do you get this error? can you post a stacktrace/ errorlog ? with kind regards Ruben Willems On Thu, May 7, 2009 at 7:44 PM, Richard Slade <[email protected]> wrote: Hi All, Hope someone can help. I hae a .NET 2.0 winforms solution with about 9 projects in it. All has been building fine until I added a Set up project to the solution. I now get a The data at the root level is invalid. Line 1, position 1 error getting project - build failed message. It seems to be throwing an XML error. Any help appreciated. Many thanks Richard
