<?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: Event ID: 5337 - Business logic failed due to an exception.</title><link>https://www.infopathdev.com:443/forums/thread/44992.aspx</link><pubDate>Mon, 27 Jul 2009 12:42:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44992</guid><dc:creator>a.goodwin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44992.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=44992</wfw:commentRss><description>&lt;p&gt;Domain Trust was working previously with the form even with code. After some tweaks to the code it seems it doesn&amp;#39;t like it any more. I&amp;#39;ve since republished the form with Full Trust and converted data connections.&lt;/p&gt;
&lt;p&gt;It fails with the following error:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;System.Net.WebException: The remote server returned an error: (500) Internal Server Error. &lt;br /&gt;at System.Net.HttpWebRequest.GetResponse() &lt;br /&gt;at Microsoft.Office.InfoPath.Server.SolutionLifetime.WebServiceHelper.GetResponseHelper(WebRequest request, DataAdapterTimer dataAdapterTimer, DataAdapterCredentials credentials, Stopwatch timer, ExecWebRequestExceptionState state, String adapterName, Boolean isQuery) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.SolutionLifetime.WebServiceHelper.ExecWebRequestSync(XPathNavigator inputSubDOM, Boolean[] inputUseDataset, XPathNavigator resultsSubDOM, Boolean resultUseDataset, XPathNavigator errorsSubDOM, Uri serviceUrl, Uri soapAction, Int64 timeOutMillisec, Solution solution, Document document, String name, Boolean isQuery, DataAdapterTimer dataAdapterTimer, DataAdapterCredentials credentials, Boolean useDcl, Boolean useProxy, Boolean useSelf)&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;An entry has been added to the Windows event log on the server.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Event ID:5337&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Further reading reveals:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Event Type:&amp;nbsp;Warning&lt;br /&gt;Event Source:&amp;nbsp;Office SharePoint Server&lt;br /&gt;Event Category:&amp;nbsp;Forms Services Runtime - Business Logic &lt;br /&gt;Event ID:&amp;nbsp;5337&lt;br /&gt;Date:&amp;nbsp;&amp;nbsp;2009-07-27&lt;br /&gt;Time:&amp;nbsp;&amp;nbsp;13:54:58&lt;br /&gt;User:&amp;nbsp;&amp;nbsp;N/A&lt;br /&gt;Computer:&amp;nbsp;&amp;lt;servername&amp;gt;&lt;br /&gt;Description:&lt;br /&gt;Business logic failed due to an exception. (User: DOMAIN\username, Form Name: Formname_v.0.3, IP: , Request: &lt;/em&gt;&lt;a href="http://address.domain.com/_layouts/FormServer.aspx?XsnLocation=http://address.domain.com/FormServerTemplates/Formname_v.0.3.xsn&amp;amp;SaveLocation=http://address.domain.com/FormLibrary&amp;amp;Source=http://address.domain.com/FormLibrary/Forms/AllItems.aspx&amp;amp;DefaultItemOpen=1"&gt;&lt;em&gt;http://address.domain.com/_layouts/FormServer.aspx?XsnLocation=http://address.domain.com/FormServerTemplates/Formname_v.0.3.xsn&amp;amp;SaveLocation=http://address.domain.com/FormLibrary&amp;amp;Source=http://address.domain.com/FormLibrary/Forms/AllItems.aspx&amp;amp;DefaultItemOpen=1&lt;/em&gt;&lt;/a&gt;&lt;em&gt;, Form ID: urn:schemas-microsoft-com:office:infopath:Formname-v-0-3:-myXSD-2009-05-13T13-53-20, Type: WebException, Exception Message: The remote server returned an error: (500) Internal Server Error.&lt;br /&gt;Server was unable to process request. --&amp;gt; Index was outside the bounds of the array.&lt;br /&gt;The remote server returned an error: (500) Internal Server Error.&lt;br /&gt;Server was unable to process request. --&amp;gt; Index was outside the bounds of the array.)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;For more information, see Help and Support Center at &lt;/em&gt;&lt;a href="http://go.microsoft.com/fwlink/events.asp"&gt;&lt;em&gt;http://go.microsoft.com/fwlink/events.asp&lt;/em&gt;&lt;/a&gt;&lt;em&gt;.&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;br /&gt;Which is essentially the same as the previous event error &amp;amp; leaves me none the wiser really...&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Event ID: 5337 - Business logic failed due to an exception.</title><link>https://www.infopathdev.com:443/forums/thread/44275.aspx</link><pubDate>Tue, 14 Jul 2009 02:30:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44275</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44275.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=44275</wfw:commentRss><description>&lt;p&gt;I thought browser forms with managed code required Full Trust and administrative approval.&amp;nbsp; You say you&amp;#39;re using Domain Trust with a code-based browser form?&lt;/p&gt;
&lt;p&gt;Since the preview works, then it&amp;#39;s definitely a permissions issue with one of the data connections - likely the custom one.&amp;nbsp; The error is pointing to the user that&amp;#39;s trying to access the data source is not allowed.&amp;nbsp; Are both of your data connections converted to UDC files?&amp;nbsp; To avoid double-hop from browser forms, you sometimes have to also create an SSO app definition so that the credentials can be passed to that other data souce via the web service.&lt;/p&gt;</description></item><item><title>Event ID: 5337 - Business logic failed due to an exception.</title><link>https://www.infopathdev.com:443/forums/thread/44213.aspx</link><pubDate>Mon, 13 Jul 2009 14:42:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:44213</guid><dc:creator>a.goodwin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/44213.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=44213</wfw:commentRss><description>&lt;span style="COLOR:black;FONT-SIZE:10pt;mso-bidi-font-size:11.0pt;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri;mso-themecolor:text1;mso-ansi-language:EN-US;"&gt;&lt;font face="Calibri"&gt;I&amp;#39;m getting problems with an admin published form using managed code. The&amp;nbsp;preview in InfoPath&amp;nbsp;works fine but the published form fails when opening with event ID 5337. The server application log has the following entry:&lt;br /&gt;&lt;br /&gt;Event Type:&amp;nbsp;Warning&lt;br /&gt;Event Source:&amp;nbsp;Office SharePoint Server&lt;br /&gt;Event Category:&amp;nbsp;Forms Services Runtime - Business Logic &lt;br /&gt;Event ID:&amp;nbsp;5337&lt;br /&gt;Date:&amp;nbsp;&amp;nbsp;2009-07-09&lt;br /&gt;Time:&amp;nbsp;&amp;nbsp;14:37:09&lt;br /&gt;User:&amp;nbsp;&amp;nbsp;N/A&lt;br /&gt;Computer:&amp;nbsp;SERVERNAME&lt;br /&gt;Description:&lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR:black;FONT-SIZE:10pt;mso-bidi-font-size:11.0pt;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri;mso-themecolor:text1;mso-ansi-language:EN-US;"&gt;&lt;font face="Calibri"&gt;Business logic failed due to an exception.&lt;/font&gt;&lt;/span&gt;&lt;font face="Calibri"&gt;&lt;span style="COLOR:black;FONT-SIZE:10pt;mso-bidi-font-size:11.0pt;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri;mso-themecolor:text1;mso-ansi-language:EN-US;"&gt;User:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DOMAIN\username, &lt;br /&gt;Form Name:&amp;nbsp;&amp;nbsp;&amp;nbsp;FormName, &lt;br /&gt;IP: , &lt;br /&gt;Request: &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="COLOR:black;FONT-SIZE:10pt;mso-bidi-font-size:11.0pt;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri;mso-themecolor:text1;"&gt;&lt;a href="http://address.domain.com/_layouts/FormServer.aspx?XsnLocation=http://address.domain.com/FormServerTemplates/FormName.xsn&amp;amp;SaveLocation=http://address.domain.com/FormLibrary&amp;amp;Source=http://address.domain.com/FormLibrary/Forms/AllItems.aspx&amp;amp;DefaultItemOpen=1"&gt;&lt;span style="mso-ansi-language:EN-US;"&gt;&lt;font color="#0000ff"&gt;http://address.domain.com/_layouts/FormServer.aspx?XsnLocation=http://address.domain.com/FormServerTemplates/FormName.xsn&amp;amp;SaveLocation=http://address.domain.com/FormLibrary&amp;amp;Source=http://address.domain.com/FormLibrary/Forms/AllItems.aspx&amp;amp;DefaultItemOpen=1&lt;/font&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/font&gt;&lt;span style="COLOR:black;FONT-SIZE:10pt;mso-bidi-font-size:11.0pt;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri;mso-themecolor:text1;mso-ansi-language:EN-US;"&gt;&lt;font face="Calibri"&gt;, &lt;br /&gt;Form ID: &amp;nbsp;&amp;nbsp;urn:schemas-microsoft-com:office:infopath:FormName:-myXSD-2009-05-13T13-53-20, &lt;br /&gt;Type: &amp;nbsp;&amp;nbsp;&amp;nbsp;WebException, &lt;br /&gt;Exception Message: &amp;nbsp;Security Restrictions on the server are preventing the data connection being used.&amp;nbsp;&amp;nbsp; (translated from Swedish so this might not be 100% accurate to the standard MS error)&lt;/font&gt;&lt;/span&gt; 
&lt;p style="MARGIN-BOTTOM:12pt;"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;COLOR:black;FONT-SIZE:8pt;mso-ansi-language:EN-US;"&gt;--&lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN-BOTTOM:12pt;"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;COLOR:black;FONT-SIZE:8pt;mso-ansi-language:EN-US;"&gt;Continuing to open the form shows the form as expected but the lookup fields are not populated from the secondary data source.&lt;br /&gt;There are two data sources accessed via webservices:&lt;br /&gt;1st. SharePoint UserProfileService.asmx&lt;br /&gt;2nd. the clients own custom webservice to a data source retaining orginisation data similar to Active Directory&lt;br /&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;COLOR:black;FONT-SIZE:8pt;mso-ansi-language:EN-US;"&gt;&lt;br /&gt;I can access the webservices directly (from the server) without problems, using the same logged in user ID.&lt;br /&gt;The webservices have not been changed.&lt;br /&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;COLOR:black;FONT-SIZE:8pt;mso-ansi-language:EN-US;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;COLOR:black;FONT-SIZE:8pt;mso-ansi-language:EN-US;"&gt;The form is published to MOSS with Domain trust.&lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN-BOTTOM:12pt;"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;COLOR:black;FONT-SIZE:8pt;mso-ansi-language:EN-US;"&gt;The previous version of the form worked as expected.&lt;br /&gt;The latest version of the form has had the code updated to better present the returned data from the 2nd data source&amp;nbsp;and throws the error above.&lt;/span&gt;&lt;/p&gt;
&lt;p style="MARGIN-BOTTOM:12pt;"&gt;&lt;span style="FONT-FAMILY:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;COLOR:black;FONT-SIZE:8pt;mso-ansi-language:EN-US;"&gt;I&amp;#39;ve read other forums suggesting the win2k3 server loopback check is blocking this but I don&amp;#39;t want to go messing with the registry until I&amp;#39;ve exhausted other avenues.&lt;br /&gt;&lt;br /&gt;Any ideas would be greatly appreciated!&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>