Microsoft JScript runtime error: Could not complete the operation due to error c00ce514
<p>I wrote a file download code but i get this error when i start it in my projects. Only this code works perfectly fine. But in complex project this error occurred. Can you help about it ?
Here is download code</p>

<pre><code>string fileUrl = @filePath + "\\" + _DownloadableProductFileName;
            string newFileName = _DownloadableProductFileName;
            FileStream fs = new FileStream(fileUrl, FileMode.Open, FileAccess.Read);
            byte[] buffer = new byte[(int)fs.Length];
            fs.Read(buffer, 0, (int)fs.Length);
            fs.Close();
            Response.Clear();
            Response.AddHeader("Content-Length", buffer.Length.ToString());
            Response.AddHeader("Content-Disposition", "attachment; filename=" + newFileName);
            Response.BinaryWrite(buffer);
            Response.End();
</code></pre>

<p>And the error code is </p>

<blockquote>
  <p>Microsoft JScript runtime error: Could not complete the operation due to error c00ce514.</p>
</blockquote>

<p>Here error occurs.</p>

<pre><code>get_responseData: function XMLHttpExecutor$get_responseData() {
    /// &lt;value type="String" locid="P:J#Sys.Net.XMLHttpExecutor.responseData"&gt;The text of the response.&lt;/value&gt;
    if (arguments.length !== 0) throw Error.parameterCount();
    if (!this._responseAvailable) {
        throw Error.invalidOperation(String.format(Sys.Res.cannotCallBeforeResponse, 'get_responseData'));
    }
    if (!this._xmlHttpRequest) {
        throw Error.invalidOperation(String.format(Sys.Res.cannotCallOutsideHandler, 'get_responseData'));
    }

    return this._xmlHttpRequest.responseText; //here throw error
},
</code></pre>
