I am trying to read from a config file in ProgramFiles/MyApp but in Windows 7 it throws an exception for Access denied, it is the same and for a file in ProgrammData/MyApp:
fileStream = new FileStream(this.StorageName, FileMode.Open, FileAccess.Read);
Is not it allowed to read only from these folders?
take a look at this:
http://social.msdn.microsoft.com/forums/en-us/windowsgeneraldevelopmentissues/thread/53660459-EC32-4819-9213-5190F5A1B885
it seems to be an UAC issue, and you should relocate your information according to nmahajan.
This one is even better:
http://social.msdn.microsoft.com/Forums/en/windowsgeneraldevelopmentissues/thread/dd28741a-1025-4ca2-a88b-95a5ea156e7f
Quoting GTVic: