<?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>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Infopath forms published to MOSS 2007 (administrator approved form template)</title><link>https://www.infopathdev.com:443/forums/thread/52375.aspx</link><pubDate>Wed, 03 Mar 2010 10:14:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:52375</guid><dc:creator>ajewahar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/52375.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=52375</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have created a form which contains code to retreive user information from Active Directory. When I run the code from Infopath 2007 it is working fine.&amp;nbsp;Also publish the form to Sharepoint 2007 server .&amp;nbsp;Published with following&lt;/p&gt;
&lt;p&gt;&amp;nbsp;-&amp;nbsp; &amp;quot;Enable this form to be filled out by Web browser&amp;quot;&lt;/p&gt;
&lt;p&gt;-&amp;nbsp;&amp;nbsp; Adminsirator Apporved form tempate.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After apublish, I have activated this&amp;nbsp;form from Shareporint Cental Adminsiration.&lt;/p&gt;
&lt;p&gt;However, when I&amp;nbsp;run this form from Sharepoint, I am getting following error... Looks like some permission issues to&amp;nbsp;retireve the informationf&amp;nbsp;from Active Directory. Is there any changes needed in web.config&amp;nbsp; file as well in the Site directoy security. At the moment in site&amp;nbsp;directory security, only&amp;nbsp;&amp;quot;windows integrated authenticaion&amp;quot;&amp;nbsp;has been selected. eveything else&amp;nbsp;is &amp;quot;not selected&amp;quot;. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kinldy help... below is the error message I am getting...&lt;/p&gt;
&lt;p&gt;My objective of this form is to extract user information from Active Directory to a &amp;quot;form&amp;quot;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;An operations error occurred. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;System.Runtime.InteropServices.COMException (0x80072020): An operations error occurred. &lt;br /&gt;&lt;br /&gt;at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) &lt;br /&gt;at System.DirectoryServices.DirectoryEntry.Bind() &lt;br /&gt;at System.DirectoryServices.DirectoryEntry.get_AdsObject() &lt;br /&gt;at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne) &lt;br /&gt;at System.DirectoryServices.DirectorySearcher.FindOne() &lt;br /&gt;at HSSEQ_GatePassTest.FormCode.btnGetUserInfo_Clicked(Object sender, ClickedEventArgs e) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.SolutionLifetime.ButtonEventHost.&amp;lt;&amp;gt;c__DisplayClass6.&amp;lt;&amp;gt;c__DisplayClassa.&amp;lt;add_Clicked&amp;gt;b__3() &lt;br /&gt;at Microsoft.Office.InfoPath.Server.Util.DocumentReliability.InvokeBusinessLogic(Thunk thunk) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.SolutionLifetime.ButtonEventHost.&amp;lt;&amp;gt;c__DisplayClass6.&amp;lt;add_Clicked&amp;gt;b__2(Object sender, ClickedEventArgs e) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.SolutionLifetime.ButtonEventHost.FireClickedEvent(Object sender, ClickedEventArgs args) &lt;br /&gt;at Microsoft.Office.InfoPath.Server.SolutionLifetime.ButtonFormCode.&amp;lt;&amp;gt;c__DisplayClass2.&amp;lt;&amp;gt;c__DisplayClass5.&amp;lt;Click&amp;gt;b__1() &lt;br /&gt;at Microsoft.Office.InfoPath.Server.DocumentLifetime.OMExceptionManager.CallFormCodeWithExceptionHandling(UserMessages userMessages, OMCall d)&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div&gt;An entry has been added to the Windows event log of the server. &lt;/div&gt;</description></item></channel></rss>