开发者

ODP.NET: AccessViolationException when trying to open connection

开发者 https://www.devze.com 2023-03-31 04:58 出处:网络
I am trying to learn ODP.NET, and have built a simple example based on Oracle\'s Getting Started example. However, whenever my code hits the conn.Open() statement, it immediately crashes with an Acces

I am trying to learn ODP.NET, and have built a simple example based on Oracle's Getting Started example. However, whenever my code hits the conn.Open() statement, it immediately crashes with an AccessViolationException. I am on a 64-bit OS, but running 32-bit versions of the Oracle 11g Client and ODAC. My code is identical to Oracle's example, other than it connecting to a d开发者_如何学JAVAifferent test database.

Is there something simple I'm missing here?


Not exactly sure what was wrong, but I fixed it by manually removing Oracle using the guide here and reinstalling Oracle client and the ODAC client, and putting ODAC in a separate install directory. My best guess is that I had some residual problems in the registry from an older version of the Oracle client.

0

精彩评论

暂无评论...
验证码 换一张
取 消