Base solution for your next web application
Open Closed

Cannot create tenant in Azure App Service #2027


User avatar
0
hozkar created

I am trying to create a tenant after deploying my ASP.NET Zero application to an Azure App Service instance. When I try to create it I get a backend error as shown in the image:

I deployed two app service instances and in the first one I managed to create a tenant after several attempts and errors, but in the second instance (staging) I have not been able to create it.

In my development environment (Visual Studio 2015) tenants are created with no issues.

Thanks in advance.


6 Answer(s)
  • User Avatar
    0
    jonas452 created

    your image link is down.

    Haven't posted my app to azure(i'm going to) but since tenant creation is fully managed by your app code it shouldn't fail. Does every new tenant gets it's own database? if so i would assume your problem lies with creating new databases.

  • User Avatar
    0
    hozkar created

    Good day,

    Thanks for your answer, I'm including the image again (also from Azure). My tenants are not creating different database, they all share the same.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Image link is still broken. You can upload image when sending post instead of putting an image url.

  • User Avatar
    0
    hozkar created

    Uploading image

  • User Avatar
    0
    hozkar created

    I finally managed to find the issue and it was something on my side. During the creation of each tenant I am seeding some data synchronously and that process is taking too long. Maybe some configuration in the Azure side is cutting the connection to the database for those long processes.

    I commented out that part and the tenant was created instantly. Thanks for your help!

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Thanks for sharing your solution. It's nice that you solved your problem. At least for now.