I have been strugling with a problem for a while. I have created some code that utilizes the MsOnlineClaimsHelper to authenticate a sharepoint online user in order to consume the lists.asmx webservice on a sharepoint online instance.
The code runs fine in my development-environment, but once I deploy it on the server it won’t run. I have included the errormessage at the bottom of the post. The only explanation I can find is that it is related to the environment/browserversjon. Can this be the reason? My development machine runs Windows 7 with IE8, and the server runs Windows server 2008 with IE7.
And furthermore, is there any alternative method to extract data from a list in sharepoint online?
[NullReferenceException: Object reference not set to an instance of an object.] SharepointUtils.MsOnlineClaimsHelper.getCookieContainer() +191 SharepointUtils.MsOnlineClaimsHelper.clientContext_ExecutingWebRequest(Object sender, WebRequestEventArgs e) +60
Microsoft.SharePoint.Client.ClientRuntimeContext.OnExecutingWebRequest(WebRequestEventArgs args) +19
Microsoft.SharePoint.Client.ClientContext.EnsureFormDigest() +236
Microsoft.SharePoint.Client.ClientContext.ExecuteQuery() +13
SharepointUtils.SharepointLoginHelper.GetExternalUserID(Guid g) +561
Ekademia.Web.AD.SharepointLoginRequestHandler.ProcessRequest(HttpContext context) +311
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75