How to fix "The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))"
                        -Friday, December 16, 2011
                    
                    
                    
    written by Lavish Kumar
                        Solution for an error message saying:
Server Error in '/' Application. 
Exception Details: System.Runtime.InteropServices.COMException: The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))
Source Error:
    
        
Stack Trace:
    
        
                    
                    
                                       
                    Server Error in '/' 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))
Source Error:
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. | 
        
Stack Trace:
             |