Hi everyone,

I’m working on a custom web service and tried integrating Npgsql. After encountering a "no namespace found" error, I took the following steps:

  1. Added the Npgsql.dll file to the Tearsoft.web/bin directory.
  2. Modified the web.config file with the following binding redirect:

    xml
     

  3. <dependentAssembly>
        <assemblyIdentity name="Npgsql" publicKeyToken="5d8b90d52f46fda7" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-8.0.5.0" newVersion="8.0.5.0" />
    </dependentAssembly>
  4. Restarted the IIS server.
  5. Flushed Redis via the Clio CLI.

After these steps, I'm now facing the following error: Could not load file or assembly 'System.Data.Common, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. (Screenshot attached for reference)

I've already checked assembly binding logging, but I’m unsure how to resolve this error. Any suggestions or help would be appreciated!
 

Additional Context:

  • Working with PostgreSQL using Npgsql in the custom web service.
  • I made changes to the web.config file after adding the Npgsql DLL.


    this is the current state for my local instance .
     

Thanks in advance!

Like 0

Like

1 comments

Hi,

This issue requires a deeper analysis, and we advise you to create a case for Creatio support.

Thank you!

Show all comments

Hi Creatio academy,

We have a Creatio Instance which is running in the Cloud with version: 8.0.8.4807_SalesEnterprise_Marketing_CustomerCenter_Softkey_PostgreSQL_ENU.

 

We have developed a custom package (with the 'Compile into a separate assembly' checkbox true). 

 

As a result we can not access the Newtonsoft.Json package from UserTask.

 

The normal solution is to import the dll in our custom pacakge as a reference assembly.

Question: Wich is the correct version of the dll to import ?

 

I have the binary files of '8.0.8.4807_SalesEnterprise_Marketing_CustomerCenter_Softkey_PostgreSQL_ENU' and in the root/bin folder i can see the NewtonSoft.Json dll. Is this the correct one to import ?

 

Like 0

Like

4 comments
Best reply

Hi Sasori,

 

Yes, you can use the existing lib and upload it to your assembly package. This should do the same as the lib from the main workspace.

Hi Team,

Any update regarding this question ?

Hi Sasori,

 

Yes, you can use the existing lib and upload it to your assembly package. This should do the same as the lib from the main workspace.

Thanks for the confirmation Oleg!

Hi all, 
I would like to use an external library called csvHelper in a SourceCode file. 
 

I managed to download the .dll file of that library but I want to import that to my package. Can you please help me with that ?

Show all comments

Hello community,

I want to upload a .dll as a reference assembly from Creatio Configuration section .

The Creatio instance is hosted on Cloud.

The .dll is  .NET Standard 2.0 compatible.

Question : Is it ok to upload this dll which supports .NET Standard 2.0 and has no dependecies ?

 

Like 1

Like

2 comments

Hi!

 

This is a good idea to use Configuration for such a purpose and it's actually described in Academia: https://academy.creatio.com/docs/7-18/developer/development_tools/creat…;

 

The external libraries support .NET Standard 2.0 so you can load them into the Creatio package in the Configuration section using the Add -> Import button.

 

The dependencies, however, must rely on the development structure, e. g. - If the current package must inherit Creatio functionality. Here is more info: https://academy.creatio.com/docs/7-17/developer/development_tools/packa…

Thanks for the reply Alla ! I appreciate it.

When talking about dependencies, I meant the dependencies of the dll i am trying to import (not those of the Creatio package). It has no dependecies, so just uploading the dll should do the work.

Thank you,

Sasori

Show all comments

Hi there! 

I'm looking an example and a step by step to call an own DLL from an element of BPM, probably "Task Script".

I tried to use something similar to what is proposed in the article: https://community.bpmonline.com/questions/integration-bpmonline-other-a…

but it did not work

Regards.

 

Like 0

Like

1 comments

Resolved!

Show all comments

By including an External Assemblies,

I noticed that there is a conflict with the BpmonlineCloudIntegration package.

The RestSharp.dll DLL is in version 104. But I need version 105.2.3.

How to force the most up-to-date dll usage?

Like 0

Like

1 comments

Dear Rodrigo,

Unfortunately, there is no way to force the dll update from your side. This information will be passed on to the developers, so to implement up-to-date dll usage.

Regards,

Anastasia

Show all comments