SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am working on a webservice which connects to a OracleDatabase. I already implemented this service as Service, but now got to transform this as a Sharepoint Solution to use the Sharepoint deployment mechanisms.

at the following line an Exception is thrown ( Registry access is not allowed )

var conn = new Sytem.Data.OracleClient.OracleConnection()

also changing this to does not work ( have to attach the dll in the Package Advanced feature ), but then a ORA-12545 comes up:

var conn = new Oracle.DataAccess.Client.OracleConnection()

But - if the code is used in a WebPart, aspx - Page it works like a charm on the same SiteCollection as the webservice - also no ORA-12545 failure Is there some trust configuration that OracleConnections cannot be instanced??

share|improve this question
up vote 1 down vote accepted

Got the problem - The lookup from Hostaddress defined in the connectionstring did not work. Now i am using the IP of the Oracle-Server and everything is working now.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.