将UserProfileService.asmx和UserGroup.asmx与Infopath表单一起使用 [英] Using UserProfileService.asmx and UserGroup.asmx with an Infopath form

查看:72
本文介绍了将UserProfileService.asmx和UserGroup.asmx与Infopath表单一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用Web服务获取一些用户信息时,出现两个 5566 错误.

I am getting two 5566 errors when I use web services to get some user information.

我需要知道已登录用户的组,以防止显示部分...

I need to know the group of the logged user in order to prevent a section to be showed...

 

让我描述一下我的客户 Sharepoint 2010 服务器场环境

Let me describe my client Sharepoint 2010 farm environment

两个fron终端服务器

Two fron End Server

中央管理服务器

SQL服务器

 

网站集使用Claims身份验证类型用于两个区域(默认和Internet),并且身份验证提供程序具有启用Windows身份验证".选中集成的Windows身份验证"检查并"NTLM"选择.

The Site collection uses Claims authentication types for two zones (Deafult and Internet) and the authentication provider has "Enable Windows Authentication" checked, "Integrated windows Authentication" checked and "NTLM" selected.

对于Web应用程序使用的两个区域,中央管理都将禁用匿名访问

The anonymous access is disable from Central admin for both zones that the webapp uses 

该表单位于网站集级别(无子网站)

The form is located at site collection level (No Subsites)

该表单后面没有代码.

表单将信息隐藏到共享点列表中.

The form submist info to a Sharepoint List.

始终使用Internet Explorer

Using Internet Explorer allways

 

这是SharePoint日志

This is the SharePoint log

 

