0

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!

  • 2
    Please provide more information so that we can help. Include the config file and show full path filenames for the dll and config. Check that your config file is valid xml. – Chris Mills Jul 10 '20 at 5:29
2

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.