Sep 24 2019 04:48 AM
I am trying to connect to SharePoint online using SharePoint CSOM package in C#. I am using a service account to get access. When I tried to logon to site directly through Website, I can connect. But when I tried to connect through C# code, I couldn’t connect and got the error stating “The sign-in name or password does not match one in the Microsoft account system.”
I provided member access to the above-mentioned account. I add one more service account to my SharePoint Site and tried the same and I was able to connect through C# code as well. Is there any specific type of account which can access to SharePoint online through CSOM package?
Can anyone help me to resolve this issue?
Sep 24 2019 01:30 PM
@Raj4100 Please find the below code make sure you add the following package as well
An you will need one more function which will convert your text password to secure password: