Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Event handler to send data from SPList to Oracle DB

$
0
0

Hi All,

    I have an Event Handler which has to send data to Oracle DB and it has been created using sandbox mode. I have tried many ways to do that. some of them are,

i) I have created a web service and tried to invoke the method. The web service works fine in other places, but when used in event handler it comes up with an error. 

Error Details are: Cannot execute a program. The command being executed was \"C:\\Windows\\Microsoft.NET\\Framework64\\v2.0.50727\\csc.exe\" /noconfig /fullpaths @"C:/Users/File path/xyzfhd.cmdline".

ii) Created an ODBC Data Source for both 32 bit and 64 bit and tested as well (Connection has been successful). when tried to create a method with Data Source to insert the data to Oracle DB. At the OdbcConnection.Open it comes up with this error message.

Error Details are:

Error at Open method is : 'conn.serverversion' threw an exception of type 'system.invalidoperationexception'.

When exception is caught it shows the message as: Request for the permission of type 'System.Data.Odbc.OdbcPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Let me know if you need any other information regarding this.


Prasad Venkatesan


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>