Working with InfoPath with VSTA and code in the load event for a browser enalbed form - InfoPath Dev
in

InfoPath Dev

Working with InfoPath with VSTA and code in the load event for a browser enalbed form

Last post 10-26-2008 09:54 AM by Jimmy. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-24-2008 06:41 AM

    Working with InfoPath with VSTA and code in the load event for a browser enalbed form

    All,

      I did all the steps to publish a form with code behind, went through Central Admin, then activated the feature on my site then added the new content type. But when I try to open a new document inthe form library i get this error :

     

    An operations error occurred.


    System.Runtime.InteropServices.COMException (0x80072020): An operations error occurred.

    at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
    at System.DirectoryServices.DirectoryEntry.Bind()
    at System.DirectoryServices.DirectoryEntry.get_AdsObject()
    at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne)
    at System.DirectoryServices.DirectorySearcher.FindOne()
    at WebRequest2.FormCode.FormEvents_Loading(Object sender, LoadingEventArgs e) in C:\infopath\WebRequest2\FormCode.cs:line 206
    at Microsoft.Office.InfoPath.Server.SolutionLifetime.FormEventsHost.<>c__DisplayClass6.<>c__DisplayClassa.<add_Loading>b__3()
    at Microsoft.Office.InfoPath.Server.Util.DocumentReliability.InvokeBusinessLogic(Thunk thunk)
    at Microsoft.Office.InfoPath.Server.SolutionLifetime.FormEventsHost.<>c__DisplayClass6.<add_Loading>b__2(Object sender, LoadingEventArgs e)
    at Microsoft.Office.InfoPath.Server.SolutionLifetime.FormEventsHost.<>c__DisplayClass34.<FireLoadingEvent>b__30()
    at Microsoft.Office.InfoPath.Server.DocumentLifetime.OMExceptionManager.CallFormCodeWithExceptionHandling(UserMessages userMessages, OMCall d)

    An entry has been added to the Windows event log of the server.
    Log ID:5337

  • 10-26-2008 09:54 AM In reply to

    Re: Working with InfoPath with VSTA and code in the load event for a browser enalbed form

    Does your solution access Active Directory by any chance? 0x80072020 seems to be an Active Directory authentication error.  I'm not too well versed in solving authentication problems, but the following might help get you pointed in the right direction:

     http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/browse_thread/thread/329c307f2250deca

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.