Skip to main content
Nintex Community Menu Bar
Question

Custom Service Broker with a lot of DLL files

  • September 5, 2024
  • 6 replies
  • 128 views

Forum|alt.badge.img+7

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.

 

Translate
Did this topic help you find an answer to your question?

6 replies

Forum|alt.badge.img
  • Nintex Employee
  • 3 replies
  • September 10, 2024

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

Translate

Forum|alt.badge.img+7
  • Author
  • Scholar
  • 58 replies
  • September 10, 2024
Nintex_yousef wrote:

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+21
  • Nintex Employee
  • 661 replies
  • September 16, 2024

Hi @Nintex_yousef  would you kindly provide an example? 

Translate

Forum|alt.badge.img+7
  • Author
  • Scholar
  • 58 replies
  • September 17, 2024

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
  • 3 replies
  • September 21, 2024

 

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
  • 32 replies
  • November 22, 2024

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

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings