Hi everyone
I have a problem
when I run the vb.net program on VS2010 the following error appears:

Error while trying to run project:
Unable to start program 'G:\TREEVIEW_uc_cr\bin\debug\Treeview_UC.exe'

Please help in solving this problem.
Thank for advance

Dani AI

Generated

A compact troubleshooting note to add to this thread, building on ’s observations and ’s suggestions.

The Visual Studio message basically means the IDE could not start the built executable. That can happen for a handful of concrete reasons — the EXE is missing or overwritten, a build is failing silently, the file is locked or quarantined by antivirus, debugger start settings point to the wrong file, or the project output path/mapped drive has permission or availability issues. Check these in order so you can narrow the cause quickly.

  • Verify the actual output file: open the project folder and confirm the EXE exists in the bin\Debug folder. Double-click it in Explorer to see if it runs outside VS.
  • Clean and rebuild: use Clean Solution, then Rebuild Solution; or delete bin and obj folders manually before rebuilding. Watch the Output window for any errors or warnings that stop the build.
  • Debug settings and startup project: make sure the correct project is set as StartUp Project and that Project Properties -> Debug is not pointing to an external program or an incorrect path.
  • File locks, AV and permissions: if copying a backup EXE fixed it temporarily, the original build may be getting removed or blocked. Check antivirus/quarantine, unblock the file (Properties -> Unblock), check file permissions, and reboot to clear locks.
  • Drive and environment issues: if the project lives on a mapped/network/USB drive (G:), test moving it to a local C: path and running VS as the same user (no elevation mismatch). Also inspect any post-build events that might delete/move the output.

If it happens again, capture the full Build Output and any Windows Event Viewer entries, and paste those texts (not just the single error line). Those logs are the best way to pinpoint whether the problem is a build failure, permission/AV interference, or a debugger configuration issue.

Recommended Answers

All 3 Replies

  1. While it's odd to see that old a version of VS2010, does the app work while you are in VS2010?
  2. I see no code and telling me so little does not give up many clues. Do other projects work?
  3. Create a very small project such as Hello World to see if your install and permissions are correct.

to

I just tried to copy the ..\bin\debug folder from the backup program
and I overwrite it in the original folder of the original program
then I open the program and it runs normally
but only for a moment the error is gone

if i try to make a small project like making
"Hello World" is running normally

However, if my project is fully opened from the "backup file" intact
until now the error has not appeared again

The question is what is the main cause of the error?
"Error while trying to run project:Unable to start program "

Since you fixed it, you'll have to wait to see what causes it again. That's a very old version of Visual Studio so bugs are expected. The clues are not here as to what happened but rather than leave it here as-is, next time try a full compile. I didn't run VS2010 long enough for long term memories but as you use it a lot, look around for an option to clean the project then fully recompile.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.