我编写了一个基于 .NET Framework 3.5 SP1 的 Windows 窗体应用程序,它在 windows server 2003 版上运行。我试图添加另一个用户来使用这个程序并得到以下错误
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)