私は .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)