What am I doing wrong?

Frankku

New member
Joined
Jan 8, 2023
Messages
1
Programming Experience
Beginner
I wrote a simple VB.NET application. When the program, which writes a super-short text file to the desktop, is run from within Visual Studio, it runs just fine. However, when it is run by double-clicking the .exe file, this error appears: Unhanded exception has occurred... Access to the path "desktop" is denied.
I checked explorer and the security in the desktop folder appears to be set correctly. What on earth is wrong?
 
Back
Top