Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a .NET Framework Class Library (DLL) which is using Oracle to connect to DB and I am referring this DLL in .NET Core Application which is using Oracle.ManagedDataAccess.Core NuGet Package for connecting to DB. When I call the DLL Method from Core Application I always receive an Error "BadImageFormatException Oracle.DataAccess.Client"

What I have tried:

I have tried referring the Oracle DLL used in Framework Application in COre Application also.
Posted
Comments
[no name] 14-Aug-20 13:37pm    
https://stackoverflow.com/questions/39959481/net-framework-and-net-core-in-same-solution
Sandeep Mewara 14-Aug-20 13:54pm    
Can you sahre the error stack trace just in case. It should have more info around it that can make sense.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900