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_MACHINE\SOFTWARE\Classes\Interface\{000 20404-0000-0000-C000-0000
00000046}]
@="IEnumVARIANT"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{000 20404-0000-0000-C000-0000
00000046}\NumMethods]
@="7"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{000 20404-0000-0000-C000-0000
00000046}\ProxyStubClsid]
@="{00020421-0000-0000-C000-000000000046}"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Interface\{000 20404-0000-0000-C000-0000
00000046}\ProxyStubClsid32]
@="{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*************@TK2MSFTNGP11.phx.gbl:
Try
Dim wia As New WiaClass
Dim div As DeviceInfoClass
wia.Create(div)
'wia.Devices()
Dim wtype As WiaDeviceInfoPropertyId
MsgBox(wtype.DeviceInfoDevName)
Catch ex As Exception
MsgBox(ex.ToString)
End Try
I am executing the above code the below Error is obtained in VB.Net
"System.Runtime.InteropServices.COMException(0*800 40154):Class 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