Relative Content

Tag Archive for c#.netexchange-servervisual-studio-2022exchangewebservices

Microsoft.Exchange.WebServices.Data.ServiceRequestException: ‘The request failed. The remote server returned an error: (401) Unauthorized.’ in c#

I am reading mails from Exchange server by using c# with below code i am getting an error like Microsoft.Exchange.WebServices.Data.ServiceRequestException: 'The request failed. The remote server returned an error: (401) Unauthorized.' and when i googled i got information like microsoft stopped direct authentication and now we have to use Open Authenticaion(Oauth).I was going through the steps mentioned in the link OauthToken There in the first step Registration process ,i logged in through my office id and in the search box, i searched App registrations where i am getting Warning like Your administrator has disabled the App registrations experience in the Azure portal. You can still register or manage applications using PowerShell or another client such as Visual Studio. and i got stuck here?So my question what would be the next step and is this a correct process?