Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "johntui"

RAD Tool is unable to generate the migration scripts. Keep getting this error which looks like unable to find an executable. But I can run add-migration script from package manager console without any errors:

Running add-migration... Possible reasons for this include:

  • You misspelled a built-in dotnet command.
  • You intended to execute a .NET program, but dotnet-ef does not exist.
  • You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.

Any ideas

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 3 of 3 entries