我已按照将 InfoPath 2010 表单发布到 SharePoint 2010 中的表单库教程中描述的说明,并在 SharePoint 2010 中的表单库中成功发布了 InfoPath 2010 表单。
我想开发一个使用 XmlFormView 组件显示的 Info Path *.xsn 文件的自定义 VisualWebPart。我以下列方式配置了我的 XmlFormView:
<cc1:XmlFormView … XsnLocation="/FormServerTemplates/*.xsn">
</cc1:XmlFormView>
当我将自定义 VisualWebPart 嵌入到任何页面时,我遇到以下错误:
w3wp.exe (0x1454)
0x1594
InfoPath Forms Services
Runtime
e568
Verbose
Unexpected exception while getting file at:
http://SharePointUrl/FormServerTemplates/*.xsn.
Exception of type:SPException. Message:Cannot open file "FormServerTemplates/*.xsn".be9cb443-292a-4c80-9188-06a01e6393c5