Hi
I just made an installer package for an application in .NET which also uses
COM dlls. It seems to work fine on my machine but when tried it on a
co-worker's machine, the application installs, but while running, gives the
following error in the part that must use a certain COM dll:
COM object with CLSID {some hex code} is either not valid or not registered
I know which application is using this dll while the error is generated and
have an inclination about which dll is causing the problem though I'm not
entirely sure about it.
When I tried searching for the given CLSID in the registry with regedit, it
didn't find it anywhere.
There also seem to be a lot of instances of the specified COM dll on the
computer previously installed (of various versions) and some of them seem to
be present from uninstalled components which for some reason didn't uninstall
completely.
It seems like the uninstall did not do all it had to or something and now
there's a bunch of mess on the system and I have no idea how this can be
dealt with.
If anyone has any suggestion regarding this, I would appreciate if he/she
could share that with me
Thanks in advance! 4 1848
Shiraz,
Your installer package also needs to include the install package for the
COM dll (if there is one). At the least, it has to include the COM dll in
your install package and have it self-register (or have it in the local
directory if you are using reg-free COM).
Using the interop dll is not enough. You need to have installed the COM
object properly, and then use the interop dll in your project.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"Shiraz" <Sh****@discuss ions.microsoft. com> wrote in message
news:53******** *************** ***********@mic rosoft.com... Hi
I just made an installer package for an application in .NET which also uses COM dlls. It seems to work fine on my machine but when tried it on a co-worker's machine, the application installs, but while running, gives the following error in the part that must use a certain COM dll:
COM object with CLSID {some hex code} is either not valid or not registered
I know which application is using this dll while the error is generated and have an inclination about which dll is causing the problem though I'm not entirely sure about it.
When I tried searching for the given CLSID in the registry with regedit, it didn't find it anywhere. There also seem to be a lot of instances of the specified COM dll on the computer previously installed (of various versions) and some of them seem to be present from uninstalled components which for some reason didn't uninstall completely. It seems like the uninstall did not do all it had to or something and now there's a bunch of mess on the system and I have no idea how this can be dealt with.
If anyone has any suggestion regarding this, I would appreciate if he/she could share that with me
Thanks in advance!
Hi Nicholas
Thanks for the quick reply. With the installer, I had included all the
installation files for this particular application (which btw is an
additional application used by the main application). For some reason, I was
not able to deploy it automatically from my installer, but since I am doing
this for the first time, I did not much care about this and just included the
files necessary for manually installing it.
The manual installation seemed to work, but subsequently we were not able to
resolve the CLISD error I mentioned in my post.
Does this information help ascertaining the problem better? Additionally, if
this helps, I searched my own computer's registry and found out an entry with
the same CLSID as is being given in the error message, but I'm not sure how
to proceed from here.
-----------------------------------------------------------------------------------------------
"Nicholas Paldino [.NET/C# MVP]" wrote: Shiraz,
Your installer package also needs to include the install package for the COM dll (if there is one). At the least, it has to include the COM dll in your install package and have it self-register (or have it in the local directory if you are using reg-free COM).
Using the interop dll is not enough. You need to have installed the COM object properly, and then use the interop dll in your project.
Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard. caspershouse.co m
"Shiraz" <Sh****@discuss ions.microsoft. com> wrote in message news:53******** *************** ***********@mic rosoft.com... Hi
I just made an installer package for an application in .NET which also uses COM dlls. It seems to work fine on my machine but when tried it on a co-worker's machine, the application installs, but while running, gives the following error in the part that must use a certain COM dll:
COM object with CLSID {some hex code} is either not valid or not registered
I know which application is using this dll while the error is generated and have an inclination about which dll is causing the problem though I'm not entirely sure about it.
When I tried searching for the given CLSID in the registry with regedit, it didn't find it anywhere. There also seem to be a lot of instances of the specified COM dll on the computer previously installed (of various versions) and some of them seem to be present from uninstalled components which for some reason didn't uninstall completely. It seems like the uninstall did not do all it had to or something and now there's a bunch of mess on the system and I have no idea how this can be dealt with.
If anyone has any suggestion regarding this, I would appreciate if he/she could share that with me
Thanks in advance!
Can you register the dll manually using regsvr32 **.dll.
If it works, I think you may need to embed some custom scripts in your
setup.
HTH,
Jianwei
Shiraz wrote: Hi Nicholas
Thanks for the quick reply. With the installer, I had included all the installation files for this particular application (which btw is an additional application used by the main application). For some reason, I was not able to deploy it automatically from my installer, but since I am doing this for the first time, I did not much care about this and just included the files necessary for manually installing it.
The manual installation seemed to work, but subsequently we were not able to resolve the CLISD error I mentioned in my post.
Does this information help ascertaining the problem better? Additionally, if this helps, I searched my own computer's registry and found out an entry with the same CLSID as is being given in the error message, but I'm not sure how to proceed from here.
----------------------------------------------------------------------------------------------- "Nicholas Paldino [.NET/C# MVP]" wrote:
Shiraz,
Your installer package also needs to include the install package for the COM dll (if there is one). At the least, it has to include the COM dll in your install package and have it self-register (or have it in the local directory if you are using reg-free COM).
Using the interop dll is not enough. You need to have installed the COM object properly, and then use the interop dll in your project.
Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard. caspershouse.co m
"Shiraz" <Sh****@discuss ions.microsoft. com> wrote in message news:53****** *************** *************@m icrosoft.com...
Hi
I just made an installer package for an application in .NET which also uses COM dlls. It seems to work fine on my machine but when tried it on a co-worker's machine, the application installs, but while running, gives the following error in the part that must use a certain COM dll:
COM object with CLSID {some hex code} is either not valid or not registered
I know which application is using this dll while the error is generated and have an inclination about which dll is causing the problem though I'm not entirely sure about it.
When I tried searching for the given CLSID in the registry with regedit, it didn't find it anywhere. There also seem to be a lot of instances of the specified COM dll on the computer previously installed (of various versions) and some of them seem to be present from uninstalled components which for some reason didn't uninstall completely . It seems like the uninstall did not do all it had to or something and now there's a bunch of mess on the system and I have no idea how this can be dealt with.
If anyone has any suggestion regarding this, I would appreciate if he/she could share that with me
Thanks in advance!
Yes, manually registering the dll works. I was a bit skeptical about this as
I wasn't sure which dll was causing the problem, but I was able to narrow
down the probables to 2 by today, so that wasn't much trouble for trying out.
Since these dlls were locate in another msi package (written by someone
else), which I was installing with my msi file (as nested msi), I was
expecting them to get registered automatically, which they were on my
computer but for some reason, they didn't on a particular machine (I don't
know if it's a problem with the machine installer/un-installer or just this
additional msi package, though I suspect it's the machine). So, I finally
grabbed the needed dlls from this other application and put them in my
installer.
Now, I just have to figure out a way to have my installer register these
dlls on installation and like you suggested, I would likely need to embedd a
custom script to my msi file, although I still have to figure out how to do
that...
Anyways, thanks for the help!
------------------------------------
"Jianwei Sun" wrote: Can you register the dll manually using regsvr32 **.dll.
If it works, I think you may need to embed some custom scripts in your setup.
HTH, Jianwei
Shiraz wrote: Hi Nicholas
Thanks for the quick reply. With the installer, I had included all the installation files for this particular application (which btw is an additional application used by the main application). For some reason, I was not able to deploy it automatically from my installer, but since I am doing this for the first time, I did not much care about this and just included the files necessary for manually installing it.
The manual installation seemed to work, but subsequently we were not able to resolve the CLISD error I mentioned in my post.
Does this information help ascertaining the problem better? Additionally, if this helps, I searched my own computer's registry and found out an entry with the same CLSID as is being given in the error message, but I'm not sure how to proceed from here.
----------------------------------------------------------------------------------------------- "Nicholas Paldino [.NET/C# MVP]" wrote:
Shiraz,
Your installer package also needs to include the install package for the COM dll (if there is one). At the least, it has to include the COM dll in your install package and have it self-register (or have it in the local directory if you are using reg-free COM).
Using the interop dll is not enough. You need to have installed the COM object properly, and then use the interop dll in your project.
Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard. caspershouse.co m
"Shiraz" <Sh****@discuss ions.microsoft. com> wrote in message news:53****** *************** *************@m icrosoft.com...
Hi
I just made an installer package for an application in .NET which also uses COM dlls. It seems to work fine on my machine but when tried it on a co-worker's machine, the application installs, but while running, gives the following error in the part that must use a certain COM dll:
COM object with CLSID {some hex code} is either not valid or not registered
I know which application is using this dll while the error is generated and have an inclination about which dll is causing the problem though I'm not entirely sure about it.
When I tried searching for the given CLSID in the registry with regedit, it didn't find it anywhere. There also seem to be a lot of instances of the specified COM dll on the computer previously installed (of various versions) and some of them seem to be present from uninstalled components which for some reason didn't uninstall completely . It seems like the uninstall did not do all it had to or something and now there's a bunch of mess on the system and I have no idea how this can be dealt with.
If anyone has any suggestion regarding this, I would appreciate if he/she could share that with me
Thanks in advance! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Erik-Jan Bakker |
last post by:
Hello,
I am stuck with a weird javascript problem.... ;-(
Maybe it's somehting very simple, but I am really stuck in it, right
now.
What's the matter....
When place my website at a different hosting provider my webpage menu
generates the javascript error:
|
by: Andrew Phillipo |
last post by:
I have some code that works everywhere but IE5.0, including IE5.5.
Here is a snippet of where the code seems to go wrong:
Location.prototype.change = function(current) {
this.current = current; // refers to the currently selected estate
agent
var elem = dhtml_get_element(this.id()); // cross browser
getElementById
var oldElem = elem.parentNode; // we can't replace tables using
innerHTML - get the parent element (a div)
|
by: Roman |
last post by:
I'm trying to create the form which would allow data entry
to the Client table, as well as modification and deletion
of existing data rows. For some reason the DataGrid part
of functionality stops working when I include data entry
fields to the form: I click on Delete or Edit inside of
DataGrid and get this error: "Error: Object doesn't
support this property or method"
If I remove data entry fields from the form - DataGrid
allows to...
|
by: Giovanni Bassi |
last post by:
Hello All,
I have encountered a problem.
I am using visual inheritance and my base form adds an event handler on Form
Load using the AddHandler Keyword.
The problem is that if the Event Handler code is there, when I create the
inherited form I get the error "Object Reference not set to an instance of
an object". If it is not I get no error.
I have tried leaving this code in the forms Sub New, but it produces the
|
by: avanti |
last post by:
HI,
I have an ASP page with some Javascript code. The JS has several
functions and only some of them work. Here is part of the code:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server" id="Head1">
<title>Title</title>
<Ctrl:stylesheets id="Css1" runat="server" />
<script language="javascript" type="text/javascript">
| |
by: manojkm84 |
last post by:
hi i have a very wierd error
its like this
i using .net 2005 c#....theres a webgrid in a page.....n when i try clicking on ny link in it it gives this error..
Line:317
Char:1
Error:Object Expected
Code:0
|
by: juliejam |
last post by:
Hello all, I am new here and hope some kind, smarter than me person can help.
I am getting the error object expected with the following code:
function click(e);
here the error says it expected '{' at Char:18
External js code for this is here:
function click(e) {
if (document.all) {
|
by: Vbbeginner07 |
last post by:
Please check the following code for adding records to a database:
Im getting the error:object required in the following code( which is in bold letters)
kindly go through
Private Sub cmdAdd_Click()
strdep = cbodep.Text
rs.Open "select departmentno from Departments where departmentname ='" & strdep & "' ", conn, adOpenStatic, adLockOptimistic
If Not rs.EOF Then
|
by: Patient Guy |
last post by:
I am a newcomer to using PHP but not to programming (C, C++, Javascript).
I am playing around with classes and wanted to make a function that has a
method simply for producing either plain text or HTML output in a tabular
way a listing of the global variables in the = keyValue two-column
format. That's what the method listGlobals does.
I am stumped by the following error message:
PHP Catchable fatal error: Object of class phpEnv...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |