Mono, unix - No access to the given key

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
sinm
Posts: 1
Joined: Mon 17 Jan 2011 18:44
Location: RU

Mono, unix - No access to the given key

Post by sinm » Mon 17 Jan 2011 19:09

Hi!

Mono 2.6.7, ASP web application over XSP2, osx 10.6.6, oracle instant client 10.2.

System.Data.OracleClient works on the machine, but dotConnect EXPRESS fails on OracleConnection::Open() with following stack trace:

Code: Select all

System.Security.SecurityException: No access to the given key
  at Microsoft.Win32.KeyHandler..ctor (Microsoft.Win32.RegistryKey rkey, System.String basedir) [0x00000] in :0 
  at Microsoft.Win32.KeyHandler.Lookup (Microsoft.Win32.RegistryKey rkey, Boolean createNonExisting) [0x00000] in :0 
  at Microsoft.Win32.UnixRegistryApi.OpenSubKey (Microsoft.Win32.RegistryKey rkey, System.String keyname, Boolean writable) [0x00000] in :0 
  at Microsoft.Win32.RegistryKey.OpenSubKey (System.String name, Boolean writable) [0x00000] in :0 
  at Microsoft.Win32.RegistryKey.OpenSubKey (System.String name) [0x00000] in :0 
  at (wrapper remoting-invoke-with-check) Microsoft.Win32.RegistryKey:OpenSubKey (string)
  at Devart.Data.Oracle.OracleHomeCollection.a () [0x00000] in :0 
  at Devart.Data.Oracle.ak..ctor (Devart.Data.Oracle.aj A_0, Devart.Data.Oracle.ak A_1) [0x00000] in :0
There is dll.licenses in web application's project resources, it's compiled on a winbox where dotConnect EXPRESS installed:

Code: Select all

C:\Program Files\Devart\dotConnect\Oracle>"C:\Program Files\Microsoft SDKs\Windo
ws\v7.0A\bin\lc.exe" /target:webapp.dll /complist:licenses.licx /i:Devart.Data.O
racle.dll /v
Microsoft (R) .NET License Compiler
[Microsoft .Net Framework, Version 2.0.50727.3615]
Copyright (c) Microsoft Corporation.  All rights reserved.


Processing complist 'licenses.licx'...
licenses.licx (1) : info LC0001 : Processing component entry 'Devart.Data.Oracle
.OracleConnection, Devart.Data.Oracle'
licenses.licx (1) : info LC0002 : Resolved entry to 'Devart.Data.Oracle.OracleCo
nnection, Devart.Data.Oracle, Version=6.0.86.0, Culture=neutral, PublicKeyToken=
09af7300eec23701'
Creating Licenses file webapp.dll.licenses...
No more thoughts I have...

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Wed 19 Jan 2011 15:57

dotConnect for Oracle supports Mono only in the Direct mode (without using Oracle Client). The Direct mode is available only in the Professional and Developer editions. You can download dotConnect for Oracle Professional Trial from our download page.

Post Reply