0

I'm written a Windows Form Application based on .NET Framework 3.5 SP1 and it's running on windows server 2003 edition. I tried to add another user to use this program and got the following error

The Zone of the assembly that failed was: MyComputer



2012-04-11 13:30:43,326 [1] ERROR UclUserLogin - [btnSubmit_Click] The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception. 
System.TypeInitializationException: 
The type initializer for 'Oracle.DataAccess.Client.OracleConnection' threw an exception. --->               
System.TypeInitializationException: The type initializer for 'Oracle.DataAccess.Client.RegAndConfigRdr' threw an exception. --->   
System.Security.SecurityException: Requested registry access is not allowed.
at System.ThrowHelper.ThrowSecurityException(ExceptionResource resource)
at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
at Microsoft.Win32.RegistryKey.OpenSubKey(String name)
at Oracle.DataAccess.Client.RegAndConfigRdr..cctor()
The Zone of the assembly that failed was:
MyComputer
--- End of inner exception stack trace ---
at Oracle.DataAccess.Client.RegAndConfigRdr.ReadEntriesForRegistryAndConfig()
at Oracle.DataAccess.Client.OracleInit.Initialize()
at Oracle.DataAccess.Client.OracleConnection..cctor()
--- End of inner exception stack trace ---
at Oracle.DataAccess.Client.OracleConnection..ctor(String connectionString)
John Saunders
  • 160,644
  • 26
  • 247
  • 397
puthisorn
  • 13
  • 1
  • 1
  • 2

1 Answers1

0

The Oracle client can not access some register key due to the user have not full control rights to them.

What you need to Using regedit, navigate to the registery key and right click on the folder with the above name. Then select permissions and you can change permissions there per user.

A possible key is

`HKLM/Software/Policies/Microsoft/Windows/Installer`

If you can not find the correct key , your can use process monitor to check what extactly it is.

process monitor can be download Microsoft

Martijn Heemels
  • 3,529
  • 5
  • 37
  • 38
ray_linn
  • 1,382
  • 10
  • 14
  • Link provided has chinese language in it. Not every one understands chinese. – Hari Mar 19 '14 at 09:21
  • just change the local indicator in the URL. you can directly visit http://technet.microsoft.com/en-us/sysinternals – ray_linn May 29 '14 at 02:53