dotConnect for Salesforce on .NET Core throws exception related to AppDomain

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Cloud Applications
Post Reply
mcartoixa
Posts: 4
Joined: Thu 23 Aug 2018 16:01

dotConnect for Salesforce on .NET Core throws exception related to AppDomain

Post by mcartoixa » Thu 23 Aug 2018 16:12

Hi, I'm trying dotConnect for Salesforce in an ASP.NET Core 2.1 application, with Entity Framework Core 2.1. I think I've managed to get around the licensing part and i have manually added missing dependencies (like System.Drawing). But when I try to open a connection I get the following exception, which does not seem very Core friendly...

Code: Select all

System.MissingMethodException: Method not found: 'System.AppDomainSetup System.AppDomain.get_SetupInformation()'.
   at Devart.Common.CRLicenseProvider.a(LicenseContext A_0, Type A_1, String& A_2, String& A_3, String& A_4)
   at Devart.Common.CRLicenseProvider.a(LicenseContext A_0, Type A_1, String& A_2, Boolean& A_3, String& A_4, String& A_5)
   at Devart.Common.CRLicenseProvider.a(LicenseContext A_0, Type A_1, Boolean A_2)
   at Devart.Common.CRLicenseProvider.a(LicenseContext A_0, Type A_1, Object A_2, Boolean A_3)
   at Devart.Data.Salesforce.SalesforceConnection.Open()
   at System.Data.Common.DbConnection.OpenAsync(CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenDbConnectionAsync(Boolean errorsExpected, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenAsync(CancellationToken cancellationToken, Boolean errorsExpected)
Any ideas?

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: dotConnect for Salesforce on .NET Core throws exception related to AppDomain

Post by Shalex » Fri 24 Aug 2018 09:46

dotConnect for Salesforce 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:
* 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/

With dotConnect for Salesforce, you can work with EF Core 2.1 in the .NET Framework projects only.

mcartoixa
Posts: 4
Joined: Thu 23 Aug 2018 16:01

Re: dotConnect for Salesforce on .NET Core throws exception related to AppDomain

Post by mcartoixa » Mon 27 Aug 2018 12:44

Thank you for your answer. I had understood otherwise from the documentsI had read. I will try the capabilities of your software on .NET (full) then.

FYI so far I see 2 major problems: lack of support for .NET Core, and the fact that all operations are synchronous (even when advertised as async).

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: dotConnect for Salesforce on .NET Core throws exception related to AppDomain

Post by Shalex » Thu 30 Aug 2018 13:49

mcartoixa wrote: Mon 27 Aug 2018 12:44FYI so far I see 2 major problems: lack of support for .NET Core, and the fact that all operations are synchronous (even when advertised as async).
Thank you for your feedback. We will notify you about the progress.

Post Reply