J
Joao Santa Barbara
Hi all
i have this error reading one registry key , can anyone assist me .. please
very urgent
i try in one computer, and work fine, but in other computer it didn´t work
and throws this error ..???
"Request for the permission of type
System.Security.Permissions.RegistryPermission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
failed."
USing this function
Public Function ReadProgramValueFromRegistry(ByVal Value As String) As
Object
Dim Reg As Microsoft.Win32.Registry
Dim RegKey As Microsoft.Win32.RegistryKey
RegKey = Reg.LocalMachine.OpenSubKey(APPLICATION_CURRENT_REG_KEY)
Return RegKey.GetValue(Value)
End Function
i have this error reading one registry key , can anyone assist me .. please
very urgent
i try in one computer, and work fine, but in other computer it didn´t work
and throws this error ..???
"Request for the permission of type
System.Security.Permissions.RegistryPermission, mscorlib,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
failed."
USing this function
Public Function ReadProgramValueFromRegistry(ByVal Value As String) As
Object
Dim Reg As Microsoft.Win32.Registry
Dim RegKey As Microsoft.Win32.RegistryKey
RegKey = Reg.LocalMachine.OpenSubKey(APPLICATION_CURRENT_REG_KEY)
Return RegKey.GetValue(Value)
End Function