Open Closed

User Image Lost #4800


User avatar
0
david.hurtado created

We have an error displaying the user's image in the production environment. The image is not displayed and when I inspect the element, it indicates that there is an error with the API. However, when I test it in development, it works fine.

  • ABP Framework version: v7.0.1
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Example:
  • When i open the image in a new tag i get this error:
  • {"error":{"code":"NotFound","message":"Not Found","details":null,"data":null,"validationErrors":null}}
  • From this URL:
  • https://example.frontendserver.com/api/account/profile-picture-file/385c0c65-7a0f-61d6-ce6b-39f9bcba9c51
  • Steps to reproduce the issue:"
  • This error occurs in production, it does not happen in development mode.
  • If I access to the user account the image shows correctly
  • For example:
  • Thank you for any idea you can give me regarding how to solve this error?"
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

2 Answer(s)
  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    Check you appsettings.json file. AbpAccountPublic under RemoteServices should point to AuthServer:

    "RemoteServices": {
        "Default": {
          "BaseUrl": "https://localhost:44305"
        },
        "AbpAccountPublic": {
          "BaseUrl": "https://localhost:44305" -> This should be authserver URL
        }
      },
    
    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    david.hurtado created

    It works fine for me! Thanks!

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 28, 2026, 11:44
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.