Skip to content

Can it work on dotnet core 2.0 application? #6

@Rennix09

Description

@Rennix09

I have register the factory and locator,

services.AddScoped<DbContextScope.EfCore.Interfaces.IAmbientDbContextLocator>(serviceProvider => new DbContextScope.EfCore.Implementations.AmbientDbContextLocator());
and the locator register as :
services.AddScoped<IDbContextScopeFactory>(serviceProvider => new DbContextScopeFactory());
but when I create a scope instance use using ( var scope =_dbContextScopeFactory.Create()){}
I get a exception:

"Could not load type 'System.Runtime.Remoting.Messaging.CallContext' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'."

what shoud i do ?
thank you .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions