「 SharePoint 2010 のフォーム ライブラリに InfoPath 2010 フォームを発行する」チュートリアルで説明されている手順に従い、 SharePoint 2010 のフォーム ライブラリに InfoPath 2010 フォームを正常に発行しました。
Info Path *.xsn ファイルを表示する XmlFormView コンポーネントを使用するカスタム 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