当我尝试从.net代码更新sharepoint 2013在线列表时,出现错误. [英] When I tried to update sharepoint 2013 online list from .net code then i got error.

查看:101
本文介绍了当我尝试从.net代码更新sharepoint 2013在线列表时,出现错误.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Exception in sharepoint update   at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
   at System.Net.HttpWebRequest.GetRequestStream()
   at Microsoft.SharePoint.Client.Idcrl.IdcrlAuth.DoPost(String url, String contentType, String body, Func`2 webExceptionHandler)
   at Microsoft.SharePoint.Client.Idcrl.IdcrlAuth.GetUserRealm(String login)
   at Microsoft.SharePoint.Client.Idcrl.IdcrlAuth.GetServiceToken(String username, String password, String serviceTarget, String servicePolicy)
   at Microsoft.SharePoint.Client.Idcrl.SharePointOnlineAuthenticationProvider.GetAuthenticationCookie(Uri url, String username, SecureString password)
   at Microsoft.SharePoint.Client.SharePointOnlineCredentials.GetAuthenticationCookie(Uri url, Boolean refresh)
   at Microsoft.SharePoint.Client.ClientRuntimeContext.SetupRequestCredential(ClientRuntimeContext context, HttpWebRequest request)
   at Microsoft.SharePoint.Client.SPWebRequestExecutor.GetRequestStream()
   at Microsoft.SharePoint.Client.ClientContext.GetFormDigestInfoPrivate()
   at Microsoft.SharePoint.Client.ClientContext.EnsureFormDigest()
   at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()
   at PV_Workflow_WebAPI_2.UpdateSharePointList.updateData(String GUID, String packagename, String status) in c:\WebAPI_2\UpdateSharePointList.cs:line 43 message The remote name could not be resolved: 'login.microsoftonline.com'

凭据没有问题,并且工作正常.

no issue with credential and working fine. 

请尽快帮助我.

推荐答案

您的服务器是否具有良好的网络状态?
does your server have a good network state?


这篇关于当我尝试从.net代码更新sharepoint 2013在线列表时,出现错误.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