Exception when download file in asp.net
<p>Hi All 
i want to download file form asp.net page but when this Exception Message appear</p>

<p>"Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack when download file".</p>

<p>Note : i but my code in static Methods </p>

<pre><code>current.Response.AddHeader("content-disposition", "attachment; filename=" +  
  Path.GetFileName(FileName)); 
sourceFile = new FileStream(FileName, FileMode.Open); 
long FileSize; 
FileSize = sourceFile.Length; 
byte[] getContent = new byte[(int)FileSize]; 
sourceFile.Read(getContent, 0, (int)sourceFile.Length);
</code></pre>
