HAP 7.6 - The Handle is invalid on file download
I have updated to the 7.6 version this morning and once again we have a broken file download. It is a different exception to the last time - maybe because the dll you gave me last time fixed that?
Anyway, below is the exception.
Server Error in '/HAP' Application.
The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Runtime.InteropServices.COMException: The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
[COMException (0x80070006): The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))]
[HttpException (0x80004005): An error occurred while communicating with the remote host. The error code is 0x80070006.]
System.Web.Hosting.IIS7WorkerRequest.RaiseCommunic ationError(Int32 result, Boolean throwOnDisconnect) +4097548
System.Web.Hosting.IIS7WorkerRequest.FlushCore(Boo lean keepConnected, Int32 numBodyFragments, IntPtr bodyFragments, Int32 bodyFragmentLengths, Int32 bodyFragmentTypes) +138
System.Web.Hosting.IIS7WorkerRequest.FlushCachedRe sponse(Boolean isFinal) +816
System.Web.HttpResponse.UpdateNativeResponse(Boole an sendHeaders) +1158
System.Web.HttpRuntime.FinishRequestNotification(I IS7WorkerRequest wr, HttpContext context, RequestNotificationStatus& status) +320
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.237