Join Our 3 MILLION+ Members Today! Register Here | Login
Go Back   BlackBerry Forums at CrackBerry.com > BlackBerry OS and Desktop Management Software Discussion > Desktop Software

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
    Thread Author   #1  
Old 07-23-2008, 06:48 PM
Super Bad
Device(s): 8320 (Curve)
Carrier: T-Mobile
 
Join Date: Dec 2007
Posts: 11,786
Likes Received: 3
Thanked 4 Times in 3 Posts
Default How to fix Desktop Manager Error 1904

Today I installed the latest Desktop Manager, 4.5, and encountered multiple errors. They all had to do with the failure to register GW.dll, GWApi.dll, desktopsetup_pb.dll, and syncae_pb.dll. The error messages read like this:

Quote:
Error 1904.Module C:\Program Files\Research In Motion\BlackBerry\IS71 Connectors\ISGroupWise6.5.X\GW.dll failed to register. HRESULT -2147220473. Contact your support personnel.
The cause of the problem has to do with the Windows Registry not having permission to to register the files. This is not a terribly hard problem to fix. Here are the steps.

1. Download the SubInACL tool and install it. By default it will install to c:\Program Files\Windows Resource Kits\Tools

2. If you are running Windows Vista, click on the Start menu, choose All Programs, then Accessories, then right-click on the item named Command Prompt and choose Run as administrator

3. If you are running an OS other than Windows Vista, go to the Start menu, choose Run, type cmd and click OK

4. Type notepad reset.cmd and click yes to create a new file named reset.cmd

5. Copy and paste the following contents into reset.cmd and then save and close it (or download it from this location and rename it from reset.cmd.txt to reset.cmd):

cd /d "%programfiles%\Windows Resource Kits\Tools"
subinacl /subkeyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=%USERNAME%=f /setowner=administrators > %temp%\subinacl_output.txt
subinacl /keyreg HKEY_CURRENT_USER /grant=administrators=f /grant=system=f /grant=restricted=r /grant=%USERNAME%=f /setowner=administrators >> %temp%\subinacl_output.txt
subinacl /subkeyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /grant=restricted=r /setowner=administrators >> %temp%\subinacl_output.txt
subinacl /keyreg HKEY_LOCAL_MACHINE /grant=administrators=f /grant=system=f /grant=users=r /grant=everyone=r /grant=restricted=r /setowner=administrators >> %temp%\subinacl_output.txt
subinacl /subkeyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators >> %temp%\subinacl_output.txt
subinacl /keyreg HKEY_CLASSES_ROOT /grant=administrators=f /grant=system=f /grant=users=r /setowner=administrators >> %temp%\subinacl_output.txt
subinacl /subdirectories %SystemDrive%\ /grant=administrators=f /grant=system=f /grant=users=e >> %temp%\subinacl_output.txt
subinacl /subdirectories %windir%\*.* /grant=administrators=f /grant=system=f /grant=users=e >> %temp%\subinacl_output.txt

6. Type reset.cmd and press enter to run the SubInACL tool. This tool will take several minutes to run, and it requires that the user account you are using has administrator privileges on the system. This is why it is necessary to run it from an elevated cmd prompt on Windows Vista. Step 2 above can be used to start an elevated cmd prompt on Windows Vista.

7. After reset.cmd completes, we can manually register the failed DLL files.

Navigate to the directory that the DLL files are in and register them.
Type cd C:\Program Files\Research In Motion\BlackBerry\IS71 Connectors\ISGroupWise6.5.X\ and hit enter.
Type regsvr32 gw.dll and hit enter
Type gwapi.dll and hit enter
Type cd C:\Program Files\Research In Motion\BlackBerry\IS71 Desktop Setup\ and hit enter
Type regsvr32 DesktopSetup_pb.dll and hit enter
Type C:\Program Files\Research In Motion\BlackBerry\IS71 Action Engine\ and hit enter
Type regsvr32 SyncAE_pb.dll and hit enter

That's it. When you run Desktop Manager, you may need to reset the Synchronization configuration (as I had to).

Anyone have any corrections to this guide please let me know.

These instructions were copied and modified (step 7) from Aaron Stebner's WebLog : Solving setup errors by using the SubInACL tool to repair file and registry permissions

Last edited by sunkast; 07-23-2008 at 06:56 PM.
Reply With Quote Tip this Post
  #2  
Old 07-23-2008, 08:45 PM
Forums Moderator
Device(s): Pearl and Apple
Carrier: Rogers TalkSpot UMA
 
