?
Solved

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

Posted on 2006-06-22
1
Medium Priority
?
424 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 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

800 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