Normal user accounts have no write access to the program files directories where your application is probably located.
You have to execute it either with administrator priviliges or (preferred) use a different location to store the file.
For application configuration and settings use one of the
AppData folders depending on your requirements (local user, roaming user, or all users); see the
Application Class (System.Windows.Forms)[
^] to get those folders.