title: How to use the XmlFormView component displayed Info Path *.xsn file within VisualWebPart
body: <p>I have followed the instructions described in the <a href="http://www.youtube.com/watch?v=Uz3QbQuZYtI" rel="nofollow">Publish a InfoPath 2010 form to Form Library in SharePoint 2010</a> tutorial and successfully published the InfoPath 2010 form in Form Library in SharePoint 2010.</p>
  
  <p>I want to develop a custom VisualWebPart that uses the XmlFormView component displayed Info Path *.xsn file. I have configured my XmlFormView in the following manner:</p>
  
  <pre><code>&lt;cc1:XmlFormView … XsnLocation="/FormServerTemplates/*.xsn"&gt;
  &lt;/cc1:XmlFormView&gt;
  </code></pre>
  
  <p>When I embed my custom VisualWebPart onto any page, I encounter the following error:</p>
  
  <pre><code>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
  </code></pre>