Google Analytics İzleme

20 Nisan 2012

infopath 2010 - Log ID:5566 hatası hakkında



Infopath ile UserProfileService.asmx ve UserGroup.asmx web servislerine bağlanan form tasarladım.
Lokalde düzgün çalışırken test sunucunda çalışmayıp, aşağıdaki hata verdi.

Oluşan hata:

An error occurred querying a data source.
Click OK to resume filling out the form. You may want to check your form data for errors.

Error details:
An error occurred while trying to connect to a Web service.
An entry has been added to the Windows event log of the server.
Log ID:5566
Correlation ID:ae3b6f03-b329-42cc-b337-59567e406ddf

Sharepoint sunucuda hata logu detayı :
The following query failed: GetUserProfileByName (User: ISHAKNETWORKS\ishak.kulekci, Form Name: dataownerform export, IP: , Connection Target: , Request: http://testsharepoint.ishak.com.tr/TestTeamSite1/Lists/DataOwner/AllItems.aspx, Form ID: urn:schemas-microsoft-com:office:infopath:dataownerform-export:-dataFormSolution Type: DataAdapterException, Exception Message: The remote server returned an error: (401) Unauthorized. The remote server returned an error: (401) Unauthorized.)

Çözümü:
Bunun için test sunucusunda registry'de DisableLoopback ayarı yaptım, sorun düzeldi.
Nasıl yapıldığını kaynak linklerden yapabilirsiniz.
Ayrıca infopath formunu Windows authentication olarak ayarlanmış sharepoint web application'da yaptığımı belirteyim. Claim based authentication olduğunda sorun düzelmiyor olabilir.

Kaynak:
http://sharepointconnoisseur.blogspot.com/2011/04/how-to-resolve-401-unauthorized-error.html
http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/544a81dc-214a-4caf-aa42-fc9dec796882/

Başka çözümler de belirtilmiş fakat denemedim, belki deneyebilirsiniz:

c:\windows\system32\drivers\etc\hosts.
and add an entry on each server pointing to itself. For example, if you have two web servers, Server1 on 192.168.0.10 and Server2 on 192.168.0.11 your host file entry on Server1 would be:
192.168.0.10 your.sharepoint.address
and on Server2:
192.168.0.11 your.sharepoint.address


---
Hi all
this error occurred when info path form can't connect with users profile (XML web service doesn't work) to prevent this you should add a new URL path in the alternate access mapping.
you should set your computer name as default Zone and in the internet zone use the ip address.
EX
URL http://sharePointServerName/    Zone Default
URL  http://192.168.1.1(Server IP)/    Zone Internet 


---


---
When you connect to a Web service by using an InfoPath 2010 form that contains sandboxed code, the data that is returned is incorrect, or you receive an error message



--

Hiç yorum yok: