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!
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:
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.<extensions>
element in the Tridion.ContentManager.config
.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
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP