This is a migrated thread and some comments may be shown as answers.

Unable to load OraOps10w.dll:Invalid access to memory location

1 Answer 94 Views
Databases and Data Types
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tracy
Top achievements
Rank 1
Tracy asked on 14 Nov 2013, 07:05 AM
I have been working on OpenAccess with Oracle for about a year.

Soem days ago, I noticed that the visual designer throw the exception:
Unable to load OraOps10w.dll:Invalid access to memory location
 photo img3_zpsd571cd14.jpg

 photo img4_zps86e822d1.jpg

In the programe runtime,  also exists the same exception. for example:
Sunny.Model.Person person = new Sunny.Model.EntitiesModel().People.First();

run the code above will throw the same OraOps10w.dll exception.

But, I found that reference the Oracle.DataAccess.dll and read data from database outside OpenAccess without any exception.

Even more incredible is that if open a OracleConnection before the OpenAccess operation:
new Oracle.DataAccess.Client.OracleConnection(connectionString).Open();
Sunny.Model.Person person = new Sunny.Model.EntitiesModel().People.First();

the code will run without any exception. but I can not find a solution to solve the exception throw from the visual designer.

I have tried to reinstall "Oracle Data Access Components 10", grant all permission to everyone to the oracle directoy, and update the OpenAccess to the latest version, and so on... but the exception still exist.

Thank you for any help in advance!

1 Answer, 1 is accepted

Sort by
0
Ralph Waldenmaier
Telerik team
answered on 14 Nov 2013, 01:37 PM
Hi Tracy,
You said you are working with the Product for about a year. What has changed recently on your machine? Was everything working before? Have you upgraded your project to a newer .NET version?
According to this information, have you referenced the assemblies that match your .NET framework version?

To provide more help on this, can you elaborate a bit more about your environment? Which Oracle Client are you using? Which architecture is your project? x86 vs. X64. Which Visual Studio are you using?

I am looking forward to hearing from you soon and getting this solved with you.

Regards,
Ralph Waldenmaier
Telerik
OpenAccess ORM Q3 2013 simplifies your model operations even further providing you with greater flexibility. Check out the list of new features shipped with our latest release!
Tags
Databases and Data Types
Asked by
Tracy
Top achievements
Rank 1
Answers by
Ralph Waldenmaier
Telerik team
Share this question
or