[2.0] Could not access file system or registry in vista through programmatically
Hi,
I am developing software product in c#.net 2.0. In Windows XP I can access file system to store product information regardless of the user logged in the system.
Now I want to do it in Vista, But I could not access Registry or file system (E:\Windows\System32).
It showing
UnAuthorizedAccessException
Any solution or any alternative ?
Thanks in advance,
R. Pandiarajan.
Re: [2.0] Could not access file system or registry in vista through programmatically
I think you need requestedExecutionLevel.
See here.
Re: [2.0] Could not access file system or registry in vista through programmatically
Hi thanks,
I got the error because I try to write the file in .dll extension (to intentionally confuse the user) for example one.dll, but actually it is a text file. Before I find this, all I did that you have advised, but it throws same error. finally I changed the extension, now its working. And I think there is no need of changing or creating manifest file, because I can run application without that changing anything in manifest file, The only problem is extension(.dll). I think the problem may be still there in Vista X64 systems, because when I googled I got results of problems in Vista X64 systems. (I am running X86).
But I could not share the data file among all users. Now each user will have seperate files, I want to share the data among all the users, How can I do?
Please help me.
Thanks & Regards,
R. Pandiarajan.