繁体   English   中英

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

[英]Can not display form with .net code using InfoPath 2013, getting “Error in the application”

我们有一个Java应用程序,它嵌入了InfoPath ActiveX控件来显示表单。 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可以正常工作,所有其他表单均无法打开,并出现上述错误

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM