1
全部,SharePoint 2010客戶端對象模型 - 需要代理驗證
一個小但令人討厭的問題。
我試圖創建一個使用客戶端對象模型來更改站點瓷磚一個DLL
Microsoft.SharePoint.Client.ClientContext myCContext = new Microsoft.SharePoint.Client.ClientContext(lsiteurl);
System.Net.NetworkCredential ReqCredential = new NetworkCredential("user", "pwd", "domain");
System.Net.WebProxy ReqProxy = new System.Net.WebProxy("IP:8080", false);
myCContext.Credentials = ReqCredential;
ReqProxy.Credentials = ReqCredential;
WebRequest.DefaultWebProxy = ReqProxy;
//GlobalProxySelection.Select = ReqProxy;
Microsoft.SharePoint.Client.Web lWeb = myCContext.Web;
myCContext.Load(lWeb);
lerror = "Load SPWeb";
myCContext.ExecuteQuery();
但我嘗試,每次它拋出的myCContext.ExecuteQuery)異常(
每一次同樣的錯誤「407代理服務器身份驗證」,請幫我解決這個問題
在How do I pass my proxy credentials to a SharePoint Client Context object...? (SharePoint Client Object Model)解決什麼也不做,甚至創造新的網絡credenti ALS,代理,...
THX任何幫助