2011/07/15 10:47:51.65 w3wp.exe(0x1358)                      0x0CF0 SharePoint基础      监视                    nasq 中等  输入受监视的范围(请求(POST(http://MyTestDomain:80/_vti_bin/UserProfileService.asmx)))  

07/15/2011 10:47:51.65 w3wp.exe (0x1358)                       0x0CF0 SharePoint Foundation         Monitoring                     nasq Medium   Entering monitored scope (Request (POST:http://MyTestDomain:80/_vti_bin/UserProfileService.asmx))  

2011/07/15 10:47:51.65 w3wp.exe(0x1358)                      0x0CF0 SharePoint基础      记录相关数据      xmnv 中等  名称=请求(POST:http://MyTestDomain:80/_vti_bin/UserProfileService.asmx) 2b401d92-bd9b-4fcc-8713-6f89d8d9720e

07/15/2011 10:47:51.65 w3wp.exe (0x1358)                       0x0CF0 SharePoint Foundation         Logging Correlation Data       xmnv Medium   Name=Request (POST:http://MyTestDomain:80/_vti_bin/UserProfileService.asmx) 2b401d92-bd9b-4fcc-8713-6f89d8d9720e

2011/07/15 10:47:51.65 w3wp.exe(0x1358)                      0x0CF0 SharePoint Portal Server     用户个人资料              fvg3 中等  SoapAction:"http://microsoft.com/webservices/SharePointPortalServer/UserProfileService/GetUserProfileByName" 2b401d92-bd9b-4fcc-8713-6f89d8d9720e

07/15/2011 10:47:51.65 w3wp.exe (0x1358)                       0x0CF0 SharePoint Portal Server       User Profiles                 fvg3 Medium   SoapAction: "http://microsoft.com/webservices/SharePointPortalServer/UserProfileService/GetUserProfileByName" 2b401d92-bd9b-4fcc-8713-6f89d8d9720e

2011/07/15 10:47:51.65 w3wp.exe(0x1358)                      0x0CF0 SharePoint Portal Server     用户个人资料              fvg4 中等  <?xml version ="1.0" encoding ="utf-8"?< SOAP-ENV:Envelope xmlns:SOAPSDK1 ="http://www.w3.org/2001/XMLSchema"; xmlns:SOAPSDK2 ="http://www.w3.org/2001/XMLSchema-instance"; xmlns:SOAPSDK3 ="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV ="http://schemas.xmlsoap.org/soap/envelope/"< SOAP-ENV:Body>< tns:GetUserProfileByName xmlns:tns ="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService">< tns:AccountName></tns:AccountName></tns:GetUserProfileByName></SOAP-ENV:Body> ;</SOAP-ENV:Envelope>   2b401d92-bd9b-4fcc-8713-6f89d8d9720e

07/15/2011 10:47:51.65 w3wp.exe (0x1358)                       0x0CF0 SharePoint Portal Server       User Profiles                 fvg4 Medium   <?xml version="1.0" encoding="utf-8"?><SOAP-ENV:Envelope xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema" xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><tns:GetUserProfileByName xmlns:tns="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService"><tns:AccountName></tns:AccountName></tns:GetUserProfileByName></SOAP-ENV:Body></SOAP-ENV:Envelope>   2b401d92-bd9b-4fcc-8713-6f89d8d9720e

2011/07/15 10:47:51.65 w3wp.exe(0x1358)                      0x0CF0 SharePoint基础      记录相关数据      xmnv 中等  Site =/ 2b401d92-bd9b-4fcc-8713-6f89d8d9720e

07/15/2011 10:47:51.65 w3wp.exe (0x1358)                       0x0CF0 SharePoint Foundation         Logging Correlation Data       xmnv Medium   Site=/ 2b401d92-bd9b-4fcc-8713-6f89d8d9720e

07/15/2011 10:47:51.66 w3wp.exe(0x1358)                      0x0CF0 SharePoint Portal Server     用户个人资料              olhl 中等  访问被拒绝调用用户0#.w | nt权限\ iusr的Web服务. 2b401d92-bd9b-4fcc-8713-6f89d8d9720e

07/15/2011 10:47:51.66 w3wp.exe (0x1358)                       0x0CF0 SharePoint Portal Server       User Profiles                 olhl Medium   Access denied calling web service for user 0#.w|nt authority\iusr. 2b401d92-bd9b-4fcc-8713-6f89d8d9720e

07/15/2011 10:47:51.66 w3wp.exe(0x1358)                      0x0CF0 SharePoint基础      监视                    b4ly 中等  离开受监视的范围(请求(POST(http://MyTestDomain:80/_vti_bin/UserProfileService.asmx)).执行时间= 13.3408016940701 2b401d92-bd9b-4fcc-8713-6f89d8d9720e

07/15/2011 10:47:51.66 w3wp.exe (0x1358)                       0x0CF0 SharePoint Foundation         Monitoring                     b4ly Medium   Leaving Monitored Scope (Request (POST:http://MyTestDomain:80/_vti_bin/UserProfileService.asmx)). Execution Time=13.3408016940701 2b401d92-bd9b-4fcc-8713-6f89d8d9720e

07/15/2011 10:47:51.66 w3wp.exe(0x1358)                      0x0CEC InfoPath Forms Services      运行时-数据连接    7tfk 中等  在OnLoad期间数据适配器失败:远程服务器返回错误:(500)Internal Server Error.服务器无法处理请求. --->尝试执行未经授权的操作. 0f508bad-b1f4-486b-9368-b17f72a19757

07/15/2011 10:47:51.66 w3wp.exe (0x1358)                       0x0CEC InfoPath Forms Services       Runtime - Data Connections     7tfk Medium   Data adapter failed during OnLoad: The remote server returned an error: (500) Internal Server Error.  Server was unable to process request. ---> Attempted to perform an unauthorized operation. 0f508bad-b1f4-486b-9368-b17f72a19757

07/15/2011 10:47:51.66 w3wp.exe(0x1358)                      0x0CEC InfoPath Forms Services      运行时-数据连接    eq8l 警告 以下查询失败:GetUserProfileByName(用户:0#.w | steinertest \ david.cano,表单名称:UserChangeRequestUsingListTemplate,IP:,连接目标:,请求:http://MyTestDomain/Lists/User Change Request/AllItems.aspx,表单ID:urn:schemas-microsoft-com:office:infopath:UserChangeRequestUsingListTemplate:-dataFormSolution 类型:DataAdapterException,异常消息:远程服务器返回错误:(500)Internal Server Error.服务器无法处理请求. --->试图执行未经授权的操作.远程服务器返回错误:(500) 内部服务器错误.) 0f508bad-b1f4-486b-9368-b17f72a19757

07/15/2011 10:47:51.66 w3wp.exe (0x1358)                       0x0CEC InfoPath Forms Services       Runtime - Data Connections     eq8l Warning The following query failed: GetUserProfileByName (User: 0#.w|steinertest\david.cano, Form Name: UserChangeRequestUsingListTemplate, IP: , Connection Target: , Request: http://MyTestDomain/Lists/User Change Request/AllItems.aspx, Form ID: urn:schemas-microsoft-com:office:infopath:UserChangeRequestUsingListTemplate:-dataFormSolution Type: DataAdapterException, Exception Message: The remote server returned an error: (500) Internal Server Error.  Server was unable to process request. ---> Attempted to perform an unauthorized operation. The remote server returned an error: (500) Internal Server Error.) 0f508bad-b1f4-486b-9368-b17f72a19757

07/15/2011 10:47:51.66 w3wp.exe(0x1358)                      0x0CF0 SharePoint基础      监视                    nasq 中等  进入监视范围(请求(POST(http://MyTestDomain:80/_vti_bin/UserGroup.asmx)))  

07/15/2011 10:47:51.66 w3wp.exe (0x1358)                       0x0CF0 SharePoint Foundation         Monitoring                     nasq Medium   Entering monitored scope (Request (POST:http://MyTestDomain:80/_vti_bin/UserGroup.asmx))  

07/15/2011 10:47:51.66 w3wp.exe(0x1358)                      0x0CF0 SharePoint基础      记录相关数据      xmnv 中等  名称=请求(POST:http://MyTestDomain:80/_vti_bin/UserGroup.asmx) bd7b7358-740b-4bc3-aeb8-3c42c5bec4da

07/15/2011 10:47:51.66 w3wp.exe (0x1358)                       0x0CF0 SharePoint Foundation         Logging Correlation Data       xmnv Medium   Name=Request (POST:http://MyTestDomain:80/_vti_bin/UserGroup.asmx) bd7b7358-740b-4bc3-aeb8-3c42c5bec4da

07/15/2011 10:47:51.66 w3wp.exe(0x1358)                      0x0CF0 SharePoint基础      监视                    b4ly 中等  离开受监视范围(请求(POST(http://MyTestDomain:80/_vti_bin/UserGroup.asmx)).执行时间= 2.04998121269603 bd7b7358-740b-4bc3-aeb8-3c42c5bec4da

07/15/2011 10:47:51.66 w3wp.exe (0x1358)                       0x0CF0 SharePoint Foundation         Monitoring                     b4ly Medium   Leaving Monitored Scope (Request (POST:http://MyTestDomain:80/_vti_bin/UserGroup.asmx)). Execution Time=2.04998121269603 bd7b7358-740b-4bc3-aeb8-3c42c5bec4da

07/15/2011 10:47:51.68 w3wp.exe(0x1358)                      0x0CF0 SharePoint基础      监视                    nasq 中等  进入监视范围(请求(POST(http://MyTestDomain:80/_vti_bin/UserGroup.asmx)))  

07/15/2011 10:47:51.68 w3wp.exe (0x1358)                       0x0CF0 SharePoint Foundation         Monitoring                     nasq Medium   Entering monitored scope (Request (POST:http://MyTestDomain:80/_vti_bin/UserGroup.asmx))  

07/15/2011 10:47:51.68 w3wp.exe(0x1358)                      0x0CF0 SharePoint基础      记录相关数据      xmnv 中等  名称=请求(POST:http://MyTestDomain:80/_vti_bin/UserGroup.asmx) 584ac118-9ad4-4960-9cb2-dc8257ba4f24

07/15/2011 10:47:51.68 w3wp.exe (0x1358)                       0x0CF0 SharePoint Foundation         Logging Correlation Data       xmnv Medium   Name=Request (POST:http://MyTestDomain:80/_vti_bin/UserGroup.asmx) 584ac118-9ad4-4960-9cb2-dc8257ba4f24

07/15/2011 10:47:51.68 w3wp.exe(0x1358)                      0x0CF0 SharePoint基础      监视                    b4ly 中等  离开受监视范围(请求(POST(http://MyTestDomain:80/_vti_bin/UserGroup.asmx)).执行时间= 0.717688980023998 584ac118-9ad4-4960-9cb2-dc8257ba4f24

07/15/2011 10:47:51.68 w3wp.exe (0x1358)                       0x0CF0 SharePoint Foundation         Monitoring                     b4ly Medium   Leaving Monitored Scope (Request (POST:http://MyTestDomain:80/_vti_bin/UserGroup.asmx)). Execution Time=0.717688980023998 584ac118-9ad4-4960-9cb2-dc8257ba4f24

07/15/2011 10:47:51.68 w3wp.exe(0x1358)                      0x0CF0 SharePoint基础      监视                    nasq 中等  进入监视范围(请求(POST(http://MyTestDomain:80/_vti_bin/UserGroup.asmx)))  

07/15/2011 10:47:51.68 w3wp.exe (0x1358)                       0x0CF0 SharePoint Foundation         Monitoring                     nasq Medium   Entering monitored scope (Request (POST:http://MyTestDomain:80/_vti_bin/UserGroup.asmx))  

07/15/2011 10:47:51.68 w3wp.exe(0x1358)                      0x0CF0 SharePoint基础      记录相关数据      xmnv 中等  名称=请求(POST:http://MyTestDomain:80/_vti_bin/UserGroup.asmx) 765027f3-12eb-4cb9-86b6-ff56d751b1c6

07/15/2011 10:47:51.68 w3wp.exe (0x1358)                       0x0CF0 SharePoint Foundation         Logging Correlation Data       xmnv Medium   Name=Request (POST:http://MyTestDomain:80/_vti_bin/UserGroup.asmx) 765027f3-12eb-4cb9-86b6-ff56d751b1c6

07/15/2011 10:47:51.68 w3wp.exe(0x1358)                      0x0CF0 SharePoint基础      常规                      fbv5 中等  SoapAction:"http://schemas.microsoft.com/sharepoint/soap/directory/GetUserCollectionFromGroup"" 765027f3-12eb-4cb9-86b6-ff56d751b1c6

07/15/2011 10:47:51.68 w3wp.exe (0x1358)                       0x0CF0 SharePoint Foundation         General                       fbv5 Medium   SoapAction: "http://schemas.microsoft.com/sharepoint/soap/directory/GetUserCollectionFromGroup" 765027f3-12eb-4cb9-86b6-ff56d751b1c6

07/15/2011 10:47:51.68 w3wp.exe(0x1358)                      0x0CF0 SharePoint基础      常规                      fbv6 中等  <?xml version ="1.0" encoding ="utf-8"?< SOAP-ENV:Envelope xmlns:SOAPSDK1 ="http://www.w3.org/2001/XMLSchema"; xmlns:SOAPSDK2 ="http://www.w3.org/2001/XMLSchema-instance"; xmlns:SOAPSDK3 ="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV ="http://schemas.xmlsoap.org/soap/envelope/"< SOAP-ENV:Body>< ns1:GetUserCollectionFromGroup xmlns:ns1 ="http://schemas.microsoft.com/sharepoint/soap/directory/">< ns1:groupName> IT支持</ns1:groupName></ns1:GetUserCollectionFromGroup></SOAP-ENV:Body</SOAP-ENV:Envelope>   765027f3-12eb-4cb9-86b6-ff56d751b1c6

07/15/2011 10:47:51.68 w3wp.exe (0x1358)                       0x0CF0 SharePoint Foundation         General                       fbv6 Medium   <?xml version="1.0" encoding="utf-8"?><SOAP-ENV:Envelope xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema" xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><ns1:GetUserCollectionFromGroup xmlns:ns1="http://schemas.microsoft.com/sharepoint/soap/directory/"><ns1:groupName>IT Support</ns1:groupName></ns1:GetUserCollectionFromGroup></SOAP-ENV:Body></SOAP-ENV:Envelope>   765027f3-12eb-4cb9-86b6-ff56d751b1c6

07/15/2011 10:47:51.69 w3wp.exe(0x1358)                      0x0CF0 SharePoint基础      记录相关数据      xmnv 中等  Site =/ 765027f3-12eb-4cb9-86b6-ff56d751b1c6

07/15/2011 10:47:51.69 w3wp.exe (0x1358)                       0x0CF0 SharePoint Foundation         Logging Correlation Data       xmnv Medium   Site=/ 765027f3-12eb-4cb9-86b6-ff56d751b1c6

07/15/2011 10:47:51.69 w3wp.exe(0x1358)                      0x0CF0 SharePoint基础      常规                      8e2s 中等  发​​生未知的SPRequest错误.详细信息:0x80070005 765027f3-12eb-4cb9-86b6-ff56d751b1c6

07/15/2011 10:47:51.69 w3wp.exe (0x1358)                       0x0CF0 SharePoint Foundation         General                       8e2s Medium   Unknown SPRequest error occurred. More information: 0x80070005 765027f3-12eb-4cb9-86b6-ff56d751b1c6

07/15/2011 10:47:51.69 w3wp.exe(0x1358)                      0x0CF0 SharePoint基础      常规                      avfx 高    SOAP异常:System.Threading.ThreadAbortException:线程被中止.    在System.Threading.Thread.AbortInternal()处 在System.Threading.Thread.Abort(Object stateInfo)处 在System.Web.HttpResponse.End()    在Microsoft.SharePoint.Utilities.SPUtilityInternal.SendResponse(HttpContext上下文,Int32代码,String strBody)处 在Microsoft.SharePoint.Utilities.SPUtility.HandleAccessDenied(HttpContext上下文)处 在Microsoft.SharePoint.Utilities.SPUtility.HandleAccessDenied(异常 例如)  在Microsoft.SharePoint.Library.SPRequest.GetGroupsDataAsSafeArray(String bstrUrl,UInt32 dwGroupsScope,String bstrValue,UInt32 dwValue,UInt32& pdwColCount,UInt32& pdwRowCount,Object& pvarDataSet)中 在Microsoft.SharePoint.SPGroup.InitMember()    在Microsoft.SharePoint.SPGroup..c ... 765027f3-12eb-4cb9-86b6-ff56d751b1c6

07/15/2011 10:47:51.69 w3wp.exe (0x1358)                       0x0CF0 SharePoint Foundation         General                       avfx High     SOAP exception: System.Threading.ThreadAbortException: Thread was being aborted.     at System.Threading.Thread.AbortInternal()     at System.Threading.Thread.Abort(Object stateInfo)     at System.Web.HttpResponse.End()     at Microsoft.SharePoint.Utilities.SPUtilityInternal.SendResponse(HttpContext context, Int32 code, String strBody)     at Microsoft.SharePoint.Utilities.SPUtility.HandleAccessDenied(HttpContext context)     at Microsoft.SharePoint.Utilities.SPUtility.HandleAccessDenied(Exception ex)     at Microsoft.SharePoint.Library.SPRequest.GetGroupsDataAsSafeArray(String bstrUrl, UInt32 dwGroupsScope, String bstrValue, UInt32 dwValue, UInt32& pdwColCount, UInt32& pdwRowCount, Object& pvarDataSet)     at Microsoft.SharePoint.SPGroup.InitMember()     at Microsoft.SharePoint.SPGroup..c... 765027f3-12eb-4cb9-86b6-ff56d751b1c6

07/15/2011 10:47:51.69 * w3wp.exe(0x1358)                      0x0CF0 SharePoint基础      常规                      avfx 高    ... tor(SPWeb网站,SPSecurableObject范围,SPUser用户,字符串GroupName,Object [,] arrGroupsData,UInt32索引,Int32 iByParamId,SPGroupCollectionType groupCollectionType)   在Microsoft.SharePoint.SPGroupCollection.get_Item(字符串名称)    在Microsoft.SharePoint.SoapServer.UserGroupImpl.GetUserCollectionFromGroup(String strGroupName)处 在Microsoft.SharePoint.SoapServer.UserGroup.GetUserCollectionFromGroup(String groupName) 765027f3-12eb-4cb9-86b6-ff56d751b1c6

07/15/2011 10:47:51.69* w3wp.exe (0x1358)                       0x0CF0 SharePoint Foundation         General                       avfx High     ...tor(SPWeb web, SPSecurableObject scope, SPUser user, String GroupName, Object[,] arrGroupsData, UInt32 index, Int32 iByParamId, SPGroupCollectionType groupCollectionType)     at Microsoft.SharePoint.SPGroupCollection.get_Item(String name)     at Microsoft.SharePoint.SoapServer.UserGroupImpl.GetUserCollectionFromGroup(String strGroupName)     at Microsoft.SharePoint.SoapServer.UserGroup.GetUserCollectionFromGroup(String groupName) 765027f3-12eb-4cb9-86b6-ff56d751b1c6

2011/07/15 10:47:51.71 w3wp.exe(0x1358)                      0x0CF0 SharePoint基础      监视                    b4ly 中等  离开受监视范围(请求(POST(http://MyTestDomain:80/_vti_bin/UserGroup.asmx)).执行时间= 22.1424790022196 765027f3-12eb-4cb9-86b6-ff56d751b1c6

07/15/2011 10:47:51.71 w3wp.exe (0x1358)                       0x0CF0 SharePoint Foundation         Monitoring                     b4ly Medium   Leaving Monitored Scope (Request (POST:http://MyTestDomain:80/_vti_bin/UserGroup.asmx)). Execution Time=22.1424790022196 765027f3-12eb-4cb9-86b6-ff56d751b1c6

2011/07/15 10:47:51.71 w3wp.exe(0x1358)                      0x0CEC InfoPath Forms Services      运行时-数据连接    7tfk 中等  在OnLoad期间数据适配器失败:远程服务器返回错误:(401)未经授权. 0f508bad-b1f4-486b-9368-b17f72a19757

07/15/2011 10:47:51.71 w3wp.exe (0x1358)                       0x0CEC InfoPath Forms Services       Runtime - Data Connections     7tfk Medium   Data adapter failed during OnLoad: The remote server returned an error: (401) Unauthorized. 0f508bad-b1f4-486b-9368-b17f72a19757

2011/07/15 10:47:51.71 w3wp.exe(0x1358)                      0x0CEC InfoPath Forms Services      运行时-数据连接    eq8l 警告 以下查询失败:GetUserCollectionFromGroup(用户:0#.w | steinertest \ david.cano,表单名称:UserChangeRequestUsingListTemplate,IP :,连接目标:,请求:http://MyTestDomain/Lists/用户更改请求/AllItems.aspx,表单ID:urn:schemas-microsoft-com:office:infopath:UserChangeRequestUsingListTemplate:-dataFormSolution 类型:DataAdapterException,异常消息:远程服务器返回错误:(401)未经授权.远程服务器返回错误:(401)未经授权.) 0f508bad-b1f4-486b-9368-b17f72a19757

07/15/2011 10:47:51.71 w3wp.exe (0x1358)                       0x0CEC InfoPath Forms Services       Runtime - Data Connections     eq8l Warning The following query failed: GetUserCollectionFromGroup (User: 0#.w|steinertest\david.cano, Form Name: UserChangeRequestUsingListTemplate, IP: , Connection Target: , Request: http://MyTestDomain/Lists/User Change Request/AllItems.aspx, Form ID: urn:schemas-microsoft-com:office:infopath:UserChangeRequestUsingListTemplate:-dataFormSolution Type: DataAdapterException, Exception Message: The remote server returned an error: (401) Unauthorized. The remote server returned an error: (401) Unauthorized.) 0f508bad-b1f4-486b-9368-b17f72a19757

07/15/2011 10:47:51.77 w3wp.exe(0x1358)                      0x0CEC SharePoint基础      Web控件                  cm8z 中等  无法从GroupID获取SPGroupName.错误消息:找不到组.   Callstack:    at Microsoft.SharePoint.SPGroupCollection.GetByID(Int32 id)   在Microsoft.SharePoint.WebControls.PeopleEditor.set_SharePointGroupID(Int32 值). 0f508bad-b1f4-486b-9368-b17f72a19757

07/15/2011 10:47:51.77 w3wp.exe (0x1358)                       0x0CEC SharePoint Foundation         Web Controls                   cm8z Medium   Failed to get SPGroupName from GroupID. Error Message: Group cannot be found.  Callstack:    at Microsoft.SharePoint.SPGroupCollection.GetByID(Int32 id)     at Microsoft.SharePoint.WebControls.PeopleEditor.set_SharePointGroupID(Int32 value). 0f508bad-b1f4-486b-9368-b17f72a19757

07/15/2011 10:47:51.77 w3wp.exe(0x1358)                      0x0CEC SharePoint基础      Web控件                  cm8z 中等  无法从GroupID获取SPGroupName.错误消息:找不到组.   Callstack:    at Microsoft.SharePoint.SPGroupCollection.GetByID(Int32 id)   在Microsoft.SharePoint.WebControls.PeopleEditor.set_SharePointGroupID(Int32 值). 0f508bad-b1f4-486b-9368-b17f72a19757

07/15/2011 10:47:51.77 w3wp.exe (0x1358)                       0x0CEC SharePoint Foundation         Web Controls                   cm8z Medium   Failed to get SPGroupName from GroupID. Error Message: Group cannot be found.  Callstack:    at Microsoft.SharePoint.SPGroupCollection.GetByID(Int32 id)     at Microsoft.SharePoint.WebControls.PeopleEditor.set_SharePointGroupID(Int32 value). 0f508bad-b1f4-486b-9368-b17f72a19757

07/15/2011 10:47:51.77 w3wp.exe(0x1358)                      0x0CEC SharePoint基础      Web控件                  cm8z 中等  无法从GroupID获取SPGroupName.错误消息:找不到组.   Callstack:    at Microsoft.SharePoint.SPGroupCollection.GetByID(Int32 id)   在Microsoft.SharePoint.WebControls.PeopleEditor.set_SharePointGroupID(Int32 值). 0f508bad-b1f4-486b-9368-b17f72a19757

07/15/2011 10:47:51.77 w3wp.exe (0x1358)                       0x0CEC SharePoint Foundation         Web Controls                   cm8z Medium   Failed to get SPGroupName from GroupID. Error Message: Group cannot be found.  Callstack:    at Microsoft.SharePoint.SPGroupCollection.GetByID(Int32 id)     at Microsoft.SharePoint.WebControls.PeopleEditor.set_SharePointGroupID(Int32 value). 0f508bad-b1f4-486b-9368-b17f72a19757

 

 

我已经尝试过其他论坛上的建议...

I have already tried your suggestion from other forums...

 

首先,我删除了对UserGroup.asmx的调用,并试图单独修复UserProfileService.asmx却没有成功,尽管我将其更改为UDC

First, I removed the call to UserGroup.asmx and tried to fix UserProfileService.asmx alone without success, eventhough I changed it to UDC 

(我检查了数据连接库是否已允许所有用户进行读取访问).

(I checked that the data connection library has allowed read access to all users). 

我知道了:

 

08/03/2011 15:52:37.45 w3wp.exe(0x0C68)                      0x1390 SharePoint基础      记录相关数据      xmnv 中等  名称=请求(POST:http://intranet.steinertest.com:80/_vti_bin/UserProfileService.asmx) d8baffcb-2fef-4b49-9349-90f5650c24b4

08/03/2011 15:52:37.45 w3wp.exe (0x0C68)                       0x1390 SharePoint Foundation         Logging Correlation Data       xmnv Medium   Name=Request (POST:http://intranet.steinertest.com:80/_vti_bin/UserProfileService.asmx) d8baffcb-2fef-4b49-9349-90f5650c24b4

08/03/2011 15:52:37.45 w3wp.exe(0x0C68)                      0x1390 SharePoint Portal Server     用户个人资料              fvg3 中等  SoapAction:"http://microsoft.com/webservices/SharePointPortalServer/UserProfileService/GetUserProfileByName" d8baffcb-2fef-4b49-9349-90f5650c24b4

08/03/2011 15:52:37.45 w3wp.exe (0x0C68)                       0x1390 SharePoint Portal Server       User Profiles                 fvg3 Medium   SoapAction: "http://microsoft.com/webservices/SharePointPortalServer/UserProfileService/GetUserProfileByName" d8baffcb-2fef-4b49-9349-90f5650c24b4

08/03/2011 15:52:37.45 w3wp.exe(0x0C68)                      0x1390 SharePoint Portal Server     用户个人资料              fvg4 中等  <?xml version ="1.0" encoding ="utf-8"?< SOAP-ENV:信封xmlns:SOAPSDK1 ="http://www.w3.org/2001/XMLSchema"; xmlns:SOAPSDK2 ="http://www.w3.org/2001/XMLSchema-instance"; xmlns:SOAPSDK3 ="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV ="http://schemas.xmlsoap.org/soap/envelope/"< SOAP-ENV:Body>< tns:GetUserProfileByName xmlns:tns ="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService"< tns:AccountName> steinertest \ david.cano</tns:AccountName></tns:GetUserProfileByName></SOAP -ENV:Body</SOAP-ENV:Envelope>   d8baffcb-2fef-4b49-9349-90f5650c24b4

08/03/2011 15:52:37.45 w3wp.exe (0x0C68)                       0x1390 SharePoint Portal Server       User Profiles                 fvg4 Medium   <?xml version="1.0" encoding="utf-8"?><SOAP-ENV:Envelope xmlns:SOAPSDK1="http://www.w3.org/2001/XMLSchema" xmlns:SOAPSDK2="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAPSDK3="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><tns:GetUserProfileByName xmlns:tns="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService"><tns:AccountName>steinertest\david.cano</tns:AccountName></tns:GetUserProfileByName></SOAP-ENV:Body></SOAP-ENV:Envelope>   d8baffcb-2fef-4b49-9349-90f5650c24b4

08/03/2011 15:52:37.45 w3wp.exe(0x0C68)                      0x1390 SharePoint基础      记录相关数据      xmnv 中等  Site =/ d8baffcb-2fef-4b49-9349-90f5650c24b4

08/03/2011 15:52:37.45 w3wp.exe (0x0C68)                       0x1390 SharePoint Foundation         Logging Correlation Data       xmnv Medium   Site=/ d8baffcb-2fef-4b49-9349-90f5650c24b4

08/03/2011 15:52:37.47 w3wp.exe(0x0C68)                      0x1390 SharePoint Portal Server     用户个人资料              olhl 中等  访问被拒绝调用用户0#.w | nt权限\ iusr的Web服务. d8baffcb-2fef-4b49-9349-90f5650c24b4

08/03/2011 15:52:37.47 w3wp.exe (0x0C68)                       0x1390 SharePoint Portal Server       User Profiles                 olhl Medium   Access denied calling web service for user 0#.w|nt authority\iusr. d8baffcb-2fef-4b49-9349-90f5650c24b4

08/03/2011 15:52:37.47 w3wp.exe(0x0C68)                      0x1390 SharePoint基础      监视                    b4ly 中等  离开受监视范围(请求(POST:http://intranet.steinertest.com:80/_vti_bin/UserProfileService.asmx)).执行时间= 16.7515703811518 d8baffcb-2fef-4b49-9349-90f5650c24b4

08/03/2011 15:52:37.47 w3wp.exe (0x0C68)                       0x1390 SharePoint Foundation         Monitoring                     b4ly Medium   Leaving Monitored Scope (Request (POST:http://intranet.steinertest.com:80/_vti_bin/UserProfileService.asmx)). Execution Time=16.7515703811518 d8baffcb-2fef-4b49-9349-90f5650c24b4

08/03/2011 15:52:37.47 w3wp.exe(0x0C68)                      0x0F9C InfoPath Forms Services      运行时-数据连接    7tfk 中等  在OnLoad期间数据适配器失败:远程服务器返回错误:(500)Internal Server Error.服务器无法处理请求. --->尝试执行未经授权的操作. ad1a41e2-3310-4224-b02b-d6e8446f9fa3

08/03/2011 15:52:37.47 w3wp.exe (0x0C68)                       0x0F9C InfoPath Forms Services       Runtime - Data Connections     7tfk Medium   Data adapter failed during OnLoad: The remote server returned an error: (500) Internal Server Error.  Server was unable to process request. ---> Attempted to perform an unauthorized operation. ad1a41e2-3310-4224-b02b-d6e8446f9fa3

08/03/2011 15:52:37.47 w3wp.exe(0x0C68)                      0x0F9C InfoPath Forms Services      运行时-数据连接    eq8l 警告 以下查询失败:GetUserProfileByName(用户:0#.w | steinertest \ spinfopathadmin,表单名称:UserChangeRequestUsingListTemplate,IP :,连接目标:http://intranet.steinertest.com/DataConnections/CreditRequestConnection.udcx,请求:http://intranet.steinertest.com/Lists/User 更改Request/AllItems.aspx,表单ID:urn:schemas-microsoft-com:office:infopath:UserChangeRequestUsingListTemplate:-dataFormSolution类型:DataAdapterException,异常消息:远程服务器返回错误:(500)内部服务器错误.服务器 无法处理请求. --->试图执行未经授权的操作.远程服务器返回错误:(500)内部服务器错误.) ad1a41e2-3310-4224-b02b-d6e8446f9fa3

08/03/2011 15:52:37.47 w3wp.exe (0x0C68)                       0x0F9C InfoPath Forms Services       Runtime - Data Connections     eq8l Warning The following query failed: GetUserProfileByName (User: 0#.w|steinertest\spinfopathadmin, Form Name: UserChangeRequestUsingListTemplate, IP: , Connection Target: http://intranet.steinertest.com/DataConnections/CreditRequestConnection.udcx, Request: http://intranet.steinertest.com/Lists/User Change Request/AllItems.aspx, Form ID: urn:schemas-microsoft-com:office:infopath:UserChangeRequestUsingListTemplate:-dataFormSolution Type: DataAdapterException, Exception Message: The remote server returned an error: (500) Internal Server Error.  Server was unable to process request. ---> Attempted to perform an unauthorized operation. The remote server returned an error: (500) Internal Server Error.) ad1a41e2-3310-4224-b02b-d6e8446f9fa3

08/03/2011 15:52:37.49 w3wp.exe(0x0C68)                      0x0F9C SharePoint基础      Web控件                  cm8z 中等  无法从GroupID获取SPGroupName.错误消息:找不到组.   Callstack:    at Microsoft.SharePoint.SPGroupCollection.GetByID(Int32 id)   在Microsoft.SharePoint.WebControls.PeopleEditor.set_SharePointGroupID(Int32 值). ad1a41e2-3310-4224-b02b-d6e8446f9fa3

08/03/2011 15:52:37.49 w3wp.exe (0x0C68)                       0x0F9C SharePoint Foundation         Web Controls                   cm8z Medium   Failed to get SPGroupName from GroupID. Error Message: Group cannot be found.  Callstack:    at Microsoft.SharePoint.SPGroupCollection.GetByID(Int32 id)     at Microsoft.SharePoint.WebControls.PeopleEditor.set_SharePointGroupID(Int32 value). ad1a41e2-3310-4224-b02b-d6e8446f9fa3

08/03/2011 15:52:37.49 w3wp.exe(0x0C68)                      0x0F9C SharePoint基础      Web控件                  cm8z 中等  无法从GroupID获取SPGroupName.错误消息:找不到组.   Callstack:    at Microsoft.SharePoint.SPGroupCollection.GetByID(Int32 id)   在Microsoft.SharePoint.WebControls.PeopleEditor.set_SharePointGroupID(Int32 值). ad1a41e2-3310-4224-b02b-d6e8446f9fa3

08/03/2011 15:52:37.49 w3wp.exe (0x0C68)                       0x0F9C SharePoint Foundation         Web Controls                   cm8z Medium   Failed to get SPGroupName from GroupID. Error Message: Group cannot be found.  Callstack:    at Microsoft.SharePoint.SPGroupCollection.GetByID(Int32 id)     at Microsoft.SharePoint.WebControls.PeopleEditor.set_SharePointGroupID(Int32 value). ad1a41e2-3310-4224-b02b-d6e8446f9fa3

08/03/2011 15:52:37.49 w3wp.exe(0x0C68)                      0x0F9C SharePoint基础      Web控件                  cm8z 中等  无法从GroupID获取SPGroupName.错误消息:找不到组.   Callstack:    at Microsoft.SharePoint.SPGroupCollection.GetByID(Int32 id)

08/03/2011 15:52:37.49 w3wp.exe (0x0C68)                       0x0F9C SharePoint Foundation         Web Controls                   cm8z Medium   Failed to get SPGroupName from GroupID. Error Message: Group cannot be found.  Callstack:    at Microsoft.SharePoint.SPGroupCollection.GetByID(Int32 id)

 

我还检查了NT Authority \ Authenticated Users是否具有用户配置文件服务应用程序"中的读取权限.

I've also checked that NT Authority\Authenticated Users has read permissions in "User Profile Service Application".

我尝试了DisableLoopbackCheck选项

I've tried the DisableLoopbackCheck option

 

我的想法不多了...

I am running out of ideas...

 

谢谢

推荐答案

单击您的UPA,然后通过完全控制"给相应的组权限".我不建议这种方法,但是应该可以.

Click on your UPA then give the appropriate group Permissions with Full Control.  I wouldn't advise this approach, but it should work.


这篇关于将UserProfileService.asmx和UserGroup.asmx与Infopath表单一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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