Open Closed

Gettting NotSupportedException After upgrading to Version 8.1.4 #7539


User avatar
0
sukhdeep.dhillon created
  • ABP Framework version: v8.1.4
  • UI Type: Angular
  • Database System: EF Core (SQL Server)

Hi,

as I have upgrade my code to the ABP version 8.1.4

getting the following runtime exception in the console

after deploying to app service, I can also see the error in the application insight


8 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    It seems like you are using type as an extra property.

    You can custom the JsonConverter to support type, for example: https://stackoverflow.com/questions/66919668/net-core-graphql-graphql-systemtextjson-serialization-and-deserialization-of

  • User Avatar
    0
    sukhdeep.dhillon created

    the error is coming from the Text Template Domain Module. look at the screenshot but it only appear after upgrading to V8.1.4

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Check if your project has code like this:

    new TemplateDefinition(...).WithProperty("ResourceType", ....)
    

    If there is, don't use type as an property

  • User Avatar
    0
    sukhdeep.dhillon created

    I have this code in few files in Domain project. for your reference I have attached a screenshot, but I don't have "ResourceType" in my code plus, its been while since we changed these files but this error comes when we upgrade to V8.X.X

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Could you please use a new project to reproduce the problem and share it with me? i will check it , thanks shiwei.liang@volosoft.com

  • User Avatar
    0
    sukhdeep.dhillon created

    Hi, I have sent you an email please check that. thanks

  • User Avatar
    1
    liangshiwei created
    Support Team Fullstack Developer

    The reason is L(..) method return a object

    try this

    private readonly IStringLocalizer<NotificationResource> _localizer;
    
    ....
    .WithProperty(AppTextTemplateConsts.DescriptionPropertyName,_localizer[$"{notification}:{AppTextTemplateConsts.DescriptionPropertyName}"].Value)
    ...
    ....
    
    
    
    
  • User Avatar
    0
    sukhdeep.dhillon created

    thanks, it worked.

    but weird thing is that its been few months since we changed those files. The issue was started after upgrading the ABP.

    anyway, thanks again for your help and time :)

Made with ❤️ on ABP v9.1.0-preview. Updated on November 19, 2024, 12:56