Reading From ProgramData with Windows *

have a .NET 2005 Windows forms application that write a key value for licensing to the ProgramData folder. When program strts it reads this same data to check license and other settings. The problem is when application starts it cannot Read the data. This only occurs in Windows 8. Odd that it can write but not read. I would be very grateful for any ideas with this perplexing issue.
gcook17Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sarabandeCommented:
how many programs are involved with the above issue? normally, you have a setup program which would write the configuration and license data. the application isnatlled only would read.

what is your approach?

Sara
0
gcook17Author Commented:
In this application the data is written once the program is installed and the user decides to license the application instead of simply using it in trial mode.
0
David Johnson, CD, MVPOwnerCommented:
check the permissions.  The user probably doesn't have the proper permissions.  When you install a program trustedinstaller has the permissions you will have to change the permissions to allow authenticated users to modify objects
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sarabandeCommented:
can you post code snippets where the program opens, writes, and reads (a file)? or are you using higher level functions?

Sara
0
gcook17Author Commented:
The function that was causing this issue was an encryption function. For some reason the debugger would not break on this error and it was eventually found using log4net. Also permissions was an issue after adjustment of permissions and replacing the encryption method the problem was resolved. Oddly this encryption method worked fine in Win 7 and below but not in Win 8.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 8

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.