<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Calling Userprofile web service from Infopath Sandbox solution failing</title><link>https://www.infopathdev.com:443/forums/thread/73070.aspx</link><pubDate>Mon, 19 Dec 2011 13:24:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73070</guid><dc:creator>rocky</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73070.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=73070</wfw:commentRss><description>&lt;p&gt;Hi ErnestoM, Thanks for you reply,.. I have read on MSDN same that in sandbox the request that will go to web service from Infopath will go by service account which is running SharePoint 2010 COde Host service....&lt;/p&gt;
&lt;p&gt;But to my surprise I found that&amp;nbsp;in IIS&amp;nbsp;LOGS that request is going on behalf of user only&amp;nbsp;.................. we have directly published the form from Infopath using domain trust and &amp;nbsp;restored the backup of site to production... and the FORM which has code behind the request are actually going with service account which is running Sandbox service....it is givign us lot of headache...&amp;nbsp;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Calling Userprofile web service from Infopath Sandbox solution failing</title><link>https://www.infopathdev.com:443/forums/thread/73065.aspx</link><pubDate>Mon, 19 Dec 2011 11:30:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73065</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73065.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=73065</wfw:commentRss><description>&lt;p&gt;Please try admin-deploying the form instead of sandboxing, and let us know how that goes. &lt;/p&gt;&lt;p&gt;When sandboxing, SharePoint uses a service account, which means if you call a web service such as the UserProfile it fails. We&amp;#39;ve seen this with our own DBXL web services and the solution is to admin-deploy.&lt;/p&gt;&lt;p&gt;Since you mention UDC files, I wonder if&amp;nbsp; something could be done (via UDC files, or changing some SharePoint service account) to remedy this. But, as of right now, we haven&amp;#39;t found a solution other than admin-deploy.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Calling Userprofile web service from Infopath Sandbox solution failing</title><link>https://www.infopathdev.com:443/forums/thread/73057.aspx</link><pubDate>Sun, 18 Dec 2011 08:14:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73057</guid><dc:creator>rocky</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73057.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=73057</wfw:commentRss><description>&lt;p&gt;Hi We are badly stuck in this issue :) Any pointers would be of great help&lt;/p&gt;
&lt;p&gt;We have created two Infopath 2010 forms each deployed in separate site collection,&lt;/p&gt;
&lt;p&gt;Form 1: It has code behind , deployed as sadnbox solution&lt;/p&gt;
&lt;p&gt;Form 2 : No Code behind and deployed as sandbox solution&lt;/p&gt;
&lt;p&gt;In testing env both are workign fine but in production FORM 2 is not working.&lt;/p&gt;
&lt;p&gt;Issue : We are calling user profile web service on form load in both teh forms using data connections and UDCX files. but in form 2 teh call to web service is failing frequently, means 1 out of 7 times it passes and forms opens up but most of teh time it says &amp;quot; Error in querying datasource&amp;quot; , checked logs it is logging &amp;quot;Unathorized access 401&amp;quot;. It is not issue with userprofile web service but if I call any other webservice the behavior is same ? and if it is something related to env then why the Infopath form with code is working....?&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Code in form 1 is just retrieving some list items and populating controls. Rest everythign is same for both forms.&lt;/p&gt;
&lt;p&gt;The test and production env are load balanced env. and kerberos is gettign used, also checked teh loopback thing, it is fine.&lt;/p&gt;
&lt;p&gt;In fuurther analysis, I deployed to dummy forms in production, ( sandbox sol )&amp;nbsp;one with code and one without&amp;nbsp;code, I only put call to&amp;nbsp;userprofile web service&amp;nbsp;in both forms using dataconnection, teh form with code has some dummy code&amp;nbsp;written to populate a text box&amp;nbsp;on form load event ....I found that form with code&amp;nbsp;is working but&amp;nbsp;without code nt working ....&amp;nbsp;why this form with code is working ...always ? &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>