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

问题描述

共享点更新中的异常  at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
    at System.Net.HttpWebRequest.GetRequestStream()
    at Microsoft.SharePoint.Client.Idcrl.IdcrlAuth.DoPost(字符串url,字符串contentType,字符串主体,函数2 webExceptionHandler)
    at Microsoft.SharePoint.Client.Idcrl.IdcrlAuth.GetUserRealm(字符串登录)
    at Microsoft.SharePoint.Client.Idcrl.IdcrlAuth.GetServiceToken(字符串用户名,字符串密码,字符串serviceTarget,字符串servicePolicy)
    at Microsoft.SharePoint.Client.Idcrl.SharePointOnlineAuthenticationProvider.GetAuthenticationCookie(Uri网址,字符串用户名,SecureString密码)
    at Microsoft.SharePoint.Client.SharePointOnlineCredentials.GetAuthenticationCookie(Uri网址,布尔值刷新)
    at Microsoft.SharePoint.Client.ClientRuntimeContext.SetupRequestCredential(ClientRuntimeContext上下文,HttpWebRequest请求)
    at Microsoft.SharePoint.Client.SPWebRequestExecutor.GetRequestStream()
    at Microsoft.SharePoint.Client.ClientContext.GetFormDigestInfoPrivate()
    at Microsoft.SharePoint.Client.ClientContext.EnsureFormDigest()
    at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()
 在c:\ WebAPI_2 \ UpdateSharePointList.cs:line 43消息中的PV_Workflow_WebAPI_2.UpdateSharePointList.updateData(字符串GUID,字符串包名称,字符串状态)处无法解析远程名称:"login.microsoftonline.com"

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. 

请尽快帮助我.

推荐答案


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

08-15 19:21