title: how to use unity3d webgl content in a asp.net mvc view?
body: <p>I have a unity webgl project and an asp.net mvc project.</p>
  
  <p>I need to show the webgl content in a view.</p>
  
  <p>The first thing that came to my mind was to simply copy the content of the 
  index.html that unity gave me and paste it in a .cshtml file and change the addresses. But when I do this the incorrect header error pops up.</p>
  
  <p>Am I doing some thing wrong or everything wrong. should I change my method entirely?</p>
  
  <p>I also added these file extensions to the web.config</p>
  
  <pre><code>&lt;staticContent&gt;
    &lt;!-- Unity 5.x --&gt;
    &lt;remove fileExtension=".mem" /&gt;
    &lt;mimeMap fileExtension=".mem" mimeType="application/octet-stream" /&gt;
    &lt;remove fileExtension=".data" /&gt;
    &lt;mimeMap fileExtension=".data" mimeType="application/octet-stream" /&gt;
    &lt;remove fileExtension=".memgz" /&gt;
    &lt;mimeMap fileExtension=".memgz" mimeType="application/octet-stream" /&gt;
    &lt;remove fileExtension=".datagz" /&gt;
    &lt;mimeMap fileExtension=".datagz" mimeType="application/octet-stream" /&gt;
    &lt;remove fileExtension=".unity3dgz" /&gt;
    &lt;mimeMap fileExtension=".unity3dgz" mimeType="application/octet-stream" /&gt;
    &lt;remove fileExtension=".jsgz" /&gt;
    &lt;mimeMap fileExtension=".jsgz" mimeType="application/x-javascript; charset=UTF-8" /&gt;
  &lt;/staticContent&gt;
  </code></pre>