代码之家  ›  专栏  ›  技术社区  ›  Tono Wiedermann

无法使用InfoPath 2013显示带有.net代码的表单,得到“应用程序出错”

  •  0
  • Tono Wiedermann  · 技术社区  · 9 年前

    我们有一个嵌入InfoPath ActiveX控件以显示表单的java应用程序。InfoPath 2010一切正常。

    当我使用IP2013时,我只能打开不包含.NET代码的表单。当我试图打开包含.NET代码的表单时,我得到以下错误

    (InfoPath:0x80043004) InfoPath cannot open the following file: path\to\file.
    The form cannot be opened. To fix this problem, contact the form designer.
    ??
    Form template: file:///path\to\template.xsn
    InfoPath cannot open the selected form because of an error in the form's code.
    Error in the application.
    

    错误的确切含义是什么?我找不到错误代码或消息的解释。我能做些什么来解决这个问题?

    我运行的一些背景和测试:我有3个表格

    1. 使用.NET 3.5在IP2007中创建的表单
    2. 使用.NET 3.5在IP2010中创建的表单
    3. 使用.NET 4.5在IP2013中创建的表单
    4. 在没有.NET代码的任何版本的InfoPath中创建的表单

    当我直接在InfoPath中打开表单时,一切都正常。当我使用InfoPath ActiveX在java应用程序中打开表单时,我得到以下信息

    • InfoPath 2010-表单1、2和4正常工作,表单3失败(这是预期的)
    • InfoPath 2013-表单4工作正常,所有其他表单都无法打开,出现上述错误
    1 回复  |  直到 9 年前
        1
  •  0
  •   Tono Wiedermann    8 年前

    这是Microsoft的错误,特别是在CLRLOADER.DLL中。安装最新的service Pack和修补程序(KB3039714帮助我)解决了问题