Skip to Main Content

Oracle Developer Tools for Visual Studio

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Entity Framework 4 in Visual Studio 2019

Mike TessierApr 14 2020 — edited Apr 17 2020

Hello.  I just installed Visual Studio 2019 and ODT 19.3.  I have an old .NET 4 application which uses Entity Framework.  I installed ODP.NET 4 from ODAC 12.2 32-bit (XCopy) with machine-wide configuration.  I get an "Object reference not set to an instance of an object" error when the code hits its first Linq query.

My app used to work in Visual Studio 2017 with ODT with ODAC 12.2 32-bit installed.

Note: my system is 64-bit, but from what I understand Entity Framework designer with Oracle only works with the 32-bit DLLs.

I tried reinstalling Visual Studio 2017 without ODT (since you can't install more than one version of ODT).  Got the same error.

This tells me that Entity Framework 4 doesn't work in ODT 19.3.

Unfortunately I need to continue supporting this old app.  Is there anything I can do to make this old app work?

Thanks in advance,

Mike

Comments
Post Details
Added on Apr 14 2020
3 comments
1,127 views