0
I have done reference's as Microsoft.Vbe.Interop and its not showing any build error. But while running, the following line
Microsoft.Vbe.Interop.VBProject vbp = new Microsoft.Vbe.Interop.VBProject();
is showing the error as ....
{"Retrieving the COM class factory for
component with CLSID {0002E169-0000-0000-C000-000000000046} failed due
to the following error: 80040154."}
guide me how to resolve the reference problem....
Thanks in advance for any help!
0
Are you sure that the VBProject and VBComponent objects were created successfuly? Probably not. You are probably not creating a VBProject object that can be used in the manner you need it to be used.