Base solution for your next web application

Activities of "johntui"

Product Version ABP 9.1 MVC .Net CORE IIS 10.5

Hi, My application behaves differently when deployed to Azure VM machine. When deployed to physical office machine, URL tenant definition works fine. When deployed to the Azure VM, URL tenant always logins in to the host.

Using WebSiteRootAddress https://{TENANCY_NAME}.xx.xx.xx

Has anyone come across this issue before.

thanks John.Tui.

Line of code from TenantManager.cs

                CheckErrors(await _userManager.CreateAsync(adminUser));
                await _unitOfWorkManager.Current.SaveChangesAsync(); //To get admin user's id

Error from auditlog: "System.InvalidOperationException: Sequence contains no matching element at System.Linq.Enumerable.Single[TSource](IEnumerable1 source, Func2 predicate) at Abp.EntityHistory.EntityHistoryHelper.GetEntitySet(ObjectContext context, EntityType entityType) at Abp.EntityHistory.EntityHistoryHelper.CreateEntityChangeSet(DbContext context) at Abp.Zero.EntityFramework.AbpZeroCommonDbContext2.<SaveChangesAsync>d__104.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.EntityFramework.Uow.EfUnitOfWork.<SaveChangesInDbContextAsync>d__19.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Abp.EntityFramework.Uow.EfUnitOfWork.<SaveChangesAsync>d__12.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at ProdMate.Portal.MultiTenancy.TenantManager.<CreateWithAdminUserAsync>d__9.MoveNext() in C:\Users\johntui\Source\Repos\ProdMate.Portal\ProdMate.Portal.Core\MultiTenancy\TenantManager.cs:line 113 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult() at ProdMat..."

I've only got the Default Tenant in place. Just doing an out of the box Create Tenant from the interface.

Any help much appreciated.

Cheers

Showing 1 to 2 of 2 entries