Infopath cannot open the selected form error when using any code - InfoPath Dev
in

InfoPath Dev

Infopath cannot open the selected form error when using any code

Last post 04-07-2010 10:24 PM by Qazi Anis. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 04-01-2010 01:11 PM

    Infopath cannot open the selected form error when using any code

    So it looks like I get an error anytime I use code in a form.  I created a form and added a button and added code behind the button for a clicked event.

    Code:

    Public Sub CTRL1_5_Clicked(ByVal sender As Object, ByVal e As ClickedEventArgs)

    MessageBox.Show("Hello World")

    End Sub

    And then when trying to preview I get the error 'Infopath cannot open the selected form'.  I've tried messing with the trust settings and deleting the cache with no luck.  The code will compile with no errors and then the form errors out.

     

  • 04-07-2010 03:54 PM In reply to

    Re: Infopath cannot open the selected form error when using any code

    Try opening the published template (publish locally, then just open, not in design mode). Sometimes you can get a better error message that way. Are you using VSTA (comes with IP 2007) or Visual Studio? Does it happen with all forms, so if you close up everything and create a new template, does it happen?

    Hilary Stoupa

  • 04-07-2010 10:24 PM In reply to

    Re: Infopath cannot open the selected form error when using any code

    try setting the form trust settings to full and sign the template

    Qazi Anis
    Technical Architect
    Bitwise Inc
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.