How to resolve this error

Posted on 2009-12-17
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??
Question by:psdeepu545
    LVL 11

    Expert Comment

    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.
    LVL 11

    Accepted Solution

    forgot to attach this image to illustrate my comment.

    Author Closing Comment

    i copied that command and ranin command prompt. then it asked for directory of file. I selected file and its working from there.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
    Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
    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.…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now