I was using webmap and still having this problem a few days ago.  I debugged and fixed it with the following line change in Project.cs (in NAnt.VSNet):
 
wdc.UploadFile(cs.FullOutputFile, cs.RelativeOutputPath + "/" + _projectSettings.OutputFile);
 
to:

wdc.UploadFile(cs.FullOutputFile, cs.RelativeOutputPath + _projectSettings.OutputFile);

This is because VS.NET slaps a "\" on the end of it's build path (in my case bin\).  So I took the extra "/" away and let it use the \ instead of /.
 
Also, when NAnt uploads the .dll to D:\Project\Subproject\Web\bin, he throws it there via virtual directory http:\\localhost\Centre\bin.  I had write permission on http:\\localhost\Cente, but not the subdirectory bin.  I went in to IIS and added write access there and the build succeeds.  I would think it would be better for the upload to use the file path rather than virtual path but I'm a newbie .NET dude, so most would be better to make this determination.  Hope this helps.
 
Eric

Tom Cabanski <[EMAIL PROTECTED]> wrote:
The quickest solution I know is to use the webmap to map your web solutions to physical paths. This eliminates web dav headaches. I'm pretty sure it is in the build you have. If not, I know you can get it from anon cvs.

For example:








-------------------------------------
Tom Cabanski, President
Objective Advantage, Inc.
http://www.oai.cc
Phone: +1-281-348-2517x15
 
________________________________________
From: Bruce Onder [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 28, 2003 10:50 AM
To: [EMAIL PROTECTED]

I am using nant-0.8.3-rc2 on a laptop running Windows XP sp1 and IIS 5.1.
 
I have the following build file:


   SRS Build File
  
  
  
     
  


When I run it, everything builds fine.  However, the build process times out when it tries to upload the assemblies to the web site's bin folder:
 
 [solution] Uploading output files
http://localhost/srs/bin//SRS.dll
Total time: 369 seconds.
BUILD FAILED
INTERNAL ERROR
System.Net.WebException: The operation has timed-out.
   at System.Net.ConnectStream.Write(Byte[] buffer, Int32 offset, Int32 size)
   at NAnt.VSNet.Tasks.WebDavClient.UploadFile(String strLocalFilename, String s
trRemoteFilename)
   at NAnt.VSNet.Tasks.Project.Compile(String strConfiguration, ArrayList alCSCA
rguments, String strLogFile, Boolean bVerbose, Boolean bShowCommands)
   at NAnt.VSNet.Tasks.Solution.Compile(String strConfiguration, ArrayList alCSC
Arguments, String strLogFile, Boolean bVerbose, Boolean bShowCommands)
   at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask()
   at NAnt.Core.Task.Execute()
   at NAnt.Core.Target.Execute()
   at NAnt.Core.Project.Execute(String targetName)
   at NAnt.Core.Project.Execute()
   at NAnt.Core.Project.Run()
Please send bug report to [EMAIL PROTECTED]

I have all permissions enabled on the vroot (write, read, access scripts, etc.) and have full control on the actual directory the vroot points to, but I still get the timeout.
 
Any help much appreciated! ;-)




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Reply via email to