Page 1 of 1

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

Posted: Thu 23 Aug 2018 16:12
by mcartoixa
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?

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

Posted: Fri 24 Aug 2018 09:46
by Shalex
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.

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

Posted: Mon 27 Aug 2018 12:44
by mcartoixa
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).

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

Posted: Thu 30 Aug 2018 13:49
by Shalex
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.