Base solution for your next web application
Open Closed

Error creating new tenant with ConnectionString #2399


User avatar
0
antoniovaccher created

Hello,

I get an internal error in creating new tenant with a specific ConnectionString after migrating from Abp 1.2.0 to 1.3.1. The error happens after successful creation of the database specified in the ConnectionString in Method CreateTenant of class TenantAppService at the statement CheckErrors(await _roleManager.CreateStaticRoles(tenant.Id));

//We are working entities of new tenant, so changing tenant filter
            using (CurrentUnitOfWork.SetTenantId(tenant.Id))
            {
                //Create static roles for new tenant
                CheckErrors(await _roleManager.CreateStaticRoles(tenant.Id));

The same problem occurs in the downloaded sample application with the release 1.3.1 of abp with options Multi Page Web Application - Web application with server rendered HTML; ASP.NET MVC & jQuery. module Zero included.

Any help would be appreciated. Many Thanks in advance


2 Answer(s)
  • User Avatar
    0
    antoniovaccher created

    Hello,

    the issue was already mentioned in <a class="postlink" href="https://github.com/aspnetboilerplate/aspnetboilerplate/issues/1141">https://github.com/aspnetboilerplate/as ... ssues/1141</a> along with its solution. Starting the service Distributed Transaction Coordinator solved the problem.

    Sorry, anyway hope this helps.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks :)