Solved

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

Posted on 2006-06-22
1
417 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

695 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