Location: Canada
Join Date: Dec 2007
Posts: 9,301
Likes Received: 28
Thanked 139 Times in 87 Posts
Default

Phew...

Have you considered trying a different download package?

I used the 200 Mb English with Media Manager, no problems with a Vista install.
Reply With Quote Tip this Post
    Thread Author   #3  
Old 07-23-2008, 08:51 PM
Super Bad
Device(s): 8320 (Curve)
Carrier: T-Mobile
 
Join Date: Dec 2007
Posts: 11,786
Likes Received: 3
Thanked 4 Times in 3 Posts
Default

That's what I did. My problem was that the hkey classes root registry didn't have administrator or system permissions.
Reply With Quote Tip this Post
  #4  
Old 07-23-2008, 09:06 PM
Forums Moderator
Carrier: AT&T
 
Location: N.C.
Join Date: Jul 2008
Posts: 10,440
Likes Received: 388
Thanked 558 Times in 235 Posts
Default

Thank you Sunkast. I don't use Vista, but I'm sure this will be useful for some members.
__________________
Reply With Quote Tip this Post
  #5  
Old 07-23-2008, 09:19 PM
Forums Moderator
Device(s): Pearl and Apple
Carrier: Rogers TalkSpot UMA
 
Location: Canada
Join Date: Dec 2007
Posts: 9,301
Likes Received: 28
Thanked 139 Times in 87 Posts
Default

Quote:
Originally Posted by sunkast View Post
That's what I did. My problem was that the hkey classes root registry didn't have administrator or system permissions.
Were you able to complete the installation after the process?

Interesting. Which version of Windows are you running?
Reply With Quote Tip this Post
    Thread Author   #6  
Old 07-23-2008, 09:29 PM
Super Bad
Device(s): 8320 (Curve)
Carrier: T-Mobile
 
Join Date: Dec 2007
Posts: 11,786
Likes Received: 3
Thanked 4 Times in 3 Posts
Default

Yeah, once I completed the process, I was able to run the command prompt and manually register the DLLs that failed previously. I'm running XP Pro SP2.
Reply With Quote Tip this Post
  #7  
Old 07-23-2008, 09:31 PM
Forums Moderator
Device(s): Pearl and Apple
Carrier: Rogers TalkSpot UMA
 
Location: Canada
Join Date: Dec 2007
Posts: 9,301
Likes Received: 28
Thanked 139 Times in 87 Posts
Default

Sweet, thanks for sharing.

Appropriately titled as well. Should be a valuable reference for somebody.
Reply With Quote Tip this Post
  #8  
Old 08-29-2008, 01:49 PM
CrackBerry Newbie
Device(s): 8310 (Curve)
Carrier: AT&T/Cingular
 
Join Date: Aug 2008
Posts: 1
Likes Received: 0
Thanked 0 Times in 0 Posts
Default Good fix, but does not work on XP SP3

I tried the fix on my new Dell XP SP3 computer, but it did not work.

Downloaded Blackberry Desktop installer 4.50 b016 multilanguage nomediamanager

Ran the installer, got the standard error dialogs.

Ran the subinacl scripts.

Ran the regsrv32 commands as above.

The following errors were observed from the regsrv32 executions:

(dialog)
DllRegisterServer in gw.dll failed.
Return code was 0x80070005
(dialog)
You are attempting to open a file of type 'Application Extension' (.dll)
Blah Blah Blah
[Open With...][Cancel]
(dialog)
DllRegisterServer in DesktopSetup_pb.dll failed.
Return code was 0x80070005
(dialog)
LoadLibrary("SyncAE_pb.dll")failed - The specified module could not be found.

Any suggestions?

Matt
Reply With Quote Tip this Post
  #9  
Old 08-30-2008, 12:50 PM
CrackBerry Newbie
Device(s): 8320 (Curve)
Carrier: T-Mobile
 
Join Date: Aug 2008
Posts: 6
Likes Received: 0
Thanked 0 Times in 0 Posts
Default Ditto for not working on SP3

