New answers tagged

0 votes
Accepted

Attempted to access an unloaded appdomain

Few days ago I installed the Juli 2022 CU KB5002231 updrading to 16.0.5266.1000 and it seems to be fixed. Last 48 hours I got no errors.
user avatar
  • 1,186
0 votes

How to update in SharePoint list using CSOM?

You can check whether item is exist in destination list using CAML Query before adding item. You can use below code. foreach (ListItem SourcelistItem in lic) { // We have all ...
user avatar
1 vote
Accepted

Null exception in Web.EnsureUser CSOM C#

By Default EnsureUser method will throw an exception only if user is not found so you need to handle it via try and catch. You can create one extension method in your solution as shown below: ...
user avatar
0 votes

Issues with SharePoint Online OAuth 2.0 & Lack of proper documentation

I managed to solve this but I am not entirely sure which one from a series of actions resolved the issue. First of all, as indicated in my initial post, I had already upgraded the framework from 4.5 ...
user avatar
0 votes

Permission Masks

You can get Mask from RoleDefinition.BasePermission which does have non-public member called High and Low. In case of Full Control Permission, it will give always fixed number i.e. 4294967295 Sample ...
user avatar
1 vote

Service cannot connect to SPO using CSOM after a certain amount of time

I was having the same issue for a week or so. This is to deal with SSL/TLS for sure. What you can do is Add System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12; to ...
user avatar

Top 50 recent answers are included