Solved

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

Posted on 2006-06-22
1
411 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
ID: 16957945
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Get list of word ducuments in a folder 10 35
Visual Studio editor? 1 37
Want to create a userform that looks like the image provided 10 44
Advice in Xamarin 21 47
A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

932 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

9 Experts available now in Live!

Get 1:1 Help Now