Thursday 29 May 2014

The remote server returned an error: (403) Forbidden

The remote server returned an error: (403) Forbidden
Troubleshooting Exceptions: System.Net.WebException
Root Cause: You might have missing SPO Authentication
Solution:

 Check this method in below code: SPOAuthe
 clientContext = SPOAuthe(clientContext);



Now your code should work..