An unhandled exception has occurred in the form's code - InfoPath Dev
in

InfoPath Dev

An unhandled exception has occurred in the form's code

Last post 03-07-2011 02:34 AM by RobiOne. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 03-02-2011 02:40 AM

    An unhandled exception has occurred in the form's code

    I get this error when I try to preview form. It contains C# code. I'm pretty much sure that I'm missing some C# reference, but I'm not sure which one. I'm not into C# too much so any help would be appreciated.

    Here's detailed error description:

    System.IO.FileNotFoundException
    Could not load file or assembly 'Microsoft.Office.InfoPath.Client.Internal.Host.Interop, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.
       at Microsoft.Office.InfoPath.MsxmlNavigator.CreateNavigator(IntPtr nativeXmlNode, ICLRExtensions extensions, XDocument xdocument, Boolean boolReadOnly)
       at Microsoft.Office.InfoPath.Internal.XmlFormHost.CreateNavigator(Object cur, Boolean boolReadOnly)
       at Microsoft.Office.InfoPath.Internal.DataSourceHost.CreateNavigator()
       at Microsoft.Office.InfoPath.XmlFormHostItem.CreateNavigator()
       at Form_4.FormCode.FormEvents_Loading(Object sender, LoadingEventArgs e)
       at Microsoft.Office.InfoPath.Internal.FormEventsHost.OnLoad(DocReturnEvent pEvent)
       at Microsoft.Office.Interop.InfoPath.SemiTrust._XDocumentEventSink2_SinkHelper.OnLoad(DocReturnEvent pEvent)

  • 03-07-2011 02:26 AM In reply to

    Re: An unhandled exception has occurred in the form's code

    Right, it's looking for 'Microsoft.Office.InfoPath.Client.Internal.Host.Interop. This is a programming issue, not InfoPath. Sorry dude!

    Patrick Halstead
    Project Manager at Qdabra
  • 03-07-2011 02:34 AM In reply to

    Re: An unhandled exception has occurred in the form's code

    It looks like it was Microsoft issue. I had Office 2007 (Infopath 2007) and Office 2010 (Infopath 2010) installed on my PC. It looks like some of .dll files were somehow overwritten or corrupted when i installed Office 2007 after 2010. I'm not exactly sure what happend here, but when I uninstalled both version of Office, and installed just Office 2007 everything woked like a charm.

    Thnx for reply anyway.

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.