Method not found running graphClient.[Me].MailFolders.GetAsync

Connie Koch 20 Reputation points
2024-01-02T00:38:01.38+00:00

I upgraded today to graph api v5. It's quite a rewrite of what we were using previously. When I run this line

graphClient.[Me].MailFolders.GetAsync()

I get this error.

Method not found: 'System.String Std.UriTemplate.Expand(System.String, System.Collections.Generic.Dictionary`2<System.String,System.Object>)'.

I have no idea what this means. Anyone recognize this and know what to do?

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Answer accepted by question author
  1. CarlZhao-MSFT 46,406 Reputation points
    2024-01-02T09:30:22.6233333+00:00

    Hi @Connie Koch

    I can't seem to reproduce your problem, it works fine for me.

    Here are some parameters of my project:

    Target framework:

    User's image

    Package version:

    User's image

    Also, I found a similar thread on GitHub to see if it helps you.


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

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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