Hi,
I am trying to get the PortalId from the PortalSettings object. I am calling the GetCurrentPortalSettings() to get the PortalSettings object from which I am getting the PortalId.
The problem is in some of our client's sites (only some), the GetCurrentPortalSettings() object is null. It is working in my local development site and in our QA sites but returns null in some our client's sites.
Any idea why? Thanks in advance.
WebForms module
If you look in the Portals database table, do all of the portals have valid ids?
Posted By Mohan on 14 May 2020 05:52 PM If you look in the Portals database table, do all of the portals have valid ids? Yes. The client in question has only one portal and it has the id 0 in the Portals table.
And I guess they are all the same DNN version?
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.