Base solution for your next web application

Activities of "johntui"

that went one step further. Now getting a build error after "Running add-migration...Build started and Running migrator...: Build failed. Use dotnet build to see the errors

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

Looks like I've got all those in place already and am still getting the error. Will keep looking for solution.

Thanks for you help @Jaycee26.

Hi, I know this is an old thread but I'm having this exact same problem. @ismcagdas - the link you posted returns a page not found. @jaycee26 Could you share what was the solution please?

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.

Thanks maliming , those links solved the problem. Cheers JT

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