Page 1 of 1

ASP:Net Core 2 Error creating DB2Connection

Posted: Wed 22 Aug 2018 08:54
by peterlapalus
Hi Im running a ASP.Net Core 2 project and get this error when creating a DB2Connection.

System.IO.FileNotFoundException: 'Could not load file or assembly 'System.Diagnostics.PerformanceCounter, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.'

Please advice.

Re: ASP:Net Core 2 Error creating DB2Connection

Posted: Thu 23 Aug 2018 10:28
by Shalex
dotConnect for DB2 doesn't include .NET Core (and ASP.NET Core) assemblies. There is no any timeframe for this feature at the moment. We will notify you about the progress.

The .NET Core support is currently available in the following dotConnect providers only:
* dotConnect for Oracle -> https://www.devart.com/dotconnect/oracle/
* dotConnect for MySQL -> https://www.devart.com/dotconnect/mysql/
* dotConnect for PostgreSQL -> https://www.devart.com/dotconnect/postgresql/
* dotConnect for SQLite -> https://www.devart.com/dotconnect/sqlite/

Re: ASP:Net Core 2 Error creating DB2Connection

Posted: Wed 10 Oct 2018 10:14
by likemike91
I have the same error but I'm targeting Oracle and use the latest version of dotConnect for Oracle (9.6.597).
We host the API inside a Linux Docker container.
Could that be an issue?

Re: ASP:Net Core 2 Error creating DB2Connection

Posted: Wed 10 Oct 2018 10:44
by likemike91
Okay I figured it out already.
I referenced the wrong versions of DevArt.Data and DevArt.Data.Oracle because I used the ones which come with the setup of DevArt dotconnect for Oracle.
But I had to use the ones coming via the NuGet package.