Hello Every one, Good morning.
I have to access the active x dll which is installed on my system from VB.net. I added as reference and followed all the steps as given in I have declared private mycomponent as activexcomponent.libclass
and i gave constructor for this i.e. creating the object for this class in the constructor of the main form as mycomponet = new activexcomponent.libclass()
Then the following expection is coming when i tried to run the program.
System.InvalidOperationException: An error occurred creating the form. See Exception.InnerException for details. The error is: Creating an instance of the COM component with CLSID {D8A27DFF-A4B8-440E-8571-71A37D39403E} from the IClassFactory failed due to the following error: 800a0196. ---> System.Runtime.InteropServices.COMException: Creating an instance of the COM component with CLSID {D8A27DFF-A4B8-440E-8571-71A37D39403E} from the IClassFactory failed due to the following error: 800a0196.
I have registered the activex dll. I tried my best to figure out the problem but could not succeed in this. Please can any one help me out? Thanks a lot.