I am implementing a language switch in a .NET DD4T 2 website. In order to get the base URL for a website I am using the DynamicMappingsRetriever.GetPublicationUrls(pubId) method. But the implementation of this method invokes itself, at least in Tridion.ContentDelivery, Version=, leading to a StackOverflowException. This seems like a bug/untested Tridion code to me.

Anyone would know how to get the base URL of a website using the websites publication ID?

  • 1
    I don't have an 8.1 environment to test in. FWIW, this works in 8.5 (just tried a simple foreach loop on dmr.GetPublicationUrls(5) ) – Nuno Linhares Jun 6 '17 at 19:17
  • can you please add logs for this error ? – vinayknl Jun 7 '17 at 9:26
  • Thanks Nuno, upgrading to 8.5 indeed solved the issue, now I do get a list of base URLs as a result. – Para Jaco Jun 7 '17 at 17:06

Your Answer

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

Browse other questions tagged or ask your own question.