TransWikia.com

Configuration values for event system

Tridion Asked by Guest123 on September 30, 2021

I am working on event system code (sdl web 8.5) and need to place a config component path in configuration file(similar to app.config).

I followed the post https://www.curlette.com/?p=1403 but still the value isn’t picked from the config file even though its name is same as that of dll with just .config added at the end. Any other suggestions to achieve this other than adding the config key in tcmservicehost.config file.

Thanks!

One Answer

Like Chris mentioned in the comments, please provide more information so people would be able to help you. But, here are some pointers that may help you identify and solve the problem:

  • Are you using Curlette's ConfigurationManagerEventSystem class in your custom event handler to open the configuration XML and return the Configuration object instance? Your solution tree and the app settings value you are trying to get from the config in your event handler should look similar to the one in the screenshot below.

enter image description here

  • The config and the event handler DLL should be in the same location and the full path with the name of the DLL should be included in the <extensions> element in the Tridion.ContentManager.config.

enter image description here

  • The SDL Web Content Manager Service Host service and IIS should be restarted.

If you have done the above steps, you should be able to read the values from the config. Hope this helps.

Answered by Sabarish Senthilnathan on September 30, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP