title: ASP.NET WebForms: Why can't I download certain files that I've uploaded through my application?
body: <p>I have a simple <code>asp:FileUpload</code> control that saves a file to the server.  It saves the file to disk then creates a path reference to it in the database.  We display these files in a DataGrid using this markup:</p>
  
  <pre><code>&lt;ItemTemplate&gt;
      &lt;a href='&lt;%# MyApp.Global_asax.UploadPath + DataBinder.Eval(Container.DataItem, "FolderName") + "/" +  DataBinder.Eval(Container.DataItem, "FileName") %&gt;' target="_blank"&gt;
          &lt;%# DataBinder.Eval(Container.DataItem, "FileName") %&gt;
      &lt;/a&gt;
  &lt;/ItemTemplate&gt;
  </code></pre>
  
  <p>So, as you can see, it's nothing special.  However, trying to download some files results in this message in IE9:</p>
  
  <pre>The page cannot be found
  The page you are looking for might have been removed, had its name changed, or is temporarily unavailable. </pre>
  
  <p>I get a similar message in FireFox.</p>
  
  <p>So far, this is happening only with <code>.DOTM</code> files.  I thought it could be the file name, so I changed the name to something simple like <code>xxx.dotm</code>, but this still doesn't download.  When I change the extension to <code>TXT</code> so it's <code>xxx.txt</code>, though, I am able to download the file just fine.</p>
  
  <p>Is anyone able to give me an idea as to what's going on here?</p>