Skip to content

AssemblyLoadContext Name creates invalid AssemblyName when Source Assembly was loaded from byte Array #84295

Closed

Description

@jogibear9988

Description

DispatcheProxyGenerator fails cause the Name of the load Context wich is "Assembly.Load(byte[],...)", because it tries to Parse the Assembly Name via AssemblyNameParser, see screenshots for the stacktrace...

MicrosoftTeams-image (1)
MicrosoftTeams-image

Reproduction Steps

I'll try to create one

Expected behavior

It should work with an assembly load context created by a assembly loaded from byte arrays

Actual behavior

does not work

Regression?

Yes, it worked in Net6

Known Workarounds

We patched "_name" of assemblyLoadcontext to null

Configuration

No response

Other information

No response

Activity

  1. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Apr 4, 2023
  2. vitek-karas commented on Apr 4, 2023

    @vitek-karas
    Member

    This is duplicate of #80387. And has been fixed (in 7.0) by #82807.

    @buyaa-n would know in exactly which release the fix should appear in.

  3. jogibear9988 commented on Apr 4, 2023

    @jogibear9988
    Author

    @vitek-karas in wich 7.x version is this fixed?

  4. jogibear9988 commented on Apr 4, 2023

    @jogibear9988
    Author

    before i forget: @vitek-karas thanks for the info

  5. jogibear9988 commented on Apr 4, 2023

    @jogibear9988
    Author

    the pull request sais 7.0.5, so I think it should be in next release

  6. ghost removed
    untriagedNew issue has not been triaged by the area owner
    on Apr 4, 2023
  7. buyaa-n commented on Apr 4, 2023

    @buyaa-n
    Contributor

    Yes it is included in next (April) release

  8. ghost locked as resolved and limited conversation to collaborators on May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions