Base solution for your next web application

Activities of "abarref"

Question

Hi, How can I tell which version of Bootstrap 4 this template uses? I'm using the Asp.Net Core + Angular template, v6.6.1. Thanks

The default implementation of ILogger is Abp.Castle.Logging.Log4Net.Log4NetLogger.

I need to extend its functionality so when logging an exception it also sends an email.

What would be the best approach for this?

The Log4NetLogger class has no virtual methods. Should I copy the entire class and customize it as desired?

Thanks

Thanks. Indeed that seems like the easiest approach.

Tried the SmtpAppender and couldn't make it work. Enabled internal logging of log4net and found that the SmtpAppender is not available in .Net Core. The same issue as described here: smtpappender-missing-in-log4net-2-0-8-nuget

I'll go with custom Log4NetLogger approach another day with some more time.

Hi,

I have some custom settings in the appsettings.json file. I would like to use some of those settings in the client-side to enable/disable some things.

Is there a way to add custom values to the 'AbpUserConfiguration/GetAll' response?

Thanks

Nice! I didn't know how to define the Custom Config Provider. I defined it like this in the CoreModule.PreInitialize method:

Configuration.CustomConfigProviders.Add(new AppCustomConfigProvider(IocManager.IocContainer.Resolve<CustomSettings>()));

Then it gets merged into the abp object in AppPreBootstrap.ts, so the last step was to define my custom settings in typings.d.ts:

declare namespace abp {
    namespace ui {
        function setBusy(elm?: any, text?: any, optionsOrPromise?: any): void;
    }
    namespace custom {
        namespace customSettings {
            interface ISomeCustomInterface {
                customProperty: boolean;
            }

            let someCustomSettings: ISomeCustomInterface;
        }
    }
}

Thanks for your guidance :)

Hi,

I'm using the asp.net core and angular 7 template, and I'm wondering if the authentication system uses refresh tokens. I just saw that in AppConsts.cs there is AccessTokenExpiration and also RefreshTokenExpiration. Does changing RefreshTokenExpiration has any effects?

Thanks

Thanks for the clarification aaron.

Has somebody tried using InProcess hosting model? It's supposed to be faster than OutOfProcess: ASPNET-Core-Hosting-on-IIS-with-ASPNET-Core-22

The problem is that when enabling in it the following happens:

Hi @jguldemod,

Thanks for offering your help :)

The other day I followed the suggestion made in a comment in the following thread: AspNetCoreModuleV2 and hostingModel="InProcess" in IIS sub application failing to start

The most common issue people have been running into is the CurrentDirectory() being set to C:\Windows\System32\inetsrv rather than the app directory. Our current recommendation is to use https://github.com/aspnet/Docs/blob/master/aspnetcore/host-and-deploy/aspnet-core-module/samples_snapshot/2.x/CurrentDirectoryHelpers.cs to work around this until a future patch release.

Is the same recomendation made by "neuhausf" in that other thread that aaron provided.

Your fix is the same or is something else?

Showing 1 to 10 of 26 entries