Yeah, I have been having problems, too. On my work desktop (WinXP x64) I installed the DesktopManager software without hitch (didn't even need the fix), but on my home desktop (WinXP Pro SP3) I keep getting the:

Error 1904.Module C:...GW.dll failed to register. HRESULT -2147220473. Contact your support personnel.

(I am also getting the same error message for gwapi.dll, desktopsetup_pb.dll, and syncAE_pb.dll.)

The above fix did not work for me. I was able to register all of the modules after running reset.cmd, but when I would open up Desktop Manager it would never connect to my Curve 8320 vis USB or Bluetooth. With Bluetooth it would recognize the phone and it would even pop up a message saying that it had "detected the device". It would ask if I wanted to connect and I would say yes and then nothing would happen. Another 30-60 seconds later it would pop up the same message saying it detected my Blackberry and asking if I wanted to connect. After about the tenth time of this loop I closed out the Desktop Manager. I uninstalled the software and deleted the program folders and then logged onto the "Administrator" account (my account is also an admin acct, but I logged onto the default admin account that is labeled "Administrator" by Windows). Upon logging into this account, I attempted to upgrade the Windows Installer 3.1 (a la RIM "resolution #5" at: ww.blackberry.com/btsc/articles/963/KB03928_f.SAL_Public.html), but it told me that I have a newer version and couldn't do that (WinXP SP3). So, I registered the atl.dll and tried installing the Desktop Manager software again (I'm installing v4.6 w/ Media Manager). Once again I got the same error messages. So I restarted and attempted to manually register the dll's again, and I'm now getting the same error message for all those dll's:

DllRegisterServer in gw.dll failed.
Return code was: 0x80070005

So, to sum it all up, I've tried all six "resolutions" by RIM and the first "workaround." The second "workaround" doesn't apply because there is no option to "ignore," there is only one button that is "Ok." I'm starting to get pretty pissed off by all of this and I'm ready to throw the **bleep** Blackberry out the window. I love the phone and it's capabilities, but if I can't use the capabilities then it's pretty much worthless to me... then I should have just gotten an iPhone or a WinMobile device. It makes no sense to me that the software will install just fine on my WinXP x64 machine at work and not on my 32-bit home machine. Usually it's the 32-bit progs on the 64-bit machine that cause problems. Any ideas?

Here are my details:

BB Curve 8320, OS v4.5.0.52 (Platform 2.7.0.66)
DesktopManager Software v4.6 (w/ MediaManager)
WinXP Pro, Service Pack 3
Pentium 4, 2.80GHz
2GB DD400 Dual-Channel RAM
Reply With Quote Tip this Post
  #10  
Old 09-25-2008, 12:05 AM
CrackBerry Newbie
Device(s): 8330 (Curve)
Carrier: Alltel
 
Join Date: Sep 2008
Posts: 4
Likes Received: 0
Thanked 0 Times in 0 Posts
Default Halfway Fixed??

Just got a Blackberry Curve today to replace a satanic MotoQ - love the phone - hate the fact that I've worked five hours to get software installed on my laptop. Have the exact same error messages as in the original post of this thread. I went through the steps listed to download the software that ran on Notepad - and then the four "fixes". Two of them worked fine, but when I typed in the last command for GWApi.dll, I got a message that said this could goof up my computer (sorry - didn't get it copied) and wondering if I wanted to cancel it or look for a program to enter it....so I cancelled it and went to the next one, which worked fine (Desktop Setup).

Then got this message when trying to fix the last error: RegSvr32 LoadLibrary ("SyncAE_pb.dll") failed. The specified module could not be found.

Any ideas? I KNOW calling Alltel Tech support will mean trouble - their suggestions were that I uninstall antispyware, and that I use version 4.3 instead of 4.6, since that's the one they support (which is what is presently installed on my laptop (Gateway PC running Windows XP), evidently still with a couple errors. I want to sync with Outlook 2007, but afraid to do anything until I get this resolved.
Reply With Quote Tip this Post
  #11  
Old 09-25-2008, 12:37 AM
CrackBerry Abuser
Device(s): 7100r>7130g>8300>9000>9700>9860
Carrier: Telus
 
Location: Ottawa, Canada
Join Date: Aug 2008
Posts: 350
Likes Received: 17
Thanked 11 Times in 11 Posts
Default

Return code was: 0x80070005

this is a windows problem. it means that either the registry or something in your windows system files is broken/corrupted.

has anyone tried one of the Windows repair options?

if repair doesn't work then nuke and pave: format c: /u /q -> install windows
__________________
There are 10 types of people in the world: those that understand Binary and those that don't.

Last edited by Sarcasm Detector; 09-25-2008 at 12:40 AM.
Reply With Quote Tip this Post
  #12  
Old 09-25-2008, 12:49 AM
CrackBerry Newbie
Device(s): 8330 (Curve)
Carrier: Alltel
 
