Base solution for your next web application

Activities of "th3monk3y"

So I thought I'd upgrade to angular 4 since they tout it as being a piece of cake. Well it's anything but that! :)

I'm on the final stretch but keep encountering the following error.

Uncaught (in promise): Error: Cannot activate an already activated outlet\nError: Cannot activate an already activated outlet\n

I have added the following import as suggested on the Angular 4 doc. import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

I have also updated to the latest abp-ng2-module 1.0.0

I know you guys ported the code to angular 4 so I am hoping you can help me out.

thanks in advance

Hi there, I've been trying to implement impersonation with the ng2 / core application. I've managed to port the mvc code mostly to the token auth based AuthToken controller. I have it working for the most part, but when impersonating from Host the ImpersonatorUserId is not populated in the front end. When impersonating from Default tenant, it is populated.

OWIN HttpContext.GetOwinContext().Authentication is no longer supported in Core. So I've had to drop the SignIn and SignOut methods (I am using the _authService.logout(false) and waiting for token, then using login service). I am wondering if this is the problem I am facing? Basically AbpSession is not working as expected on the backend. I realize AbpSession is cookie based, but tenantId is always populated so I am a bit confused. UserId and ImpersonatorUserId are never available in abpSession(backend) so I have to pass them in through the nswag service-proxies.

The bad behavior I am experiencing is that "<-- Back to my Account" is never available on front end from host when checking for ImpersonatorUserId . Works for Default tenant.

It's a bit difficult to articulate my problem. Hope you understand what I am asking.

Any suggestions?

First off, I would like to commend you on a job well done putting together the .NET Core / Angular2 project. You guys did an amazing job of keeping the architecture as close as possible to it's predecessor. The separation of concerns, the .html template files, TypeScript etc. The code is clean as expected!

I'm in the process of migrating my MVC project over to Core and it's going fantastic. Copying and pasting entire classes that just work! I did however come across one hiccup. The OnModelCreating method modelBuilder.ChangeAbpTablePrefix<Tenant, Role, User>(""); is not working. No big deal, moving on.

Is there any chance you can create a new forum that is .NET Core / Angular2 specific? I think it would help development moving forward. Breaking out the two would help tremendously and alleviate any confusion between the two architectures.

Thanks again for this amazing software and contribution to the community!

Not sure what I'm missing here, but I can't seem to find the navigation property for the User Email Address for a tenant. Also need to be able to update it. The TenantForEditInput only contains the tenant id.

Thanks

public async Task<TenantForEditDto> GetTenantForEdit(TenantForEditInput input)
        {
            var tenant = await _tenantManager.GetByIdAsync(input.id);

            TenantForEditDto tenantDto = new TenantForEditDto() { Tenant = tenant.MapTo<TenantDto>() };

            tenantDto.Tenant.AdminEmailAddress = //?? help

            return tenantDto;
        }
Showing 1 to 4 of 4 entries