Grid empty when running in Azure

Hi. for reference, this is about a Blazor Server App, .net9.

When running on my own laptop, but using the Azure platform, my app launches and I sign in. The App then uses MS Graph to obtain a list of tenants that my user has access to. The returned values are loaded into a list which is the source of a Datagrid. The list is then displayed on a page and when I click the required tenant, the App retrieves DB connection info and away we go.

I've now published this App to Azure, specifically into a Deployment slot called Staging.

When I launch the App, all appears to work ok, except that the Datagrid, when displayed, is empty.

My code shows that the list is being loaded with the tenant info, so there is no problem with MS Graph.

Here is the screenshot. Below the grid you can see that 6 tenants are being loaded.

The 6 statements in the text box beginning "Loaded Permitted Tenant" show the name of each entry (I know some aer duplicates, that's fine and expected. The "Code" column of the grid would differentiate these, but no data is showing there either).

So although the code is the same, and the Azure vaule being accessed is the same, and the vault data is still being retrieved, the grid is not showing the data when the App is launched from within Azure, but it is when the App is launched locally.

Can you please offer any suggestion(s) as to why this may be happening?

Here is a screenshot of the page code

Cheers
Reg

Check your Azure app logs - might your database is not accessible from Azure.

Hi. No database is involved here. The rows shown in the table are sourced entirely from an Azure key vault. The code does not reach the point where any database is involved at all.

Check what calls are made to the service using your browser console network tab then. Again, check your Azure app logs.

I have discovered that if I reload the grid, then the rows do show with the required data, however doing this causes the screen to be re-rendered in a loop, and the whole app just hangs.

I don't understand why code which works when I run the app locally - remembering that it still "gets" the information needed from the exact same Azure resource - a key vault - doesn't work when the app is run from Azure itself.

I'm afraid that I don't understand your scenario and I don't have any other ideas except already suggested.

Fair enough. Over the day I have managed to make some progress, and the datagrid is now correctly showing rows of data. The user should be able to click an entry to select / process. On my local machine that works, but it's being ignored when running in Azure. I've been following ChapGPT tips - making sure Web Sockets are turned on etc - but to no avail.

I'm using the RowSelect event if that helps at all.

Why might the event not be working in Azure? Or to put it another way, how can I go about finding out why it won't fire in Azure?

I’ve never heard of such problem before and unfortunately I don’t know what can cause it.