I'm upgrading a VB6 application to VB.NET.

I got errors that mostly are "System.InvalidCastException" & QueryInterface
failure of vbSqlDMO.NameList.

I'm sure that the SQL Server 2000 Service Pack 2 has been installed well.
(version 8.00.534)

And I have try to register the dll again using 'tlbimp' command.

It can't work finally.

During the upgrade process, several (.dll) files has been created, added
to the project for reference and placed in a 'bin' folder under the project
path. But the error still prompt out.

Pls help! Thx a lot!