TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Raghavendar Swaminathan
431
3.6k
140.5k
Cannot able to Connect the Sharepoint Online Site using CSOM
Aug 18 2018 4:29 AM
Target Environment : SharePoint Online
Coding Technique : Csom
Hi All,
I am facing the challenge with connecting to a sharepoint online site using csom. We are having 2 way authentication to connecting a site.
Example:
If
https://csharpcorner.microsoft.com
is a Online Site while loading we have to
[email protected]
& followed by the next below window with domain name.
username : domain\username
Password : ******************
because of this i couldn't able to connect a site with my code.
Code
string userName = textBox1.Text;
string password = textBox2.Text;
SecureString SecurePassword = GetSecureString(password);
clientContext.Credentials = new SharePointOnlineCredentials(userName,SecurePassword);
Web web = clientContext.Web;
clientContext.Load(web);
ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12;
clientContext.ExecuteQuery();
I'm getting the below exception.
Error
Can anyone assist me on this issue asap.
Thanks
Raghav
Reply
Answers (
1
)
Sp 2016 search is not working.
Change port no in sharepoint web application.