Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 12th, 2007, 08:25 AM
Registered User
 
Join Date: Apr 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Late Binding with COM DLL

I am using DLL By name Interop.AMK_MSO300Lib.dll,In C#.net to get Late Binding

When I run Following code:
Assembly myAsm = Assembly.LoadFro("C:\\webaspdotnet\\visualstudio20 05\\BioMetric\\Bin\\Interop.AMK_MSO300Lib.dll");

Type[] types = myAsm.GetTypes();

in types I found all the class of the Interop.AMK_MSO300Lib.dll

but while creating instances with Following code:

 foreach (Type typ in types)
            {
                object obj = Activator.CreateInstance(typ);
                        prob
            }

I got the Following Error:
Creating an instance of the COM component with CLSID {E33C0B90-B568-4308-9F51-12A4BFEDC466} from the IClassFactory failed due to the following error: 80004005
06fa2d94-aad0-366c-8f08-0561a252b8e3,28e89a9f-e67d-3028-aa1b-e5ebcde6f3c8

And I tried With Following Code:
object myObject = Activator.CreateComInstanceFrom("C:\\webaspdotnet\ \visualstudio2005\\BioMetric\\Bin\\Interop.AMK_MSO 300Lib.dll", "TestObject.TestClassClass").Unwrap();

Even then I use to get same error as below

Following Error:
Creating an instance of the COM component with CLSID {E33C0B90-B568-4308-9F51-12A4BFEDC466} from the IClassFactory failed due to the following error: 80004005
06fa2d94-aad0-366c-8f08-0561a252b8e3,28e89a9f-e67d-3028-aa1b-e5ebcde6f3c8

please help me to get the solution for this problem,



 
Old November 4th, 2011, 01:33 PM
Registered User
 
Join Date: Nov 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Rajashekhar, please were you able to resolve your problem, i'm currently having the same issue with AMK_MSO300Lib.dll. Kindly share your experience with me, thank you.





Similar Threads
Thread Thread Starter Forum Replies Last Post
late binding meghaljani BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 6 August 22nd, 2008 07:06 PM
late binding,help? alexcym Visual Basic 2005 Basics 2 April 7th, 2008 03:26 PM
Subform Late Binding probitaille Access VBA 0 August 18th, 2007 02:02 AM
Late Binding Blade XML 3 July 17th, 2003 06:49 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.