running EXE from bin OR debug folder

I

Irfan

hi, All

After using the 'build' i try to run the exe form bin folder, and it works
fine. However, when i run it form
debug folder it gives me a 'filenotFoundException'. Can anybody suggest why
it is so.
and secondly what is the differance bw the two folders.

TIA
irfan
 
H

Herfried K. Wagner [MVP]

Irfan said:
After using the 'build' i try to run the exe form bin folder, and it works
fine. However, when i run it form
debug folder it gives me a 'filenotFoundException'. Can anybody suggest
why it is so.

Doesn't the exception's message contain a file name?
 
L

Lucvdv

hi, All

After using the 'build' i try to run the exe form bin folder, and it works
fine. However, when i run it form
debug folder it gives me a 'filenotFoundException'. Can anybody suggest why
it is so.
and secondly what is the differance bw the two folders.

The bin folder is where VS stores the compiled binary plus other necessary
files (COM/ActiveX interop dll's etc.) when you run the program in the
debugger (F5 or start button).

The release and debug folders are where the compiled binary is stored when
you tell VS to compile it (ctrl+shift+B or build menu).
Other necessary files aren't stored there, so you get "file not found".
 
I

Irfan

ok, I understand now.

Yes, i am referacing one of my own projects. Therfore it is available in the
bin folder and not available in the debug folder.

However, does this mean that whenever i need to use exe in debug folder i
should copy all the files that i am refering to.
I other words what is the need of 'exe' being created in debug folder ?

irfan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top