Base solution for your next web application

Activities of "moonch"

Product version: Asp Net Core, JQuery, .NET 6

Dear Customer Support. I amd getting Validation errors with Double and Decimal values when culture is not English:

Abp.Runtime.Validation.AbpValidationException: Method arguments are not valid!

For example if the cuture is set for Arabic, and for DataTypes Double we try to post a value 1.5 , this throws an error 500, the Value 1.5 is not valid, same is Ok for Whole Numbers, so for example 1.0 does not throw this error.

I looked into the forum and i found this thread from three years ago, where this issue was raised and it was mentioned that it was Fixed in 1.7.2 release. However in my project, I am using latest zero version I am still getting the error.

[Forum Link](https://support.aspnetzero.com/QA/Questions/6318/ValidationError-with-datatype-Double)

Dear Customer support, Tried to perform localization inside the application service method is not working, I tried injecting ILocalizationManager _localizationManager; and use it to localize some text before saving it to the database,

if using @L("someText") in controller it works , also same inside the .cshtml and javascript app.localize("sometext")

However in some case i need to perform localization inside the application service by using the localization manager,

var localizedText = _localizationManager.GetString(AbpZeroConsts.LocalizationSourceName, "sometext");

this does not localize . Please advice on how to perform localization inside App.Service or Application Project

The following Would get localization on the server side

_localizationManager.GetString(AbpZeroConsts.LocalizationSourceName, "StageChangedTo");

  • Product version: Asp Net Core, JQuery, .NET 6

I am trying to perform localization on the server side in one Applization Service method, I have added the string into xml files

<text name="StageChangedTo">Stage Changed To:</text>

However when I call Get string from the injected _localizationManager

            var changeStageString = _localizationManager.GetString("StageChangedTo", "Archirox");

Error, localization source canot be fund... Note that the seconed parameter "Archirox" is the default xml name and soluation name.

Please Advice how to do localization on the server side. ?

ok the issue was in a FileAppService not registering the ConfigrationFile, One Issue is Before injecting IConfigration to read from appsetting.json, I also tried injecting IConfigurationRoot this throws error, Can you please advise how to get appsetting.json values IN ASP NET ZERO , there is little to no documentation on the subject.

` private readonly IConfiguration _configuration;

    public ArchiroxApplicationModule(IConfiguration configuration)
    {
        _configuration = configuration;
    }
    public override void PreInitialize()
    {
        Configuration.Authorization.Providers.Add<ArchiroxAuthorizationProvider>();
    }`
    
    public method()
    {
        var key = _configuration.GetValue&lt;string&gt;("Azure:AccountName"); //Always NULL
    }
    
    
    //THE APPSETTING.json
    
    }
    "Azure":
    {
        "ConnectionStrings":"somestringt",
        "AccessKey": "somestring2",
        "AccountName": "somestring2"
     }
    }
  • version .NET 6
  • product type MVC Core
  • .NET Core

Making Ajax Post Trying to hit an action method for a controller in diferent area fails with 500 error. Same code was working in ABP Boilerplate and ASP NET Core Project but not in Zero, Also it works in case the ACTION method is in same Calling Controller. So URL without area works ok.

var model = { "SectionId": @FileUploaderConsts.HR_CV, "ParentId": recordId }; $.ajax({ type: "POST", url: '@Url.Action("Async_GetPdfFile", "DocumentsAndFiles", new { area = "DocumentManagement" })', dataType: "json", data: model, success: function (pdf) { alert("OK"); }

` [Area("DocumentManagement")] [Route("DocumentManagement/[controller]/[action]")] [AllowAnonymous] public class DocumentsAndFilesController : ArchiroxControllerBase {

    [HttpPost]
    [DontWrapResult]
    public async Task<DM_PDF_ViewModel> Async_GetPdfFile(DM_AdditionalFileInfo_ViewModel model)
    {
        return await _iDM_File_Handler_AppService.GetPdfBlob(model.ParentId, model.SectionId);
    }

` the url:"/DocumentManagement/DocumentsAndFiles/Async_GetPdfFile" is not being hit, however if the Async_GetPdfFile is local the POST is success. The logged in user is admin which has all the permissions, and i tried decorating the DocumentsAndFiles with [AllowAnonymous] to eliminate the possibilty of permission issues, the url construction looks OK, Please see attached image.

Your help is appreciated.

Product: Asp Zero ( Core + Jquery ) MVC, Multi Page, .NET 6.

Dear Support. I have a requirement in some pages of the application to include top navigation menu , where a user can navigate to other pages by clicking on links, please attached image. the ideal location is above the page abp-page-subheader, it will always be horizantal regardless of the theme selected in the visual settings, the items will need authorization permissions check similar to the main side menu items.

Looking at the three layer of which a view is constructed.

1- the Page View. 2- theme: _Layout : Default or any of the 12themes. 3- _Layout.cshtml in Layout folder

Please advise where to introuce this. if in layer 2 then do i need to configure new 13 layouts, or if just in layer (1) the page view. Please share code example if this was done in previos projects.

Showing 11 to 17 of 17 entries