Solved

COM object with CLSID(Some number) is either not valid or not registered

Posted on 2006-06-22
1
410 Views
Last Modified: 2010-04-24
Hi Experts

I am using SQLDMO COM object in my VB.Net application. the installer of my application is working fine on many client machines but it generates following error on click button on one client machine

COM object with CLSID(Some number) is either not valid or not registered.

following code runs on click button
           txtDatabase.Items.Clear()
            Dim srv As SQLDMO.SQLServer
            srv = New SQLDMO.SQLServerClass
            Try
                srv.Connect(txtServer.Text, txtUser.Text, txtPass.Text)

                Dim db As New SQLDMO.Database
                For Each db In srv.Databases
                    If db.Name <> Nothing Then
                        Me.txtDatabase.Items.Add(db.Name)
                    End If
                Next

            Catch ex As Exception
                MsgBox(ex.Message, MsgBoxStyle.Information, "UpdateUtility")
            End Try

its very urgent

thanks,
imrancs
0
Comment
Question by:imrancs
1 Comment
 
LVL 6

Accepted Solution

by:
Nandakumar Sakthivel earned 500 total points
Comment Utility
hi,
   I think that the you SQLDMO Com component is not registered.  
   regsvr32 command is used to register com components
   Hope this link will help you  

         http://support.microsoft.com/kb/q248241/
         http://www.geniusconnect.com/articles/SQLServerFind/2/13/29/

Thanks,
Nanda
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
This video discusses moving either the default database or any database to a new volume.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now