Skip to content

Problem when creating instance out of default AssemblyLoadContext #44

@jantoas

Description

@jantoas

Hello,

log4net logger shall be loaded in a plugin which is implemented in .net6.0.

Each plugin has it's own AssemblyLoadContex.

When try to instantiate, following error occurs:

log4net:ERROR [AdoNetAppender] ErrorCode: GenericFailure. Failed to load connection type [System.Data.SqlClient.SqlConnection, System.Data, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]
System.IO.FileNotFoundException: Could not load file or assembly 'System.Data.SqlClient, Version=0.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Das System kann die angegebene Datei nicht finden.

But file System.Data.SqlClient is in plugin folder, which is not application folder of executable.

Any idea to fix this issue?

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