Wednesday, March 3, 2010

Unable to write to C:\ProgramData

Is you application experiencing this issue when trying to write to the %ALLUSERSPROFILE% "C:\ProgramData" directory as a normal user? What the .... you're probably saying to yourself. This is SUPPOSED to be an ALL USERS folder!!!!

The problem is caused by creating the file/folder in this location as an administrator.

When a non-administrator user then tries to write to this location, you will receive the unable to write error.

SOLUTION:
Create the folders/files in the C:\ProgramData as a normal (non-administrator) user.