Call to stored procedures ein SQL Srever from APPservice gives no result or errro

Victor Wallenberg (SBK) 30 Reputation points
2023-04-04T18:42:50.8066667+00:00

I have an c# code that runs fine on local maskin access local database. The first think that happens is a call to a stored procedure and the record set populates a dropdown. I have move the database to azure and also published the app to azure. The app starts in the browser bur no thing is loaded into the dropdown. If I run the same code but with a select from a table it will work fine I have run the stored procedure from my local SSMS and it works So what are I'm doing wrong?

Azure SQL Database
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
{count} votes

1 answer

Sort by: Most helpful
  1. Alberto Morillo 35,406 Reputation points MVP Volunteer Moderator
    2023-04-06T03:51:34.6066667+00:00

    Enable Diagnostic Logging for your Azure App Service. Try to enable Application Insights also. User's image

    Make sure you allow Azure Services to access the Azure SQL Database as explained here.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.