You need administrative access by default to change files content inside "Program Data" which is special folder by windows vista and above.
When u run application within Visual Studio, it will run ok.
To solve the problem, I have changed the folder permissions to my data folder inside the 'Program Data' folder.
My problem solved.