473,396 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

DLLRegisterServer failed with error code 0x80040200

We can not register an ActiveX control on our Vista 32 bit machine.
When we do regsvr32 c:\windows\system32\citcp.ocx (this is a 3rd party
ActiveX control), we got an error: citcp.ocx was loaded but the call to
DLLRegisterServer failed with error code 0x80040200. I can successfully
register MSVBVM60.DLL and MFC42U.DLL. We login to the machine with a user
who is the Administrator.
I read somewhere that I need to turn off the "User Account Control" in
Vista. How can I do that ?
How can I fix this problem ?
Thank you.
Apr 11 '07 #1
11 34592
fniles <fn****@pfmail.comwrote:
I read somewhere that I need to turn off the "User Account Control" in
Vista. How can I do that ?
http://www.google.com/search?q=vista+disable+uac
--
..NET: It's About Trust!
http://vfred.mvps.org
Apr 11 '07 #2
fniles wrote:
We can not register an ActiveX control on our Vista 32 bit machine.
When we do regsvr32 c:\windows\system32\citcp.ocx (this is a 3rd party
ActiveX control), we got an error: citcp.ocx was loaded but the call to
DLLRegisterServer failed with error code 0x80040200. I can successfully
register MSVBVM60.DLL and MFC42U.DLL. We login to the machine with a user
who is the Administrator.
I read somewhere that I need to turn off the "User Account Control" in
Vista. How can I do that ?
How can I fix this problem ?
Register the component from an elevated command prompt. Right click on the
icon for Command Prompt on the start menu and select Run as Administrator.
You will be prompted by UAC to approve the elevation. Once the command
prompt window is open, run your regsvr32 command from that window and it
should succeed.
--
Tom Porterfield

Apr 11 '07 #3
I've discovered that Vista is really picky about this. Turning off the UAC
won't help...it's a registry issue.

If the ActX controls are yours, recompile them, this will register them. If
they are third party, use the installer provided by them to install the
controls. I saw some chap had posted something about creating a batch file
to register his controls and ran the batch control as Admin. I dunno about
this as I've never tried it. I've always used the first two methods.

- Kev

"fniles" <fn****@pfmail.comwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
| We can not register an ActiveX control on our Vista 32 bit machine.
| When we do regsvr32 c:\windows\system32\citcp.ocx (this is a 3rd party
| ActiveX control), we got an error: citcp.ocx was loaded but the call to
| DLLRegisterServer failed with error code 0x80040200. I can successfully
| register MSVBVM60.DLL and MFC42U.DLL. We login to the machine with a user
| who is the Administrator.
| I read somewhere that I need to turn off the "User Account Control" in
| Vista. How can I do that ?
| How can I fix this problem ?
| Thank you.
|
|
Apr 11 '07 #4
Thank you everybody. Following Tom's suggestion worked !
But, how are we going to do it for our end users ? There may be thousands of
them, so we can't just ask them to go to Command Prompt then register the
file manually. To be able to install (using Installshield) and let the
installation register all the ActiveX controls automatically, how can I do
it ?
Do I need to ask the user to turn off their UAC ?

Thanks.
"Tom Porterfield" <tp******@mvps.orgwrote in message
news:OH**************@TK2MSFTNGP06.phx.gbl...
fniles wrote:
>We can not register an ActiveX control on our Vista 32 bit machine.
When we do regsvr32 c:\windows\system32\citcp.ocx (this is a 3rd party
ActiveX control), we got an error: citcp.ocx was loaded but the call to
DLLRegisterServer failed with error code 0x80040200. I can successfully
register MSVBVM60.DLL and MFC42U.DLL. We login to the machine with a user
who is the Administrator.
I read somewhere that I need to turn off the "User Account Control" in
Vista. How can I do that ?
How can I fix this problem ?

Register the component from an elevated command prompt. Right click on
the icon for Command Prompt on the start menu and select Run as
Administrator. You will be prompted by UAC to approve the elevation. Once
the command prompt window is open, run your regsvr32 command from that
window and it should succeed.
--
Tom Porterfield

Apr 11 '07 #5
Just be sure InstallShield is set to Register each of the ActiveX controls.
I mistakenly thought my setup was doing that, but hadn't checked the box, so
it was installing the controls in the System32 folder, but not registering
them. Then, the user gets the error you mention the first time they run the
program. Or if they run it as an Admin, it will self-register then. But it's
best to do it in your install program.

Just check for an option for each control you are using in InstallShield to
register it during the install.

--
Regards,

Rick Raisley

"fniles" <fn****@pfmail.comwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
Thank you everybody. Following Tom's suggestion worked !
But, how are we going to do it for our end users ? There may be thousands
of
them, so we can't just ask them to go to Command Prompt then register the
file manually. To be able to install (using Installshield) and let the
installation register all the ActiveX controls automatically, how can I do
it ?
Do I need to ask the user to turn off their UAC ?

Thanks.
"Tom Porterfield" <tp******@mvps.orgwrote in message
news:OH**************@TK2MSFTNGP06.phx.gbl...
fniles wrote:
We can not register an ActiveX control on our Vista 32 bit machine.
When we do regsvr32 c:\windows\system32\citcp.ocx (this is a 3rd party
ActiveX control), we got an error: citcp.ocx was loaded but the call to
DLLRegisterServer failed with error code 0x80040200. I can successfully
register MSVBVM60.DLL and MFC42U.DLL. We login to the machine with a
user
who is the Administrator.
I read somewhere that I need to turn off the "User Account Control" in
Vista. How can I do that ?
How can I fix this problem ?
Register the component from an elevated command prompt. Right click on
the icon for Command Prompt on the start menu and select Run as
Administrator. You will be prompted by UAC to approve the elevation.
Once
the command prompt window is open, run your regsvr32 command from that
window and it should succeed.
--
Tom Porterfield


Apr 11 '07 #6
fniles wrote:
Thank you everybody. Following Tom's suggestion worked !
But, how are we going to do it for our end users ? There may be thousands
of them, so we can't just ask them to go to Command Prompt then register
the file manually. To be able to install (using Installshield) and let the
installation register all the ActiveX controls automatically, how can I do
it ?
Do I need to ask the user to turn off their UAC ?
InstallShield should have an option to register a COM component. UAC should
automatically prompt to elevate when the user runs your install package so
the COM registration should succeed.
--
Tom Porterfield

Apr 11 '07 #7
"fniles" <fn****@pfmail.comschrieb:
[VB6-related problem]
Please note that "microsoft.public.dotnet.languages.vb" targets the VB.NET
programming language which is not a successor of the VB6 programming
language in technology and syntax. I suggest to choose the correct
newsgroups in future.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Apr 11 '07 #8
Installshield is set to register the COM component, and this works in
Win2000 and WinXP, but not in Vista.
I can successfully use the elevated Command Prompt to register each control
manually, but I would like it to be done automatically.
It seems that I need to turn off the UAC and install the application, then I
can turn UAC back on.

Thank you very much for your help.

"Tom Porterfield" <tp******@mvps.orgwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
fniles wrote:
>Thank you everybody. Following Tom's suggestion worked !
But, how are we going to do it for our end users ? There may be thousands
of them, so we can't just ask them to go to Command Prompt then register
the file manually. To be able to install (using Installshield) and let
the
installation register all the ActiveX controls automatically, how can I
do
it ?
Do I need to ask the user to turn off their UAC ?

InstallShield should have an option to register a COM component. UAC
should automatically prompt to elevate when the user runs your install
package so the COM registration should succeed.
--
Tom Porterfield

Apr 11 '07 #9
InstallShield certainly /should/ register the COM components in Vista,
provided it is run as an Administrator. Most setup programs are recognized
by Vista by their name (setup, install, update) and other properties, and
Vista automatically asks for an admin login. If it doesn't, you can force it
to run as an admin with Run As or with a Manifest file. Either way, if, when
run as an admin, InstallShield is not properly registering the COM
components, then it's InstallShield's fault, not Vista's. It should work,
and does with my installer. You definitely don't need to turn UAC off to
install COM components, and that's probably the last thing you want to have
"thousands of end users" do.

--
Regards,

Rick Raisley
ri**@heavymetalpro.com
~~~~~~~~~~~~~~~~~~~
HeavyMetal Software Products
www.heavymetalpro.com

"fniles" <fn****@pfmail.comwrote in message
news:%2***************@TK2MSFTNGP05.phx.gbl...
Installshield is set to register the COM component, and this works in
Win2000 and WinXP, but not in Vista.
I can successfully use the elevated Command Prompt to register each
control
manually, but I would like it to be done automatically.
It seems that I need to turn off the UAC and install the application, then
I
can turn UAC back on.

Thank you very much for your help.

"Tom Porterfield" <tp******@mvps.orgwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
fniles wrote:
Thank you everybody. Following Tom's suggestion worked !
But, how are we going to do it for our end users ? There may be
thousands
of them, so we can't just ask them to go to Command Prompt then
register
the file manually. To be able to install (using Installshield) and let
the
installation register all the ActiveX controls automatically, how can I
do
it ?
Do I need to ask the user to turn off their UAC ?
InstallShield should have an option to register a COM component. UAC
should automatically prompt to elevate when the user runs your install
package so the COM registration should succeed.
--
Tom Porterfield


Apr 11 '07 #10
>If it doesn't, you can force it to run as an admin with Run As or with a
>Manifest file.
How do I do this ?

Thank you.
"Rick Raisley" <rraisley-A-T-harscotrack-D-O-T-comwrote in message
news:ej**************@TK2MSFTNGP05.phx.gbl...
InstallShield certainly /should/ register the COM components in Vista,
provided it is run as an Administrator. Most setup programs are recognized
by Vista by their name (setup, install, update) and other properties, and
Vista automatically asks for an admin login. If it doesn't, you can force
it
to run as an admin with Run As or with a Manifest file. Either way, if,
when
run as an admin, InstallShield is not properly registering the COM
components, then it's InstallShield's fault, not Vista's. It should work,
and does with my installer. You definitely don't need to turn UAC off to
install COM components, and that's probably the last thing you want to
have
"thousands of end users" do.

--
Regards,

Rick Raisley
ri**@heavymetalpro.com
~~~~~~~~~~~~~~~~~~~
HeavyMetal Software Products
www.heavymetalpro.com

"fniles" <fn****@pfmail.comwrote in message
news:%2***************@TK2MSFTNGP05.phx.gbl...
>Installshield is set to register the COM component, and this works in
Win2000 and WinXP, but not in Vista.
I can successfully use the elevated Command Prompt to register each
control
>manually, but I would like it to be done automatically.
It seems that I need to turn off the UAC and install the application,
then
I
>can turn UAC back on.

Thank you very much for your help.

"Tom Porterfield" <tp******@mvps.orgwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
fniles wrote:
Thank you everybody. Following Tom's suggestion worked !
But, how are we going to do it for our end users ? There may be
thousands
>of them, so we can't just ask them to go to Command Prompt then
register
>the file manually. To be able to install (using Installshield) and let
the
installation register all the ActiveX controls automatically, how can
I
do
it ?
Do I need to ask the user to turn off their UAC ?

InstallShield should have an option to register a COM component. UAC
should automatically prompt to elevate when the user runs your install
package so the COM registration should succeed.
--
Tom Porterfield



Apr 13 '07 #11
"fniles" <fn****@pfmail.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
If it doesn't, you can force it to run as an admin with Run As or with a
Manifest file.
How do I do this ?
To use Run As, simply right-click on the target install file, and choose Run
As Administrator. A manifest file can be included with your application
which automatically runs it as an admin (or rather asks the person running
it to approve it as an admin, assuming they have the permissions/password).
You can get information on how to make the manifest file at the following
link (among lots of others - just Google Vista Manifest):

http://www.helpware.net/VistaCompat.htm

Please note that the manifest, and Run As, do nothing to actually register
any COM components; your setup program must do that. They only help to run
the setup as an admin, which is necessary for /it/ to register the
components.

--
Regards,

Rick Raisley

Apr 13 '07 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mike Fisher | last post by:
I'm seeing an error when I try to run/debug a web service. Although it doesn't happen every time, it does occur more than half of the times I hit F5. It appears to be returned by the the JIT...
0
by: Rich | last post by:
I get this message when running almost every time I do an incremental compile. A full rebuild makes it go away. A subsequent incremental compile causes the problem again. I've read posts...
1
by: Razzie | last post by:
Hi all, I was working on a little project, worked fine, but now all of a sudden I get: The compiler failed with error code -1073741502 as an error message (when running the site, not...
2
by: Roger Wang | last post by:
HELP!!!! We have got a W2k server running IIS5 with .NET framework 1.1 and .NET framework SP1. All ASP.NET applications cannot run on this box. It all returned with the same error: ...
1
by: ofmars | last post by:
Hi, I managed to compile a C++ MFC DLL and ran it with C# using DLLimport to check if the method are giving the correct value and its working fine. However I want to register it using...
3
by: ralphdepping | last post by:
Trying to get moinmoin wiki working on Windows 2000 using IIS and python. I get the following error when trying to view the start page after insalling moinmoin and python - key error seems to be...
6
by: sankarvanaja | last post by:
i tried to register a msvgif.ocx file using the command regsvr32 c:\module\msvgif.ocx it returned an error code dllregisterserver in c:\module\msvgif.ocx failed return code was :0x80040200 ...
1
by: bhanupoornakumar | last post by:
Hi .. when i am setting a website i am getting the following error.. The compiler failed with error code -1073741819. This is the full error .. u can see below. Compilation Error ...
4
by: Pool | last post by:
I tried to connect DB2 (Sitting in Unix server at my client location) using Db2 connect V8. I am getting the following error message. I tried all the possible options BUt the error is same.. See each...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
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,...
0
jinu1996
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.