'Cannot access Exchange Public Folder Calendar with c# ExchangeWebServics

I'm trying to read a public folder calendar events with no success. I'm authenticating using App-only as per microsoft documentation and I am able to obtain an access token.

https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-authenticate-an-ews-application-by-using-oauth

I Created the a public folder calendar in the Exchange admin center, created a test event on it, and enabled it's email that came out something like this: [email protected]

Below here is the part of code that gives the exception: "The SMTP address has no mailbox associated with it."

I created a public folder mailbox, but I cannot find anywhere on the exchange admin center where to associate public folder mailboxes to public folder.

        calendarFolderId = new FolderId(WellKnownFolderName.Calendar,CalendarConfig.CalendarEmail);
        FolderView folderView = new FolderView(1);
        var folders = await ewsClient.FindFolders(calendarFolderId, folderView);


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source