My site runs fine locally, however once deployed to azure, I get the error "Website channel with ID 0 does not exist" at points where I am trying to get the webSiteChannelContext. The site loads fine in the CMS, I can edit the pages without problem. However, on the live site I get an error page due to the above issue with the site context.
What could cause this?
Environment
Xperience by Kentico version: [30.3.1]
.NET version: [8]
Execution environment: [azure)]
Link to relevant Xperience by Kentico documentation