Skip to main content
Nintex Community Menu Bar
Question

Custom Service Broker with a lot of DLL files

  • Sep 5, 2024 12:56 PM UTC
  • 6 replies
  • 308 views
  • Translate All

Forum|alt.badge.img+8

Hi everyone, I need some independent advice.

A developer was given the task to write a custom service broker for K2 Five. I received a set of DLL files, one main DLL and dozens of other DLLs that are related to the frameworks used. If I were to deploy this to K2 Five, it means copying all those DLLs to "C:\Program Files\K2\ServiceBroker". This creates quite a mess of files there, in that directory, where it's not easy to know what's there "by default" by installing K2 and what's added there because of some custom broker. Isn't there some way to avoid this, e.g. having the main custom broker DLL and other related DLLs in some subdirectory?

Thanks in advance for the opinions.

 

6 replies

Forum|alt.badge.img
  • Nintex Employee
  • Sep 10, 2024 6:51 PM UTC

You can create a folder inside the service broker folder where you can keep all your custom files.

Translate

Forum|alt.badge.img+8
  • Author
  • Nintex Partner
  • Sep 10, 2024 8:39 PM UTC

You can create a folder inside the service broker folder where you can keep all your custom files.

Could you please be a little more specific? An example?

Translate

MillaZ
Nintex Employee
Forum|alt.badge.img+23
  • Nintex Employee
  • Sep 16, 2024 9:06 AM UTC

Hi @Nintex_yousef  would you kindly provide an example? 

Translate

Forum|alt.badge.img+8
  • Author
  • Nintex Partner
  • Sep 17, 2024 2:32 PM UTC

We had to deploy the solution as we have, our attempts with DLLs in subdirectories failed, I had to upload all DLLs to the "ServiceBroker" directory. 
If there is anyone who would be willing to share experiences and details, ideally real ones, not some theories on how to solve this, I would be very happy.

Translate

Forum|alt.badge.img
  • Nintex Employee
  • Sep 21, 2024 8:07 AM UTC

 

Just make sure the folder you create has full control rights given to the K2 service account. This is always the way I place custom assemblies in my K2 projects and never faced issues. Take a look at the image above.

Translate

Forum|alt.badge.img+4
  • Rookie
  • Nov 22, 2024 4:05 PM UTC

Hi ​@PavelS ,

One thing that we do at our end is to combine all dll code into one. If you still have source code try to go through it and combine them in once compiled DLL. If those library are just for reference you can place them in folder of your reference in VS and make them embed. this will make the reference DLL compiled inside the main DLL. You can user the below link as your reference. 
 
c# - Embedding DLLs in a compiled executable - Stack Overflow

 

Hope this will help with the question you have.

Translate