Thank you so very much! This works for me. I was working on my VM and it would not work but I found that it was my DNS settings. I tested it on a Windows 10 box that was not a VM and it worked. I'll re-visit my VM DNS, but I wanted to thank you.
The type or namespace name 'SharePointOnlineCredentials' could not be found (are you missing a using directive or an assembly reference? showing this type of error but i have already added refrance
when I use above, I got this error : The sign-in name or password does not match one in the Microsoft account system even the credentials are correct and MFA is disabled
I 'm getting this error Cannot contact site at the specified URL DomainName/Lists/DotNetToSharePoint/AllItems.aspx. There is no Web named "/sites/DMSEC/Lists/DotNetToSharePoint/AllItems.aspx/_vti_bin/sites.asmx".
Thanks for the tutorial, It is very helpful. I am just wondering how secure is the communication between the application and the sharepoint. Is there a way to make this information transfer more secure.
Syed Mohammed no need webconfig : just follow : context.Credentials = new NetworkCredential("username", "password"); List list = context.Web.Lists.GetByTitle("CompaniesList1"); ListItemCreationInformation itemCreateInfo = new ListItemCreationInformation(); ListItem oListItem = list.AddItem(itemCreateInfo); oListItem["Title"] = "My New Item!"; oListItem.Update(); context.ExecuteQuery();
It's great to see an example of using SharePoint's client side object model from C#. I'm curious, do you have another method of authenticating you use besides needing a password in the settings? That method seems fragile.
Tom, i think more secure way would be to use OAuth, that will require a registering app and sending client id+client secret and let user direct/redirect to/from microsoft online auth url. thanks for point out security flaw :)
Thank you so very much! This works for me. I was working on my VM and it would not work but I found that it was my DNS settings. I tested it on a Windows 10 box that was not a VM and it worked. I'll re-visit my VM DNS, but I wanted to thank you.
Hi, nice video. How do you create new columna for the metadata? I mean new columna outsider the standard columna guven by shp
The type or namespace name 'SharePointOnlineCredentials' could not be found (are you missing a using directive or an assembly reference?
showing this type of error but i have already added refrance
when I use above, I got this error : The sign-in name or password does not match one in the Microsoft account system even the credentials are correct and MFA is disabled
Project creation is of which type is used
hi, thanks! i had a colunm ""Straße" for geran (also Street), C# does not find the column in SharePoint with this name .... any solution ?
use ss instead of ß
thanks for the tutorial, one question, how to write the whole list in a grid/table?
did u solve it?
Super tutorial. Thanks
I 'm getting this error
Cannot contact site at the specified URL DomainName/Lists/DotNetToSharePoint/AllItems.aspx.
There is no Web named "/sites/DMSEC/Lists/DotNetToSharePoint/AllItems.aspx/_vti_bin/sites.asmx".
Thanks for the tutorial, It is very helpful. I am just wondering how secure is the communication between the application and the sharepoint. Is there a way to make this information transfer more secure.
can you show us how did you put the values in App.config, just a sample
Syed Mohammed
no need webconfig : just follow :
context.Credentials = new NetworkCredential("username", "password");
List list = context.Web.Lists.GetByTitle("CompaniesList1");
ListItemCreationInformation itemCreateInfo = new ListItemCreationInformation();
ListItem oListItem = list.AddItem(itemCreateInfo);
oListItem["Title"] = "My New Item!";
oListItem.Update();
context.ExecuteQuery();
thanx
able to share the code?
It's great to see an example of using SharePoint's client side object model from C#. I'm curious, do you have another method of authenticating you use besides needing a password in the settings? That method seems fragile.
Tom, i think more secure way would be to use OAuth, that will require a registering app and sending client id+client secret and let user direct/redirect to/from microsoft online auth url. thanks for point out security flaw :)
It's still a great example. I like the OAuth method, because it would show real-world practices in the example.
ConfigurationSettings.AppSettings has been marked obsolete and no longer part of System.Configuration
share the prooject please
y el codigo?
not good at all.