First the obvious lets make sure your wrappers and dlls are registered
and properly imported.
I have heard of this occurring in the past, usually because of a
registry corruption of some registered interfaces
(generally not caused by the Visual Studio install, but some other
application). It appears that at least one in
instance showed that the entries for the IEnumVARIANT interface were
corrrupted. You should check your registry
and see if it matches the following:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACH INE\SOFTWARE\Cl asses\Interface \{00020404-0000-0000-C000-0000
00000046}]
@="IEnumVARIANT "
[HKEY_LOCAL_MACH INE\SOFTWARE\Cl asses\Interface \{00020404-0000-0000-C000-0000
00000046}\NumMe thods]
@="7"
[HKEY_LOCAL_MACH INE\SOFTWARE\Cl asses\Interface \{00020404-0000-0000-C000-0000
00000046}\Proxy StubClsid]
@="{00020421-0000-0000-C000-000000000046}"
[HKEY_LOCAL_MACH INE\SOFTWARE\Cl asses\Interface \{00020404-0000-0000-C000-0000
00000046}\Proxy StubClsid32]
@="{00020421-0000-0000-C000-000000000046}"
If not, that is probably the source of your problem. Export the above
to a .reg file and run it.
Of course, in stuff like this there are not guarantees.
"tulasi" <tu************ **@yahoo.com> wrote in message
news:#H******** *****@TK2MSFTNG P11.phx.gbl:
Try
Dim wia As New WiaClass
Dim div As DeviceInfoClass
wia.Create(div)
'wia.Devices()
Dim wtype As WiaDeviceInfoPr opertyId
MsgBox(wtype.De viceInfoDevName )
Catch ex As Exception
MsgBox(ex.ToStr ing)
End Try
I am executing the above code the below Error is obtained in VB.Net
"System.Runtime .InteropService s.COMException( 0*80040154):Cla ss not
registered "
I am using wiascr.dll This is image aquisition COM component
In this component i am also register with REGSVR32 in command prompt
How to rectifie the above Error.Any one knows please help me