Thank you for the replies.
The code is being called in the repository, which is being called by controller. All of the document retrieval methods currently do not have OnCurrentSite() or OnSite().
The admin portals are running on the following:
- websiteadmin.azurewebsites.net
- websiteadmin-dev.azurewebsites.net
- websiteadmin-uat.azurewebsites.net
And the mvc sites are running as follows:
- websitemvc.azurewebsites.net
- websitemvc-dev.azurewebsites.net
- websitemvc-uat.azurewebsites.net
So, lets say I am using websiteadmin.azurewebsites.net and websitemvc.azurewebsites.net.
The current domain name is: websiteadmin.azurewebsites.net
and
the presentation URL is: websitemvc.azurewebsites.net
I checked the presentation URL and it matches the URL I am trying to access.
I did try changing domain and presentation url to match but I still get the same error.