question

ThomasWierman-5514 avatar image
0 Votes"
ThomasWierman-5514 asked NavtejSaini-MSFT commented

Xamarin App to Azure SQL Database Try/Catch Error

I am trying to get a sample Xamarin mobile application (ZUMOAPPNAME) to connect to the Adventure database. Currently, I can connect to this database on Azure from SSMS on my computer. Also when setting up the Publish the BackEnd, the connection string tests OK. The first step in the sample app is to GetTodoItemsAsync (ToDoItem table added to the Adventure database). The query fails in the Try/Catch surround. The exception comes up with:

82469-image.png

How can I get the real error message. I already modified Web.Debug.Config to revise the customErrors tag. When I publish ZUMOAPPNAMEService, Visual Studio says that the publish succeeded, but the error web page shos up.

dotnet-xamarinformsazure-sql-database
image.png (37.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LeonLu-MSFT avatar image
0 Votes"
LeonLu-MSFT answered NavtejSaini-MSFT commented

First, please refer to this thread step by step to check the settings in the Azure, Then use this article to Create an Azure Back-End for a Xamarin.Forms Application


· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@ThomasWierman-5514 Were you able to check the above document or you need further help.

0 Votes 0 ·

Thanks. I got it working.

0 Votes 0 ·

@ThomasWierman-5514 Thanks for the confirmation.

0 Votes 0 ·