Base solution for your next web application

Activities of "PhilWynn"

Hi,

I am attempting to use Azure Functions to run reports out of process.

After much time spent, I have given up on achieving this using the Application layer, as there is a know issue with Azure Functions that requires a hard coded dependency on v9.0.1 of Newtonsoft.Json (Abp requires >= v11.0.2). I have found no way to resolve the resulting conflict.

So, I have set up my function to access the database directly, and all is working so far.

The problem I am having is with authorization. When calling the Azure Function from the Aspnet Zero web app, the Auth Cookie is sent across. However, I do not know how to decrypt this to access the session information.

Any advice here would be much appreciated.

If there is anybody out there who has got Azure Functions to work against the Abp framework, again any advice would be much appreciated.

Many thanks.

Hi,

I have recently upgraded from ABP v2.1 to the current version. I am finding that my error log is filled with the following error message. Please could you advise.

ERROR 2018-05-03 11:47:28,105 [15 ] ime.Caching.Memory.AbpMemoryCacheManager - System.ArgumentOutOfRangeException: The relative expiration value must be positive. Parameter name: AbsoluteExpirationRelativeToNow Actual value was 00:00:00. at Microsoft.Extensions.Caching.Memory.CacheEntry.set_AbsoluteExpirationRelativeToNow(Nullable1 value) at Microsoft.Extensions.Caching.Memory.CacheExtensions.Set[TItem](IMemoryCache cache, Object key, TItem value, TimeSpan absoluteExpirationRelativeToNow) at Abp.Runtime.Caching.Memory.AbpMemoryCache.Set(String key, Object value, Nullable1 slidingExpireTime, Nullable1 absoluteExpireTime) at Abp.Runtime.Caching.CacheBase.Get(String key, Func2 factory) System.ArgumentOutOfRangeException: The relative expiration value must be positive. Parameter name: AbsoluteExpirationRelativeToNow Actual value was 00:00:00. at Microsoft.Extensions.Caching.Memory.CacheEntry.set_AbsoluteExpirationRelativeToNow(Nullable1 value) at Microsoft.Extensions.Caching.Memory.CacheExtensions.Set[TItem](IMemoryCache cache, Object key, TItem value, TimeSpan absoluteExpirationRelativeToNow) at Abp.Runtime.Caching.Memory.AbpMemoryCache.Set(String key, Object value, Nullable1 slidingExpireTime, Nullable1 absoluteExpireTime) at Abp.Runtime.Caching.CacheBase.Get(String key, Func2 factory)

Many thanks

Hi,

We have a requirement to create new tenancies with a user provided admin name, rather than the default admin name specified in AbpUserBase.AdminUserName.

Are there any implications I should be aware of if I allow this to happen in our system?

Regards, Phil

Question

Hi,

I have a requirement to show a menu item depending on whether a Tanant Setting is present. Is there a way to achieve this?

Regards Phil

Hi,

I would like to hide the "maximum password length" setting and change the default setting on this to 0 (no maximum).

Currently the default value is 10. How can I change this so that the host and any created tenant has a default value of 0?

Cheers, Phil

Hi,

I am attempting to specify a menu item with a "_blank" target:

).AddItem(new MenuItemDefinition(
                        PageNames.App.Tenant.Notes,
                        L("Payslips"),
                        url: "https://ippex-admin.epayslipsecure.co.uk/",
                        icon: "fa fa-money",
                        target:"_blank",
                        requiredPermissionName: AppPermissions.Pages_Tenant_Payrolls
                    )

I am finding, however, that the target instruction is not being carried forward onto the generated link.

I am using v4.0 MVC/JQuery

Question

Hi,

I am attempting to implement optimistic locking in order to handle concurrency issues.

I have added the following field to my entities:

[Timestamp]
public byte[] RowVersion { get; set; }

According to the EF documentation, this is all that is required, as long as the initial row version value is supplied with the update. However, I cannot seem to get this to work in ASPNet Zero.

Should I be implementing a custom repository to perform the updates? And if so, how do I prevent the update that is automatically called by the Unit Of Work manager?

Thank you

Question

Hi,

I am currently on v4.0 of ASPNET Zero using MVC jQuery. Having experienced some performance issues I have discovered that the bundles generated by the system are not being cached on the client. All bundle headers (along with other static content) seem to be setting Cache-Control to "no-cache".

I have spent some time trying to determine why this is the case, but have not been able to find the cause.

When I create and run a Demo from your site (I assume this is running v4.2 with Angular) I see that bundles are caching as expected.

Please advise. Regards

Hi,

I need to add a custom claim on login. All example code I have seen assumes that we extend AccountController.SignInAsync in order to do this. However, the current version now uses SignInManager.SignInOrTwoFactor.

Could you please tell me how I can now insert a custom claim on login.

Thank you.

Hi,

I have a requirement to apply user settings to the admin user created in TenantManager.CreateWithAdminUserAsync.

I am finding, however, that calls to SettingManager.ChangeSettingForUserAsync are not applying the settings (no error received from the call).

I have tried applying the settings in a new UOW, but still no good.

Please advise.

Showing 21 to 30 of 36 entries