.NET Access automation with Access 2007 Runtime
        Posted  
        
            by Robert Morgan
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Robert Morgan
        
        
        
        Published on 2010-03-25T10:48:11Z
        Indexed on 
            2010/03/25
            10:53 UTC
        
        
        Read the original article
        Hit count: 1342
        
I'm having trouble deploying .NET application which uses Microsoft Access automation.
I've installed the Access 2007 Runtime and Primary Interop Assemblies (PIAs) on the target machine:
However, when I try to create the ApplicationClass:
Application access = new ApplicationClass();
I get the following exception:
Unhandled Exception: System.Runtime.InteropServices.COMException (0x80080005): Retrieving the COM class factory for component with CLSID {73A4C9C1-D68D-11D0-98BF-00A0C90DC8D9} failed due to the following error: 80080005.
I've googled the error code and tried tweaking the security settings in dcomcnfg, to no avail.
Any ideas?
I don't want to install the full version of Access due to the cost, and the runtime should at least be able to create an instance of the application, surely?
© Stack Overflow or respective owner