Error when trying to stream file for download using ASP.NET
<p>Below is my code to download at client when user click on a download link</p>

<pre><code>Response.AppendHeader("Content-Disposition", "attachment; 
                       filename=.pdf");

Response.TransmitFile(FileName);

Response.End();
</code></pre>

<p>Content Types are of different:
pdf,word,swf,.zip,ppt,xls</p>

<p>But i'm getting the same issue as attached<img src="http://i.stack.imgur.com/O7yN1.png" alt="enter image description here">.</p>
