here's another strange behaviour I'm currently facing. I have an application deployed on a network-drive with full-trust. This application checks for existing ODBC-Connections.
On my machine everything is fine and works as expected.
On the machine of a colleague it is not working and states the message, that he isn't able to access the key. In "regedit" he is able to access and change it. He's like me a local admin.
The开发者_Python百科 Key the application is accessing is:
var odbcKey = Registry.LocalMachine.CreateSubKey("SOFTWARE\\ODBC\\ODBC.INI");
Starting the same application with the *.exe everything is fine.
Any ideas?
You have to edit the permission of this registry key by going to the registry key then right click on it, then permissions .. then give the user permission to read from it. ( assuming u are using windows 7 ).
I have faced the same problem, and it is fixed by giving the "write" permission for the correct user on this key, as you are trying to create a sub key in the registry which need permission.
精彩评论