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

Activities of "majid"

Question

Hi For some resons we have decided to use raw sql inside server code. But it does not work : Context.Databse.ExecuteRawSql(...); it has no errors but it does Nothing .

I want to use the language that user has selected at login time how can i find it on the server code ? where is it located ?

Hello I have a problem with the Xamarin section of the program I want the default IP address set by the server to be changed on the Xamarin program, so that the default IP address on the Xamarin program does not depend on the server. This means that users can enter their IP and be able to connect to the server with different IPs and ports

To do this, I use the following source code:

To get the Server Root Address And Tenant:

ServerRootAddress = ApiUrlConfig.BaseUrl; TenantName = _applicationContext.CurrentTenant != null ? _applicationContext.CurrentTenant.TenancyName : "";

To set the address and Tenant:

     await Task.Run(() =>
        {
            _applicationContext.ClearLoginInfo();
            Task<TS.Main.Authorization.Accounts.Dto.IsTenantAvailableOutput>
            isTenantAvailableOutput;
            isTenantAvailableOutput = _accountAppService.IsTenantAvailable
            (new IsTenantAvailableInput() { TenancyName = TenantName });
            if (isTenantAvailableOutput.Result.TenantId != null)
            {
                _applicationContext.SetAsTenant(TenantName,
                                        (int)isTenantAvailableOutput.Result.TenantId);
                _applicationContext.SetServerInfo(new
                    ServerInformation(ServerRootAddress));
                UserDialogs.Instance.AlertAsync(L.Localize("ConfigConnection_Saved"),
                   L.Localize("ConfigConnection"), L.Localize("Ok"));
                ServerInformation serv =   _applicationContext.ServerInfo;
                _dataStorageService.StoreTenantInfoAsync(
                                _applicationContext.CurrentTenant);
                _dataStorageService.StoreServerInformationAsync(serv);
                ApiUrlConfig.ChangeBaseUrl(ServerRootAddress);
            }
        });
        

When I set up the IP and port, it is stored correctly and I can even receive information from within the program with the new address. But when you exit the program (logout), the information is reset and returns to the default settings set on the server side.

Hi I work with the Xamarin Android app .

I'm having trouble logging in for the first time I log in. After selecting a TENANT and entering a User name and Password, I click the login button. The program waits a long time and gives a error.

For further explanation, this problem arises when we first try to log in and the TENANT and User name and Password are empty. But if we close the program and try again (In this situation, the branch and username are not empty).

Comes into the program without waiting.

Thanks for the guidance

Hello The xamarin application in the mobile app gives the following error when running

But it receives the data correctly when calling from the browser

please follow up this issue

<br> <br>

Question

Hi, I am new in AspNetZero. I am working with ABP 7.0.0 Asp Net Core 2.2 & Jquery using NetZero. I created some entities with RAD tool and they worked well, but after upgrading all of my NUGET packages EDIT does not work. The error in Log.txt is:

ERROR 2019-07-18 11:04:38,430 [43 ] Mvc.ExceptionHandling.AbpExceptionFilter - Missing type map configuration or unsupported mapping.

Mapping types: CilentGroup -> CreateOrEditCilentGroupDto TS.MainDemo.Common.CilentGroup -> TS.MainDemo.Common.Dtos.CreateOrEditCilentGroupDto AutoMapper.AutoMapperMappingException: Missing type map configuration or unsupported mapping.

Mapping types: CilentGroup -> CreateOrEditCilentGroupDto TS.MainDemo.Common.CilentGroup -> TS.MainDemo.Common.Dtos.CreateOrEditCilentGroupDto at lambda_method(Closure , CilentGroup , CreateOrEditCilentGroupDto , ResolutionContext ) at lambda_method(Closure , Object , Object , ResolutionContext ) at AutoMapper.Mapper.AutoMapper.IMapper.Map[TDestination](Object source) in C:\projects\automapper\src\AutoMapper\Mapper.cs:line 212 at TS.MainDemo.Common.CilentGroupsAppService.GetCilentGroupForEdit(EntityDto`1 input) in C:\1\MainDemo\MainDemo\aspnet-core\src\TS.MainDemo.Application\Common\CilentGroupsAppService.cs:line 81 at lambda_method(Closure , Object ) at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync() at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync() at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync() at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextExceptionFilterAsync()

Showing 1 to 6 of 6 entries