TIA,
I have used NAnt with much success to
build web projects over the last 6 months. Could you include your .build file
so we could look at it?
Matt Hulse
[EMAIL PROTECTED]
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Shikari Shambu
Sent: Tuesday, September 28, 2004
3:22 PM
To: [EMAIL PROTECTED]
Subject: [Nant-users] NAnt
<solution> task on web project fails
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?
[delete] Deleting 0 files.
[solution] Starting solution build.
[solution] Loading projects...
[solution] Loading project 'http://localhost/MyApp/MyApp.Web.csproj'.
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