Skip to Main Content

ODP.NET

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!

ODP.NET Core beta 1does not work in .NET Core WebApi project

b0a23a0e-ca48-4c40-bdc9-98b686747bd1Feb 25 2018 — edited Apr 18 2018

Hi All,

I struggle making the latest ODP.NET Core beta 1 release working in a .NET Core 2, WebApi new project.  It all works well following the example on YouTube in a Console app but if I include a ref to the dll in a new .NET Core2 WebApi project I get the following error:

  1. System.IO.FileNotFoundException: 'Could not load file or assembly 'Oracle.ManagedDataAccess, Version=2.0.12.0, Culture=neutral, PublicKeyToken=89b483f429c47342'. The system cannot find the file specified

Also, the same issue occurs when I include the library in a .NET Standard 2 project – (this is really where I need it!!)

Any suggestions?

NOTE:

After creating many test projects it "all of a sudden worked" using a .NET Core 2 WebApi startup project which has a reference to a .NET Standard 2 project in which I reference the ODP.Net beta 1 dll.  "Fantastic !!" I thought and then added a NuGet package (signalR) that I need and BANG!, the same error occurred again.

I removed the NuGet signalR but still the above error comes up - even when I recreate the Core 2 WebApi and a brand new Standard 2 project ...   it simply doesn't work anymore - totally - full stop (only as a Console app).

This post has been answered by Alex Keh-Oracle on Apr 17 2018
Jump to Answer

Comments

Mike Kutz

Window print() Method

This will only allow you to print the HTML code in that window.

Beyond that, if you want the server to send something to a printer, you have to use a print server.

MK

1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 16 2018
Added on Feb 25 2018
11 comments
2,169 views