Why can't my C# app create files in Windows 7?
Posted
by WindyCityEagle
on Stack Overflow
See other posts from Stack Overflow
or by WindyCityEagle
Published on 2010-04-23T15:56:11Z
Indexed on
2010/04/23
16:03 UTC
Read the original article
Hit count: 160
I have a C# app that creates a settings file for itself to store the current state of certain visual elements. This app works just fine on any machine that isn't running Windows 7, but on those machines we get an error that the settings file can't be created because the user doesn't have permission. Now, I could fix this issue by going to each computer, logging in as the administrator and giving the user read and write access on the program folder for the application that we've installed, but there has to be a better way.
It seems like in XP, you got write access on the folders you created by default, but that isn't the case anymore. Is there a setting I need in the setup package to make this work?
© Stack Overflow or respective owner