Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Vista Community > Windows Vista

Windows Vista Discuss the different versions of Windows Vista, Fuji, or Vienna

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 04-11-2007, 10:15 AM
fniles
Newsgroup Contributor
 
Posts: n/a
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.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 04-11-2007, 10:15 AM
  #2 (permalink)  
Old 04-11-2007, 10:30 AM
Karl E. Peterson
Newsgroup Contributor
 
Posts: n/a
Re: DLLRegisterServer failed with error code 0x80040200

fniles <fniles@pfmail.com> wrote:[color=blue]
> I read somewhere that I need to turn off the "User Account Control" in
> Vista. How can I do that ?[/color]

[url]http://www.google.com/search?q=vista+disable+uac[/url]
--
..NET: It's About Trust!
[url]http://vfred.mvps.org[/url]


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 04-11-2007, 10:30 AM
Tom Porterfield
Newsgroup Contributor
 
Posts: n/a
Re: DLLRegisterServer failed with error code 0x80040200

fniles wrote:[color=blue]
> 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 ?[/color]

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 04-11-2007, 10:45 AM
Kevin Provance
Newsgroup Contributor
 
Posts: n/a
Re: DLLRegisterServer failed with error code 0x80040200

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" <fniles@pfmail.com> wrote in message
news:%23DheSyFfHHA.3508@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.
|
|


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 04-11-2007, 11:30 AM
fniles
Newsgroup Contributor
 
Posts: n/a
Re: DLLRegisterServer failed with error code 0x80040200

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" <tpporter@mvps.org> wrote in message
news:OHHEv5FfHHA.4364@TK2MSFTNGP06.phx.gbl...[color=blue]
> fniles wrote:[color=green]
>> 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 ?[/color]
>
> 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[/color]


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #6 (permalink)  
Old 04-11-2007, 11:45 AM
Tom Porterfield
Newsgroup Contributor
 
Posts: n/a
Re: DLLRegisterServer failed with error code 0x80040200

fniles wrote:[color=blue]
> 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 ?[/color]

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #7 (permalink)  
Old 04-11-2007, 11:45 AM
Rick Raisley
Newsgroup Contributor
 
Posts: n/a
Re: DLLRegisterServer failed with error code 0x80040200

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" <fniles@pfmail.com> wrote in message
news:%23nLKaaGfHHA.1388@TK2MSFTNGP05.phx.gbl...[color=blue]
> Thank you everybody. Following Tom's suggestion worked !
> But, how are we going to do it for our end users ? There may be thousands[/color]
of[color=blue]
> 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" <tpporter@mvps.org> wrote in message
> news:OHHEv5FfHHA.4364@TK2MSFTNGP06.phx.gbl...[color=green]
> > fniles wrote:[color=darkred]
> >> 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[/color][/color][/color]
user[color=blue][color=green][color=darkred]
> >> 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 ?[/color]
> >
> > 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.[/color][/color]
Once[color=blue][color=green]
> > the command prompt window is open, run your regsvr32 command from that
> > window and it should succeed.
> > --
> > Tom Porterfield[/color]
>
>[/color]


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #8 (permalink)  
Old 04-11-2007, 11:45 AM
Herfried K. Wagner [MVP]
Newsgroup Contributor
 
Posts: n/a
Re: DLLRegisterServer failed with error code 0x80040200

"fniles" <fniles@pfmail.com> schrieb:[color=blue]
> [VB6-related problem][/color]

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/>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #9 (permalink)  
Old 04-11-2007, 01:00 PM
fniles
Newsgroup Contributor
 
Posts: n/a
Re: DLLRegisterServer failed with error code 0x80040200

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" <tpporter@mvps.org> wrote in message
news:%237ZiMgGfHHA.3956@TK2MSFTNGP03.phx.gbl...[color=blue]
> fniles wrote:[color=green]
>> 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 ?[/color]
>
> 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[/color]


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #10 (permalink)  
Old 04-11-2007, 01:45 PM
Rick Raisley
Newsgroup Contributor
 
