Skip to content

use Newtonsoft replace System.Text.Json exception Could not load type Volo.Abp.DependencyInjection.IHybridServiceScopeFactory #16124

@wang3156

Description

@wang3156

Is there an existing issue for this?

  • I have searched the existing issues

Description

Error :Unhandled exception. System.TypeLoadException: Could not load type 'Volo.Abp.DependencyInjection.IHybridServiceScopeFactory' from assembly 'Volo.Abp.Core, Version=7.1.0.0, Culture=neutral, PublicKeyToken=null'.
i want use Newtonsoft replace System Text Json,According to the guide

  1. add Volo.Abp.Json.Newtonsoft package
  2. depends on AbpJsonNewtonsoftModule
    image
    image

image
But the it runs wrong as follows
image

Framework version .net6
Related package and its version
image

Reproduction Steps

No response

Expected behavior

Replace System.Text.Json with Newtonsoft to do the serialization

Actual behavior

Unhandled exception. System.TypeLoadException: Could not load type 'Volo.Abp.DependencyInjection.IHybridServiceScopeFactory' from assembly 'Volo.Abp.Core, Version=7.1.0.0, Culture=neutral, PublicKeyToken=null'.

Regression?

No response

Known Workarounds

No response

Version

6.0

User Interface

Common (Default)

Database Provider

EF Core (Default)

Tiered or separate authentication server

None (Default)

Operation System

Windows (Default)

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions