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

Activities of "razkhan78"

We have some scenario in our app for UTC DateTime

  1. Right now when we storing the date value with AuditedEntity in the table it always stores dates with a local provider,

For that we found some details to set clock provider to UTC but for the same, we have 2 more queries:

1)When we select datepicker from the front side we need to store that Datepciker date to UTC DateTime in the table, Is there any way for that? 2)Consider that in the table we have all the DateTime in the UTC format, now the user came to our app and search via local date, then how we can search date with UTC DateTime in the table?

Hi

We are using latest asp.net core jQuery. We need to get list of organization units assigned to user along with child organizationunits.

We have tried below code as explained here https://aspnetboilerplate.com/Pages/Documents/Zero/Organization-Units

var user = await _userManager.GetUserByIdAsync((long)AbpSession.UserId);
var organizationUnits = await _userManager.GetOrganizationUnitsAsync(user);
var organizationUnitCodes = organizationUnits.Select(ou => ou.Code);

organizationUnitList = (from o in _organizationUnitRepository.GetAll()
                        where organizationUnitCodes.Any(code => o.Code.StartsWith(code))
                        select new OrganizationUnit()
                        {
                            Id = o.Id,
                            DisplayName = o.DisplayName,
                            TenantId = o.TenantId
                        });

And getting this error

System.InvalidOperationException: The LINQ expression 'DbSet<OrganizationUnit> .Where(o => __ef_filter__p_0 || !(((ISoftDelete)o).IsDeleted) && __ef_filter__p_1 || ((IMayHaveTenant)o).TenantId == __ef_filter__CurrentTenantId_2) .Where(o => __organizationUnitCodes_0 .Any(code => code == "" || o.Code != null && code != null && o.Code.StartsWith(code)))' could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to either AsEnumerable(), AsAsyncEnumerable(), ToList(), or ToListAsync(). See https://go.microsoft.com/fwlink/?linkid=2101038 for more information. at Microsoft.EntityFrameworkCore.Query.QueryableMethodTranslatingExpressionVisitor.<VisitMethodCall>g__CheckTranslated|8_0(ShapedQueryExpression translated, <>c__DisplayClass8_0& ) at Microsoft.EntityFrameworkCore.Query.QueryableMethodTranslatingExpressionVisitor.VisitMethodCall(MethodCallExpression methodCallExpression) at Microsoft.EntityFrameworkCore.Query.RelationalQueryableMethodTranslatingExpressionVisitor.VisitMethodCall(MethodCallExpression methodCallExpression) at Microsoft.EntityFrameworkCore.Query.QueryableMethodTranslatingExpressionVisitor.VisitMethodCall(MethodCallExpression methodCallExpression) at Microsoft.EntityFrameworkCore.Query.RelationalQueryableMethodTranslatingExpressionVisitor.VisitMethodCall(MethodCallExpression methodCallExpression) at Microsoft.EntityFrameworkCore.Query.QueryCompilationContext.CreateQueryExecutor[TResult](Expression query) at Microsoft.EntityFrameworkCore.Storage.Database.CompileQuery[TResult](Expression query, Boolean async) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.CompileQueryCore[TResult](IDatabase database, Expression query, IModel model, Boolean async) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.<>c__DisplayClass9_0`1.

Hi, we are using latest version of asp.net core and jQuery. https://localhost:44302/swagger/v1/swagger.json This url is wrking but https://localhost:44302/swagger/ui says not found.

Question

Hi

We are using latest Asp.Net Core MVC with jQuery.

After focus out of the Text editor, if there is the text then it's give this error.

If I have commented _form.validate() from init method of JS file then error goes out.

I have facing this issue with SummerNote & CKEditor both editor.

How can I fix it?

Hi

We are using latest Asp.Net Core MVC with jQuery.

For one of our entities we need to allow host admin to select Tenant. We added Pick Control.

But when we save data with TenantId it stores CreatorUserId as Null and in update LastModifierUserId as Null. We have used using (UnitOfWorkManager.Current.DisableFilter(AbpDataFilters.MayHaveTenant)) { await CreateOrEditData(input); }

How we can fix this?

Hi

We are trying to auto generate entity with foreign key. But AspNet Zero tool to generate entity not showing Role entity under Navigation Property, we tried Load more option but it duplicates other entity but never shows Role.

This is causing issue for auto generating code for Role field.

We have downloade aspnetzero latest asp.net MVC and jQuery yesterday and getting this error.

We found some solutions like run yarn and then np build run commands we have installed yarn and node. Unable to run command in VS2019, tried in directory but still error.

Is there any specific command to generate _bundles folder?

Hi

We are using : AspNetZero (Paid) Product version --> 4.0 Product type --> MVC Product framework type --> .net core

In existing code of aspnetzero in UserEMail class " _emailSender.SendAsync" sends an email but without subject.

Hi We are using AspNetZero (Paid) Product version --> 4.0 Product type --> MVC Product framework type --> .net core

we are using the RequiresFeature. But when Host user is hitting the URL it will give the FeatureChecker Exception "FeatureChecker can not get a feature value by name. TenantId is not set in the IAbpSession!".

How to ignore the RequiresFeature for host user?

Question

Hi

We are using AspNetZero (Paid) Product version --> 4.0 Product type --> MVC Product framework type --> .net core

Right now we are integrating one 3rd party doc viewer and in that getting issue with Newtonsoft.Json version as below: FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Could you please let us know how we can upgrade it as not finding it when we check for list of installed nugets in web or core or application projects?

Thanks

Showing 21 to 30 of 49 entries