While calling MS Graph API through blazor webassembly app i am getting below error

Akash Doke 0 Reputation points
2023-12-01T16:06:00.3833333+00:00
{
    "error": {
        "code": "ErrorEntityNotFound",
        "message": "Exception of type 'Microsoft.Fast.Profile.Core.Exception.ImageNotFoundException' was thrown.",
        "innerError": {
            "date": "2023-12-01T16:00:45",
            "request-id": "fd91f85f-1039-425d-9baa-d55ac48353bd",
            "client-request-id": "fd91f85f-1039-425d-9baa-d55ac48353bd"
        }
    }
}
Developer technologies .NET Blazor
Microsoft Security Microsoft Graph
Developer technologies C#
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Sourabh Gupta 800 Reputation points Microsoft External Staff
    2023-12-02T09:46:59.2066667+00:00

    Hi @Akash Doke

    Thanks for reaching out!

    Based upon the error message I am assuming that you are trying to call some graph endpoint related to either accessing some profile photo of either a team or individual. or you are trying to update the existing photo. Could you please confirm the same.

    I have tried this API locally and it is working fine when the photo exists. The profile photo is accessed successfully. In case you want to update the photo, please pass the valid binary data for the image and try executing the API. If the issue still persists, I recommend you raise a support case with Microsoft Graph, a Support Engineer will be able to assist you better.

    You can raise support ticket from
    [http://aad.portal.azure.com] or https://admin.microsoft.com/#/support/requests.

    You can refer to the following documentation for more details https://learn.microsoft.com/en-us/graph/api/profilephoto-update?view=graph-rest-1.0&tabs=http#:%7E:text=User.ReadWrite.All-,Note,-To%20update%20the

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.


  2. Akash Doke 0 Reputation points
    2023-12-04T14:51:46.19+00:00

    I am trying to get profile picture of user , I am not updating the user photo


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.