Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Working with InfoPath with VSTA and code in the load event

  Asked By: Aaditya    Date: Jan 27    Category: Sharepoint    Views: 2000

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.InvokeBusine
ssLogic(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.C
allFormCodeWithExceptionHandling(UserMessages userMessages, OMCall d)

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

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Working with InfoPath with VSTA and code in the load event Or get search suggestion and latest updates.




Tagged: