Hello Experts,
Is there a way to fetch User profile info on InfoPath web forms?? I know that using GetUserProfileByName Webservice, we can fetch loggedin user details on the Client Based Infopath forms. I want the same feature on Web forms as well. I tried to follow the steps present in http://blogs.microsoft.co.il/blogs/itaysk/archive/2007/04/05/InfoPath-_2D00_-Get-the-current-user-without-writing-code.aspx . I want exact same functionality on Infopath webforms. I am using Infopath 2010 with Sharepoint 2010 (with form services enabled). I am getting the below error message when I try to fetch logged In user data using Webforms


Complete Error Message:
A query to retrieve form data cannot be completed because this action would violate cross-domain restrictions.
If this form template is published to a SharePoint document library, cross-domain access for user form templates must be enabled under InfoPath Forms Services in SharePoint Central Administration, and the data connection settings must be stored in a UDC file in a data connection library in the same site collection.
If this is an administrator-approved form template, the security level of the form must be set to full trust, or the data connection settings must be stored in a UDC file by using the Manage data connection files option under InfoPath Forms Services in SharePoint Central Administration.
An entry has been added to the Windows event log of the server.
Log ID:6932
Correlation ID:793cb458-afbc-4ac4-b278-cade6752c4ce
Once I click on OK, then form will open but without fetching loggedIn user information.I have gone through few sites which says that I have to use dataconnection library to fix this problem. I tried it but no use. Could you please provide step by step procedure on how to fix this problem???
Please help me with it.
Regards
Basha