Last post Nov 10, 2006 01:29 AM by vivek_iit
Nov 09, 2006 07:22 PM|pure.krome|LINK
i'm trying to get my WDP to copy all the contents of the website that has been successfully compiled and sits in the WDP Output directory.
Currently, i've got the following MSBuild task...
<Copy DestinationFiles="@(PrecompiledOutput->'$(DestinationWebServer)%(RecursiveDir)%(Filename)%(Extension)')" SourceFiles="@(PrecompiledOutput)" />
The tasks semi works - files are copied but not all. I'm not exactly sure WHAT files are not being copied across, but i know that the Application_Start and Session_Start are not getting fired. I also know that if i manually copy over ALL the files from the
WDP output directory to the destination web server (eg.
\\192.168.0.2\My Web Site) then the Application_Start/Session_Start _do_ get fired. This proves that the WDP does correctly build and compile the project successfully but my COPY task is not copying the correct information accross
nbsp;So - anyone know of a nice way to copy across all the files from the output dir to the web site
web deployment project msbuild task copy global.asax application_start session_start
Nov 10, 2006 01:29 AM|vivek_iit|LINK
I generally use the Publish functionality in VS 2005, if I am using WDP, I use some FTP software like Smart FTP to make the process more reliable. Also, while using the publish option i can see the status in the output window, which can be helpful.
So I would suggest you to either FTP or use a MSI setup project with WDP.