Problem Description
I'm trying to integrate an external .NET library (Npgsql) into my custom Creatio package to connect with a PostgreSQL database. However, I'm encountering version compatibility issues with System.Runtime.

 Current Setup
- Package Name: UsrWebServiceLog
- Target Library: Npgsql
- Current Error:
 

Assembly 'Npgsql' with identity 'Npgsql, Version=8.0.5.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' uses 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version than referenced assembly 'System.Runtime'

 What I've Tried
1. Adding the library reference directly to my package project
2. Attempting to use an older version of the library
3. Adding System.Runtime reference

 Questions
1. What is the correct approach to include external .NET libraries in a Creatio custom package?
2. Are there specific version requirements or limitations I should be aware of?
3. Should the library be installed at the workspace level or package level?
4. Is there a specific location where external DLLs should be placed?

 Code Context
I'm trying to implement a web service that connects to PostgreSQL:

namespace Terrasoft.Configuration.UsrPostgressConnection
{
   [ServiceContract]
   public class UsrPostgressConnection : BaseService
   {
       // Service implementation
   }
}

Any guidance on best practices for managing external .NET dependencies in Creatio would be greatly appreciated. Thank you in advance!

 Environment Details
- Creatio Version: 8.1.3
- Development Environment: On-site
- .NET Framework Version: 4.7.2

Like 1

Like

2 comments
Best reply

Kyrylo Atamanenko,

According to your suggestion, it might function if I use an older version of the Npgsql driver.

Hello!

 

Actually this issue occurs because Npgsql assembly (version 8.0.5) depends on System.Runtime version 8.0.0, which is a newer version than the System.Runtime the version currently referenced in your project.

 

.NET Framework 4.7.2 does not support System.Runtime version 8.0.0, as this version of System.Runtime is associated with .NET 8, which is part of the .NET (formerly .NET Core) family, not .NET Framework.

The highest System.Runtime version that .NET Framework 4.7.2 supports is within the 4.x series. .NET 8.0 and its libraries, including System.Runtime version 8.0.0, are compatible only with .NET Core 8 / .NET 8 or higher.

Kyrylo Atamanenko,

According to your suggestion, it might function if I use an older version of the Npgsql driver.

Show all comments

Hi Community,

 

I have successfully installed the new available version of Creatio 8.0.8.4805 on my Linux server. I'm trying to do some tests to validate the .NET 6.0 migration. However, I couldn't force the application to run with .NET 6.0.

 

It should be pretty straight forward according to the development guide (https://academy.creatio.com/docs/user/on_site_deployment/application_se…).

 

I've tried to change the "TargetFramework" of the file "Terrasoft.Configuration.Dev.csproj" and build the solution but got 8 warnings and 3469 errors.

 

Is there any other way to force this or should I wait for 8.1.0?

 

Thank you in advance.

 

Best Regards,

Pedro Pinheiro

Like 2

Like

2 comments

Also looking for some info for migrating windows hosted Creatio to .Net 6 with IIS



Fresh installation .Net 6 documentation seems clear.



1) We are missing documentation on how to migrate an existing Creatio instance to .Net 6  (vs fresh install) which has been updated at minimum to Creatio 8.0.8 and running on .net framework 4.x



2) and which bundles are compatible with .Net 6 ? ( 8.0.8 release notes seem to specify that only specific bundles are compatible with .Net 6 ---  https://academy.creatio.com/docs/release/release-notes/808-atlas-releas…)

Hi, Pedro!



To investigate this behavior, we ask you to submit a request to our team via support@creatio.com or the Success Portal. 



As for your questions, Damien Collot,

 

1)  Please look through the documentation here and let us know if you have any questions: https://academy.creatio.com/docs/user/on_site_deployment/application_se…

2) .NET 6 support. Studio Creatio as well as Sales Enterprise, Marketing, Service Enterprise bundle in Freedom UI are now available on .NET 6. 

 

We will be glad to help with any other questions.

 

Show all comments