Share via

Getting Exception while accessing Microsoft Teams from console app : "WS-Trust endpoint not found in metadata document. "

Mihir Purohit 1 Reputation point
2022-07-13T16:50:09.423+00:00

Hello All,

I am trying to use Microsoft Graph API to access Microsoft Teams channel from my simple desktop console application developed in c# .net.

I have registered my application in single tenant (only my organization) and trying to access MS Teams (specific channel) but exception is thrown saying ""WS-Trust endpoint not found in metadata document. "

Article referred for development - https://learn.microsoft.com/en-us/graph/api/channel-get-filesfolder?view=graph-rest-1.0&tabs=http

I am searching where I have gone wrong..whether in application registration, permission....anything else.

Kindly help.

Thank you in advance.

Microsoft Teams | Development
Microsoft Teams | Development

Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs

Microsoft Security | Microsoft Graph

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.