Base solution for your next web application
Open Closed

Create Tenant Fails #3177


User avatar
0
mahendra created

Hi,

I am new to ABP. I just created a project using MVC and Entity Framework. Once the project downloaded from ABP Website, I changed the Web.Config file for the connection string and ran the update-database command in package manager console. The database got created successfully.

Now when I tried to create a tenant and provided the connection string, after hitting the submit button, it throws internal error. When I debug the code, I found that in the TenantAppService class , in the CreateTenant method, it throws the error at _abpZeroDbMigrator.CreateOrMigrateForTenant(tenant); line of code.

Can anyone please help me.

Regards, Mahendra


2 Answer(s)
  • User Avatar
    0
    mahendra created

    Anyone has any hint. What I might be doing wrong. To provide more information, I am using Visual Studio 2015 and SQL Server 2014 and my server is localhost.

    Regards, Mahendra

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @Mahendra,

    There must be detailed error messages on Logs.txt file under your web project. Probably you need to enable MSDTC service on your machine, you can search on the internet for how to do it. You just need to start the windows service displayed as "Distributed Transaction Coordinator".

    By the way, are you a customer of AspNet Zero, if so, please send us your username from purchased email address and we will add you to premium forum so you can ask there and get faster answers.

    Thanks.