Posts: n/a
Re: DLLRegisterServer failed with error code 0x80040200

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
[email]rick@heavymetalpro.com[/email]
~~~~~~~~~~~~~~~~~~~
HeavyMetal Software Products
[url]www.heavymetalpro.com[/url]

"fniles" <fniles@pfmail.com> wrote in message
news:%23euguJHfHHA.284@TK2MSFTNGP05.phx.gbl...[color=blue]
> 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[/color]
control[color=blue]
> 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[/color]
I[color=blue]
> can turn UAC back on.
>
> Thank you very much for your help.
>
> "Tom Porterfield" <tpporter@mvps.org> wrote in message
> news:%237ZiMgGfHHA.3956@TK2MSFTNGP03.phx.gbl...[color=green]
> > fniles wrote:[color=darkred]
> >> Thank you everybody. Following Tom's suggestion worked !
> >> But, how are we going to do it for our end users ? There may be[/color][/color][/color]
thousands[color=blue][color=green][color=darkred]
> >> of them, so we can't just ask them to go to Command Prompt then[/color][/color][/color]
register[color=blue][color=green][color=darkred]
> >> 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 ?[/color]
> >
> > 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[/color]
>
>[/color]


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #11 (permalink)  
Old 04-13-2007, 08:15 AM
fniles
Newsgroup Contributor
 
Posts: n/a
Re: DLLRegisterServer failed with error code 0x80040200

>If it doesn't, you can force it to run as an admin with Run As or with a[color=blue]
>Manifest file.[/color]
How do I do this ?

Thank you.


"Rick Raisley" <rraisley-A-T-harscotrack-D-O-T-com> wrote in message
news:ej9jAhHfHHA.2052@TK2MSFTNGP05.phx.gbl...[color=blue]
> 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
> [email]rick@heavymetalpro.com[/email]
> ~~~~~~~~~~~~~~~~~~~
> HeavyMetal Software Products
> [url]www.heavymetalpro.com[/url]
>
> "fniles" <fniles@pfmail.com> wrote in message
> news:%23euguJHfHHA.284@TK2MSFTNGP05.phx.gbl...[color=green]
>> 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[/color]
> control[color=green]
>> 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[/color]
> I[color=green]
>> can turn UAC back on.
>>
>> Thank you very much for your help.
>>
>> "Tom Porterfield" <tpporter@mvps.org> wrote in message
>> news:%237ZiMgGfHHA.3956@TK2MSFTNGP03.phx.gbl...[color=darkred]
>> > 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[/color][/color]
> thousands[color=green][color=darkred]
>> >> of them, so we can't just ask them to go to Command Prompt then[/color][/color]
> register[color=green][color=darkred]
>> >> 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[/color]
>>
>>[/color]
>
>[/color]


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #12 (permalink)  
Old 04-13-2007, 09:00 AM
Rick Raisley
Newsgroup Contributor
 
Posts: n/a
Re: DLLRegisterServer failed with error code 0x80040200

"fniles" <fniles@pfmail.com> wrote in message
news:%23fEgQ1dfHHA.1240@TK2MSFTNGP04.phx.gbl...[color=blue][color=green]
> >If it doesn't, you can force it to run as an admin with Run As or with a
> >Manifest file.[/color]
> How do I do this ?
>[/color]

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):

[url]http://www.helpware.net/VistaCompat.htm[/url]

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



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #13 (permalink)  
Old 05-15-2007, 08:30 AM
Jon
Newsgroup Contributor
 
Posts: n/a
Re: DLLRegisterServer failed with error code 0x80040200

"aniruddhagalgali" <aniruddhagalgali.2qmrf6@no-mx.forums.net> wrote in
message news:aniruddhagalgali.2qmrf6@no-mx.forums.net...[color=blue]
>
> If I log-in as an Administrator, and then double-click on the Installer
> executable, still it fails to register the ActiveX component.
> But if I right-click on the Installer executable and Run As
> Administrator, then it is registered smoothly.
>
> Could someone please explain why does this happen?
> And can this be handled from Install Shield?
>
> Thanks in advance...
>
>[/color]


It's probably because Vista doesn't recognize the installer executable as an
installer, but just sees it as a plain old executable, and hence will try
running it without elevated privileges.

