<?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: Deploying a browser-enabled Managed Code Form Template</title><link>https://www.infopathdev.com:443/forums/thread/25719.aspx</link><pubDate>Thu, 17 Jan 2008 06:20:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25719</guid><dc:creator>DavidCrabbe</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25719.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=25719</wfw:commentRss><description>&lt;p&gt;Using a web service works fine (eventually... after jumping through UDC hoops and centrally managed data connections).&amp;nbsp; So I&amp;#39;ll adopt that approach for now.&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;David.&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Deploying a browser-enabled Managed Code Form Template</title><link>https://www.infopathdev.com:443/forums/thread/25716.aspx</link><pubDate>Thu, 17 Jan 2008 01:48:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25716</guid><dc:creator>DavidCrabbe</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25716.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=25716</wfw:commentRss><description>&lt;p&gt;Hi Clay,&lt;/p&gt;&lt;p&gt;I&amp;#39;ve previously tried using SPSecurity.RunWithElevatedPrivileges, however I&amp;#39;m not actually interacting with SharePoint from within the form so I don&amp;#39;t think it&amp;#39;ll help me.&amp;nbsp; If I need to have a full trust form, then so be it but I&amp;#39;m just looking for confirmation that this is the case.&lt;/p&gt;&lt;p&gt;I&amp;#39;m going to try the same AD query via a web service and see if it can work without requiring full trust.&lt;/p&gt;&lt;p&gt;Cheers,&lt;/p&gt;&lt;p&gt;David.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Deploying a browser-enabled Managed Code Form Template</title><link>https://www.infopathdev.com:443/forums/thread/25699.aspx</link><pubDate>Wed, 16 Jan 2008 15:41:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25699</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25699.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=25699</wfw:commentRss><description>&lt;p&gt;Hey David.&lt;/p&gt;
&lt;p&gt;DavidAir just posted this link regarding a similar issue, trying to run code in a browser form which requires trust.&amp;nbsp;&amp;nbsp;It might help.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://moldenco.blogspot.com/2007/05/spsecurityrunwithelevatedprivileges-to.html"&gt;http://moldenco.blogspot.com/2007/05/spsecurityrunwithelevatedprivileges-to.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Deploying a browser-enabled Managed Code Form Template</title><link>https://www.infopathdev.com:443/forums/thread/25688.aspx</link><pubDate>Wed, 16 Jan 2008 08:07:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25688</guid><dc:creator>DavidCrabbe</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25688.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=25688</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m just looking to confirm that it is possible to deploy a managed-code form template to InfoPath Forms Services on MOSS 2007 and have it displayed in the browser rather than opening InfoPath when the form makes use of System.DirectoryServices.&lt;/p&gt;&lt;p&gt;As a test, I&amp;#39;ve followed the steps outlined within &lt;a href="http://msdn2.microsoft.com/en-us/library/bb952744.aspx" title="Adding user information..."&gt;http://msdn2.microsoft.com/en-us/library/bb952744.aspx&lt;/a&gt; to extract information from Active Directory for the current user.&amp;nbsp; This form works when previewed or debugged from VSTA.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;To deploy to SharePoint I&amp;#39;ve followed the instructions in this rather informative blog posting: &lt;a href="http://platinumdogs.wordpress.com/2007/12/17/deploy-an-infopath-2007-form-with-managed-code-to-a-browser-enabled-sharepoint-document-library/" title="Deploy an InfoPath 2007 Form with Managed Code to a Browser Enabled Sharepoint Document Library"&gt;http://platinumdogs.wordpress.com/2007/12/17/deploy-an-infopath-2007-form-with-managed-code-to-a-browser-enabled-sharepoint-document-library/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;The deployed form will open and display information on the current user successfully from the Form Template Library within SharePoint, but does so using the InfoPath client application.&amp;nbsp; &lt;/p&gt;&lt;p&gt;Finally I created a new Forms Library on a SharePoint site, added my form as a content type and set the option to have the form open in the browser.&amp;nbsp; Unfortunately I receive the following error upon opening the form:&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight:bold;"&gt; Request for the permission of type &amp;#39;System.DirectoryServices.DirectoryServicesPermission, System.DirectoryServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&amp;#39; failed.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;So, to conclude: the form opens in InfoPath without error, but will not open in IE.&amp;nbsp; I&amp;#39;d just like to know if what I&amp;#39;m trying to do is possible, and, if it is, what is likely to be causing the error observed?&amp;nbsp; Is it likely to be a security/trust issue given that the form works in InfoPath?&amp;nbsp; Do browser-enabled forms require higher trust settings to operate than InfoPath client forms?&amp;nbsp; The form is set to automatically assign the trust level.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;David.&lt;/p&gt;&lt;p&gt;PS. Just as a test, I tried modifying the .NET Framework 2.0 Configuration to be FullTrust for All_Code on the server hosting SharePoint to see if this fixed anything, however it didn&amp;#39;t.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>