?
Solved

How to resolve this error

Posted on 2009-12-17
3
Medium Priority
?
274 Views
Last Modified: 2013-11-12
The command "xcopy "C:\Development\Audit\MAIN\SourceCode\WindowsClient\XXX.Audit.WindowsClient.Audit\bin\Debug\*.*" "C:\Development\Audit\MAIN\SourceCode\WindowsClient\Audit\bin\Debug\Modules" /E /Y
" exited with code 2.

Whwn i compile my WPF application i am getting this error which is not getting for other people compiling in their boxes.
Please help??
0
Comment
Question by:psdeepu545
  • 2
3 Comments
 
LVL 11

Expert Comment

by:lenordiste
ID: 26074987
exit code 2 apparently means "The user pressed Ctrl+C to terminate xcopy." ... Which is weird since parameter Y is supposed to prevent user interaction. Do you have by any chance changed your build events? If so can you send them to us?

Just to take the step ahead, what you can try is edit your page build event and change it to something like this:
xcopy "$(SolutionDir)$(ProjectName)" "$(SolutionDir)$(ProjectName)$(OutDir)" /E /I /Y /D
let me know if you still get the same error code.
0
 
LVL 11

Accepted Solution

by:
lenordiste earned 1500 total points
ID: 26075009
forgot to attach this image to illustrate my comment.
postbuild.jpg
0
 

Author Closing Comment

by:psdeepu545
ID: 31667436
i copied that command and ranin command prompt. then it asked for directory of file. I selected file and its working from there.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question