tags:

views:

107

answers:

3

When i start to debug application i am getting this error Can any one give me the solution

Error 1 The command "xcopy "F:\asoadmin_ML_view\leaf\Console\Bin\Debug\Console.*" "F:\leafPRODUCT\Bin" /f /e /y /i xcopy "F:\leafPRODUCT..\voyagerhtml\Operations Sentinel Console Help*.chm" "F:\leafPRODUCT\Help" /f /e /y /i " exited with code 4.

+2  A: 

Your build process likely has a pre/post build step associated with it that is executing the XCopy commands. Error code 4 implies either insufficient disk space to perform the copy, or a syntax error in the command.

To edit your project's pre/post build steps, right click on your project, then select Properties -> Build Events. To diagnose these commands, try running them from the command line after you build your project.

Steve Guidi
means i didnt get these words what you mentioned " To diagnose these commands, try running them from the command line after you build your project. "
peter
Yaa i got it second line producing problems,,Actually the path is not given means ..\voyagerhtml here in that ..\ we need to give appropriate folder name
peter
+3  A: 

According to this, error code 4 means either you do not have enough memory to perform debugging, or (much more likely) you have invalid syntax. The answer to this thread suggests placing double quotes around your entire path.

Matthew Jones
+1  A: 

Maybe the user with which you try to execute the 'xcopy' doesn't have enough permissions (according to this thread: http://social.msdn.microsoft.com/Forums/en-US/tfsbuild/thread/5c4a55e2-243a-427f-800d-39b42c9e860e).

aeter