Skip to content

.NET 8 Blazor Lazy loading failed with assembly naming like "requests.wasm" #95169

Closed

Description

@hoangdovan

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Expected Behavior

  • There should be solution allow user assembly with naming like "requests.wasm" can be lazy loaded without any problem.
  • Or at least, there should be a list of naming developer should not use for lazy loading in official document.

Steps To Reproduce

Create a simple lazy loading example with naming "requests.wasm" for target assembly. There will be error happen.

Exceptions (if any)

No response

.NET Version

.Net 8.0.0

Anything else?

No response

Activity

  1. transferred this issue fromdotnet/aspnetcoreon Nov 23, 2023
  2. ghost added
    area-AssemblyLoader-coreclr
    on Nov 23, 2023
  3. ghost added
    untriaged
    on Nov 23, 2023
  4. javiercn commented on Nov 23, 2023

    @javiercn
    Member

    @maraf do you have thoughts?

  5. self-assigned this
    on Nov 23, 2023
  6. added
    arch-wasm
    os-browser
    and removed
    area-AssemblyLoader-coreclr
    untriaged
    on Nov 23, 2023
  7. added this to the 8.0.x milestone on Nov 23, 2023
  8. maraf commented on Nov 23, 2023

    @maraf
    Member

    @hoangdovan Thank you for contacting us. I tried to reproduce the issue, but if I have a classlib requests.wasm and lazy load it on counter page, it works. I'm attaching the sample I have created BlazorRequestsDllLazyLoad.zip. Am I missing anything?

  9. added
    needs-author-action
    on Nov 23, 2023
  10. hoangdovan commented on Nov 28, 2023

    @hoangdovan
    Author

    @maraf Thank you for your response! I already confirm again and it seems happen only when I try to upgrade from .Net 7 project to .Net 8, maybe because of caching problem. Sorry to bother you.

  11. fingers10 commented on Nov 29, 2023

    @fingers10

    @hoangdovan Please can you assist on what is the solution here? I'm also facing the same issue when I migrate from .NET 7 to .NET 8. Here is the link to my issue #52373. What is the caching that needs to be cleared?

  12. hoangdovan commented on Nov 29, 2023

    @hoangdovan
    Author

    @fingers10 Hello, I doubt this problem because of caching problem when upgrade from .NET 7 to .NET 8. And could you try some actions like me: Change to another PC for development. Or rename of failed lazy loading modules? (Purpose of change name: to remove caching effect). Good luck!

  13. fingers10 commented on Nov 29, 2023

    @fingers10

    @fingers10 Hello, I doubt this problem because of caching problem when upgrade from .NET 7 to .NET 8. And could you try some actions like me: Change to another PC for development. Or rename of failed lazy loading modules? (Purpose of change name: to remove caching effect). Good luck!

    Rename worked. Thanks for your inputs and support.

  14. maraf commented on Nov 29, 2023

    @maraf
    Member

    Also, there is a write up on recomended steps when upgrading to a new major version dotnet/aspnetcore#52022

  15. locked and limited conversation to collaborators on Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-wasmarea-System.Runtime.InteropServices.JavaScriptneeds-author-actionos-browser

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions