Open Closed

app.MapAbpStaticAssets() not working. Says value cannot be null (Parameter 'provider') #9549


User avatar
0
cstobler created

I just upgraded to Pro and also just upgraded to .NET 9. I went to run my Web project and ran into this: I had updated that line based on this documentation: https://abp.io/docs/latest/release-info/migration-guides/abp-9-0. The intellisense shows it as a nullable argument, so I'm not sure why it is throwing this error.

If you need to see my project, I uploaded it for another ticket (9542) via email.

Thanks in advance for any help you can provide,

Charlie


4 Answer(s)
  • User Avatar
    0
    cstobler created

    I think the AI agent was supposed to reply but it hung and never did, so any help on this would be appreciated. Thanks!

    Charlie

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you try to change your Program.cs file to the new style?

    You can create a new project and check its Program.cs and WebModule code.

    eg: https://github.com/abpframework/abp/blob/dev/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Web/Program.cs#L11-L56 https://github.com/abpframework/abp/blob/dev/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.Web/MyProjectNameWebModule.cs#L211-L252

    Thanks.

  • User Avatar
    0
    cstobler created

    Thank you, the combination of following that pattern and setting my exceptions to only break on uncaught exceptions allowed me to load into my project.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Great

Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 18, 2025, 07:10