For the last two months I have been trying to get
the NAnt solution task to work with my web project build. However, I always get
this message
The data at the root level is invalid. Line 1,
position 1.
Full details given below. I keep updating to the
latest nightly build. But, that does not help. No idea what this line in te
error stack means
C:\Documents and Settings\drieseng\Local
Settings\Temp\tmp33C.tmp\src\NAnt.VSNet\ProjectFactory.cs:line
Has anyone gotten the solution task to work
successfully with a web project?
TIA
[delete] Deleting 0
files.
[solution] Starting solution build. [solution] Loading projects... [solution] Loading project 'http://localhost/MyApp/MyApp.Web.csproj'. BUILD FAILED
Error loading project
'http://localhost/MyApp/MyApp.Web.csproj'.:
NAnt.Core.BuildException: Error loading project 'http://localhost/MyApp/MyApp.Web.csproj'. ---> System.Xml.XmlException: The data at the root level is invalid. Line 1, position 1. at System.Xml.XmlTextReader.ParseRoot() at System.Xml.XmlTextReader.Read() at System.Xml.XmlValidatingReader.ReadWithCollectTextToken() at System.Xml.XmlValidatingReader.Read() at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace) at System.Xml.XmlDocument.Load(XmlReader reader) at System.Xml.XmlDocument.LoadXml(String xml) at NAnt.VSNet.ProjectFactory.LoadProjectXml(String path) in C:\Documents and Settings\drieseng\Local Settings\Temp\tmp33C.tmp\src\NAnt.VSNet\ProjectFactory.cs:line 76 at NAnt.VSNet.ProjectBase.LoadXmlDocument(String fileName) in C:\Documents and Settings\drieseng\Local Settings\Temp\tmp33C.tmp\src\NAnt.VSNet\ProjectBase.cs:line 372 at NAnt.VSNet.Project.Load(Solution sln, String projectPath) in C:\Documents and Settings\drieseng\Local Settings\Temp\tmp33C.tmp\src\NAnt.VSNet\Project.cs:line 141 --- End of inner exception stack trace --- at NAnt.VSNet.Project.Load(Solution sln, String projectPath) in C:\Documents and Settings\drieseng\Local Settings\Temp\tmp33C.tmp\src\NAnt.VSNet\Project.cs:line 143 at NAnt.VSNet.ProjectFactory.LoadProject(Solution sln, SolutionTask slnTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver refResolver, DirectoryInfo outputDir, String path) in C:\Documents and Settings\drieseng\Local Settings\Temp\tmp33C.tmp\src\NAnt.VSNet\ProjectFactory.cs:line 95 at NAnt.VSNet.Solution.LoadProjects(GacCache gacCache, ReferencesResolver refResolver) in C:\Documents and Settings\drieseng\Local Settings\Temp\tmp33C.tmp\src\NAnt.VSNet\Solution.cs:line 552 at NAnt.VSNet.Solution..ctor(FileInfo solutionFile, ArrayList additionalProjects, ArrayList referenceProjects, TempFileCollection tfc, SolutionTask solutionTask, WebMapCollection webMaps, FileSet excludesProjects, DirectoryInfo outputDir, GacCache gacCache, ReferencesResolver refResolver) in C:\D ocuments and Settings\drieseng\Local Settings\Temp\tmp33C.tmp\src\NAnt.VSNet\Solution.cs:line 130 at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask() in C:\Documents and Settings\drieseng\Local Settings\Temp\tmp33C.tmp\src\NAnt.VSNet\Tasks\SolutionTask.cs:line 380 at NAnt.Core.Task.Execute() in C:\Documents and Settings\drieseng\Local Settings\Temp\tmp33C.tmp\src\NAnt.Core\Task.cs:line 177 at NAnt.Core.Target.Execute() in C:\Documents and Settings\drieseng\Local Settings\Temp\tmp33C.tmp\src\NAnt.Core\Target.cs:line 249 at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) in C:\Documents and Settings\drieseng\Local Settings\Temp\tmp33C.tmp\src\NAnt.Core\Project.cs:line 876 at NAnt.Core.Project.Execute() in C:\Documents and Settings\drieseng\Local Settings\Temp\tmp33C.tmp\src\NAnt.Core\Project.cs:line 833 at NAnt.Core.Project.Run() in C:\Documents and Settings\drieseng\Local Settings\Temp\tmp33C.tmp\src\NAnt.Core\Project.cs:line 902 Total time: 0.5
seconds.
|
- [Nant-users] NAnt <solution> task on web project fail... Shikari Shambu