Join Date: Sep 2008
Posts: 4
Likes Received: 0
Thanked 0 Times in 0 Posts
Default ???

I'm sorry - really computer illiterate.... I can follow step by step directions, but probably won't understand any of what I'm doing!

Were you replying to my post about the remaining problems with two of the four errors? And are you suggesting I may need to completely wipe my computer and start over with a new install of Windows? Aaarrgggh.

I wondered if there was a problem - haven't been able to get the latest updates to install, but had read in a forum that they may cause problems anyway, so I've just been ignoring it.
Reply With Quote Tip this Post
  #13  
Old 09-25-2008, 01:18 AM
CrackBerry Abuser
Device(s): 7100r>7130g>8300>9000>9700>9860
Carrier: Telus
 
Location: Ottawa, Canada
Join Date: Aug 2008
Posts: 350
Likes Received: 17
Thanked 11 Times in 11 Posts
Default

Quote:
Originally Posted by btkmkoch View Post
I'm sorry - really computer illiterate.... I can follow step by step directions, but probably won't understand any of what I'm doing!

Were you replying to my post about the remaining problems with two of the four errors? And are you suggesting I may need to completely wipe my computer and start over with a new install of Windows? Aaarrgggh.

I wondered if there was a problem - haven't been able to get the latest updates to install, but had read in a forum that they may cause problems anyway, so I've just been ignoring it.
wait what? are you saying you haven't been able to update windows?

i was replying to those who posted error: Return code was: 0x80070005. This error may or may not be related to Error 1904.Module which is what this thread is about. My suspicion is that the former causes the latter.

0x80070005 = Access Denied. if you are using a super admin account and you get Access Denied you options are limited.
__________________
There are 10 types of people in the world: those that understand Binary and those that don't.

Last edited by Sarcasm Detector; 09-25-2008 at 01:20 AM.
Reply With Quote Tip this Post
  #14  
Old 09-25-2008, 01:01 PM
CrackBerry Newbie
Device(s): 8330 (Curve)
Carrier: Alltel
 
Join Date: Sep 2008
Posts: 4
Likes Received: 0
Thanked 0 Times in 0 Posts
Unhappy worse than when I started

I don't have any problem with the code about an administrator....."just" the Error 1904. Decided to go ahead and install Windows Service Pack 3 last night after running the fix in this forum, and it installed fine - everything works on my laptop as before. But still the problem with Blackberry Desktop. So I uninstalled and reinstalled to see if the Windows Service Pack magically made a difference. Nothing - the same four errors. Tried to go through the steps again, but am wondering if I need to somehow uninstall that Windows download that is in Notepad and start from scratch again? When I ran the regsvr32 this time, it showed 12 things had failed (had "just" 5 last night) - I couldn't write them all down fast enough, of course, but a couple referenced the start menu and Act! 2005, as well as LOCAL_MACHINE\SECURITY\Policy\Secrets\SAI : 2 The system cannot... and SOFTWARE\Microsoft\WindowsNT\current version\per . Then the notepad automatically closes, so I can't type in the things to install those items directly like instructed, like I think I did last night.

I tried typing the command in at Start-Run, but get a cd error box that says "Windows cannot find 'cd.' Make sure you typed the name correctly, and then try again. To search for a file, click the start button, and then click search." I hope this is just because of where I tried to type it and not something new.

I'm about ready to give up and suffer with a Q...I still haven't even tried to sync my Curve for fear of somehow screwing things up worse and losing my Outlook data.

Is this more than I can fix on my own with the help of the amazing Crackberry forum?
Reply With Quote Tip this Post
  #15  
Old 09-30-2008, 06:11 PM
CrackBerry User
Device(s): 8320 (Curve)
Carrier: T-Mobile
 
Join Date: Dec 2007
Posts: 14
Likes Received: 0
Thanked 0 Times in 0 Posts
Question Synch shuts down Desktop manager

Blackberry Curve 8320:
In running Synchronize in Desktop Manager, I am using it with Outloook 2007. The process first synchs the Contacts fine, but then when going through the synch for the Calandar, I get a message that Desktop Manager needs to shut down. I am running 4.6.0.12 Desktop Manager and Handheld 4.5.0.55.
Reply With Quote Tip this Post
Reply
BlackBerry Forums at CrackBerry.com > > BlackBerry OS and Desktop Management Software Discussion > Desktop Software   How to fix Desktop Manager Error 1904

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes