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

Activities of "samara081"

Hi,

I need to read the lateset value of application setting, but i don't want to read from cash. i used SettingManager.GetSettingValue to get the value, however sometimes it data is outdated as the seeting has been changed from another server.

To solve this, i clread the cashe before getting the vlaue "_cachingAppService.ClearCache" but this needs mentainnace permissin to excute.

Is thier any to read the setting from database, not the cashe?

Hi,

We have 2 databases with same structure (same entity, one of the databases is snapshot of the other live database) Some of the service on the system will read from the snapshot database, and most of the services will manage the live database.

What is the best option to implement this? and how we can force the repository to ready from the snapshot database?

Regards

We are implementing a solution to query a temporal of any table.

As you know, when enable a temporal table on sql server for any table, sql will automatically add a second table with extra “_History” at the end of the table to track history. For example if we have “student” table, sql server will add “student_History” table.

To query the student history, all what we need is querying student table and add “FOR SYSTEM_TIME AS OF '2015-09-01 T10:00:00.7230011' ;” at the end of the statement. So instead of write:

Select * from student

We will write: Select * from student FOR SYSTEM_TIME AS OF '2015-09-01 T10:00:00.7230011'

Is there any way to automatically append this statement at the end of the query?

It is like intercepting the query and applying query filter like soft table, but now it is not filter, it is just statement at the end of the statement.

Question

Please help me how to catch exception if i call service from mvc controller? if i do that my code never enter catch section in Application service but if i call sevice from java script directly all thing is ok, all my need is to not call service from javascript to catch exception

this code from View

and this from controller

and this from service

When we create permission on AppAuthorizationProvider, we need to sort the permission on edit permission page by same order that we entered, not by name. for example when we enter SystemTasks permission then PerformanceManagement permission, edit role page show it as PerformanceManagement then SystemTasks. Can we change the behavior?

We need to dynamically read permissions from database, we have injected the table repository object, however we called GetAll method inside AppAuthorizationProvider.SetPermissions we get the following error: System.ObjectDisposedException “Cannot access a disposed object. A common cause of this error is disposing a context that was resolved from dependency injection and then later trying to use the same context instance elsewhere in your application. This may occur if you are calling Dispose() on the context, or wrapping the context in a using statement. If you are using dependency injection, you should let the dependency injection container take care of disposing context instances. Object name: 'VdpDbContext'.

Hi,

We have created a new BackgroundJobManager, however the job has been excuted 2 times, one for each server. Is thier a way to make it run just one time?

Regards

i need to get a list of users , who's have specific permission ,

Hello,

When we switch to Arabic language, (ar-sa) the system switch the calendar to sometimes Hijri and sometimes to converted strange calendar. and when we create or edit any item, we received a date time conversion error.

Is there any way to force the system to use Gregorian calendar even with Arabic language?

And the error from the log:

ERROR 2018-12-06 12:12:03,174 [53 ] Mvc.ExceptionHandling.AbpExceptionFilter - String '١٢/‏٦/‏٢٠١٨' was not recognized as a valid DateTime. System.FormatException: String '١٢/‏٦/‏٢٠١٨' was not recognized as a valid DateTime. at System.DateTimeParse.Parse(ReadOnlySpan`1 s, DateTimeFormatInfo dtfi, DateTimeStyles styles) at System.DateTime.Parse(String s, IFormatProvider provider, DateTimeStyles styles) at Newtonsoft.Json.Converters.IsoDateTimeConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer) at Abp.Json.AbpDateTimeConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer) in D:\Github\aspnetboilerplate\src\Abp\Json\AbpDateTimeConverter.cs:line 22 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Mvc.Formatters.JsonInputFormatter.ReadRequestBodyAsync(InputFormatterContext context, Encoding encoding) at Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinder.BindModelAsync(ModelBindingContext bindingContext) at Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder.BindModelAsync(ActionContext actionContext, IModelBinder modelBinder, IValueProvider valueProvider, ParameterDescriptor parameter, ModelMetadata metadata, Object value) at Microsoft.AspNetCore.Mvc.Internal.ControllerBinderDelegateProvider.<>c__DisplayClass0_0.<

Showing 11 to 19 of 19 entries