Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
C#
I am running into a very strange issue.

I am working with SharePoint 2010 Site using Client Side Object Model(C#). I am not having SharePoint Server so I have created an windows application using c# CSOM to deal with SharePoint.

In my application I am dealing with creating so many document libraries and documents within it. The SharePoint site uses Kerberos authentication. For few hours lets say 2-3 hours it work successfully and creates document library and documents within it, but later on it start giving following error:

The remote server returned an error: (401) Unauthorized.

I am not able to find out the actual reason behind this. Same code runs for 2-3 hours and later on it starts giving error. I verified multiple time, the application runs for few hours and then suddenly start giving the above error.

So my question is what may be the possible reason for the above situation?

If any one have already passed from such situation then please provide valuable suggestions and help.


What I have tried:

I tried running the application multiple times, but every time after particular time period it gives me the error for unauthorized
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900