Base solution for your next web application

Activities of "omital"

Hi, Recntly I faced with weird behavior in Setting manager. When I call

SettingManager.ChangeSettingForTenantAsync(tenantId, name, value);

my setting will be deleted from AbpSetttings. I check sqlserver profiler and find this code:

exec sp_executesql N'DELETE [dbo].[AbpSettings]
WHERE ([Id] = @0)',N'@0 bigint',@0=112

WHY?

found. When setting value is equal to default value (initialized in SettingProvider) abp delete related row from abpSettings entity. I think this is a bad thing?! suppose that user set setting value to default value , related row will be deleted from abpSettings entity, now we release new version and seed method execute . the final conclusion is that "<ins>Seed method create new row in AbpSettings that maybe have a diffrente value compare with those user value</ins>" .

Hi. I Call appService's methods from Windows Application with this code:

var res = AsyncHelper.RunSync(() => testClient.Object.GetInstanceInfoByCode(input));

Is it possible to receive ApbUserFriendlyException message created by appService's Method?

Hi

For the first option, You can handle AbpRemoteCallException and catch the excpetion.

I call method like this

try
            {
                return await _abpWebApiClient.PostAsync<GetInstanceInfoByCodeOutput>(BaseUrl + "api/services/isirids/dashboard/GetInstanceInfoByCode", input);
            }
            catch (AbpRemoteCallException ex)
            {
                throw new Exception(ex.Message);
            }

for every exception raised from server I got this

Could not made request to http://localhost/ISD.Web//api/services/isirids/dashboard/GetInstanceInfoByCode! StatusCode: InternalServerError, ReasonPhrase: Internal Server Error

AND for secend way, Please example?! :shock:

any solution?!

Yes. I use app service from windows desktop app directly. Is it correct way? if yes, how windows app can know about actual error occurred in service?

Hi. Any other solution for this kind of problem?

Hi How I can change command timeout for dbContext ?

Hi, How admin user can login as a other users for test and troubleshooting purpose?

Showing 91 to 99 of 99 entries