If you renamed it to setup.exe or update.exe or install.exe it will probably
work fine, since then Vista will recognize it as an installer.

--
Jon

[color=blue]
> --
> aniruddhagalgali[/color]

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #14 (permalink)  
Old 01-24-2008, 09:30 PM
Ross28
Newsgroup Contributor
 
Posts: n/a
Re: DLLRegisterServer failed with error code 0x80040200


Tom Porterfield;2742862 Wrote:[color=blue]
> fniles wrote:[color=green]
> > 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[/color]
> party[color=green]
> > ActiveX control), we got an error: citcp.ocx was loaded but the call[/color]
> to[color=green]
> > DLLRegisterServer failed with error code 0x80040200. I can[/color]
> successfully[color=green]
> > register MSVBVM60.DLL and MFC42U.DLL. We login to the machine with a[/color]
> user[color=green]
> > who is the Administrator.
> > I read somewhere that I need to turn off the "User Account Control"[/color]
> in[color=green]
> > Vista. How can I do that ?
> > How can I fix this problem ?[/color]
>
> 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[/color]

Dear Tom when i did what you told me to do i am getting another message
stating that and i quote "To Register A Module You Must Provide A Binary
Name".The options for the binar names are and i quote "/u - Unregister
server,
/s - Silent; display no message boxes
/i - Call DllInstall passing it an optional [cmdline];when used with u
calls dll uninstall
/n - do nor call DllRegisterServer;this option must be used with /i.
So what is it i have to do now to resolve this problem for good please
help cause i am getting frustrated trying to figure it out and i would
really appreciate it alot if there is something you can do that will
fix it one time thanks again.


--
Ross28
------------------------------------------------------------------------
Ross28's Profile: [url]http://forums.techarena.in/member.php?userid=40274[/url]
View this thread: [url]http://forums.techarena.in/showthread.php?t=723579[/url]

[url]http://forums.techarena.in[/url]

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #15 (permalink)  
Old 03-26-2009, 03:09 PM
wanderin-spirit
Newsgroup Contributor
 
Posts: n/a
Re: DLLRegisterServer failed with error code 0x80040200


Hello,

I am a frustrated vista user. Seems everything requires the user to
download something else to get the simplest of programs to work. I,
along with most people, am not a computer expert. Although, I will say
if vista was crated by experts - well they don't know anything.

OK rant over, I got the 0x80040200 error code while attemting the
simple act of registering a .ocx file using regsver32 (in ME and XP, I
would simply place the .ocx icon over the regsver32 icon and DONE.
Vista, of course, not so!

I did a search on error code 0x80040200 and found this site. However,
I could not find a solution here (yes my user account is turned off). I
did however, come across a program that does register .ocx and .dll on
vista.

Easy *OCX/DLL MANAGER *download (anywhere - I just put it on desktop)
and simple functioning (just check the approprite radio button .ocx or
.DLL) and load the file you want to register. *IT WORKS*

Download from the following link:

[url]http://www.foxprogramming.co.uk/freetools.html[/url]

Back to venting frustration...as soon as my warranty is up I will dump
vista and load in XP.


--
wanderin-spirit
------------------------------------------------------------------------
wanderin-spirit's Profile: [url]http://forums.techarena.in/members/85352.htm[/url]
View this thread: [url]http://forums.techarena.in/vista-help/723579.htm[/url]

[url]http://forums.techarena.in[/url]

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Off
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
call to DllRegisterServer failed 0x8002801c greensmachine_snake Windows Vista 6 11-11-2009 02:50 AM
KB905866 failed, error code 80070490 in vista update Livio Windows Vista 1 06-22-2008 02:20 PM
DllRegisterServer in vbscript.dll failed. return code was: 0x80004 AlanR Windows XP 1 03-29-2008 09:00 AM
DllRegisterServer failed with error code 0x8002801c peter shaw Windows Vista 1 03-05-2007 07:30 PM
call to DllRegisterServer failed with error code 0x80040200 hbetancur Windows Vista 1 01-02-2007 10:33 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 06:00 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0