r/visualbasic • • Jun 17 '21

VB.NET Help My Exe won't open (Visual Studio 20109, Windows 10)

I build my program, everything works when I run it in the Debugger, everything is perfect.

I build the project. I go to the folder and I move the EXE to my desktop. I click it. There is a wait cursor, and then nothing happens. I rebuild. Same thing. Nothing.

Other programs don't suffer this problem. What could cause a program to run in the debugger but not as an exe?

5 Upvotes

3 comments sorted by

2

u/RJPisscat Jun 17 '21

Perhaps it has a dependency that is missing. Copy the entire folder to the desktop. Try to run it in that folder. If it works, remove things from the folder until it stops working.

3

u/Thunor_SixHammers Jun 17 '21

Thanks. That worked. I am using a few custom libraries. All my other programs had been pretty standard.

1

u/user_8804 Jun 17 '21

It is possible to tell your application where the dependencies are located so they can be in an external folder. You probably don't need to worry about that at this level, and can just send a shortcut on the desktop instead. I just figured it was worth knowing regardless.