locked
RRAS doesn't start. Error 8007042a. EventID 20103 RRS feed

  • Question

  • Hi all.
    When I install and enable the Routing and Remote Access service on a Windows 2008 R2 (with Remote Access and NAT), the service does not start (EventID 20103 - Unable to load C:\Winnt\System32\Iprtrmgr.dll).
    In HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\RemoteAccess\RouterManagers\<protocol>\DllPath:
     Value data: %SystemRoot%\System32\Iprtrmgr.dll
    Iprtrmgr.dll is located in the C:\Windows\System32\

    When I install RRAS without Remote Access, the service is start without errors.

    Can anybody help me to solve this problem?
    P.S. sorry for my bad english.
    Wednesday, September 16, 2009 3:04 PM

Answers

  • Hi,

     

    This issue typically results from the problem in the NIC driver. The improper registry entries are added to the TCP/IP registry store and that may prevent the RRAS from the functioning.

     

    A TCP/IP reset will delete all unnecessary registry keys and restore some of them to the default settings. You may verify the registry changing in "netsh int ip reset" output.

     

    • Marked as answer by Miles Zhang Wednesday, September 30, 2009 10:20 AM
    Monday, September 21, 2009 10:38 AM

All replies

  • Hello,

     

    Thanks for your post here.

    From my experience, you may try to reset the TCP/IP on the Windows Server 2008 R2 server to check how it works.

     

    To reset the TCP/IP, you may refer to:

     

    How to reset Internet Protocol (TCP/IP)

    http://support.microsoft.com/kb/299357

     

    If you have any questions or concerns, please do not hesitate to let me know.

    Friday, September 18, 2009 5:58 AM
  • hi Miles ,

    i have a question, how does resetting of TCP resolves the issue ? , if that is the cause the entire tcp stack should not work, i understand that tcp , ip , udp , ipsec are embedded into tcpip.sys driver in windows.  So when we try to install any of the application , it tries to write to relevant registries and registry the dll , i guess this might be problem with the dll registration ?


    sainath !analyze
    Friday, September 18, 2009 10:39 AM
  • Hi,

     

    This issue typically results from the problem in the NIC driver. The improper registry entries are added to the TCP/IP registry store and that may prevent the RRAS from the functioning.

     

    A TCP/IP reset will delete all unnecessary registry keys and restore some of them to the default settings. You may verify the registry changing in "netsh int ip reset" output.

     

    • Marked as answer by Miles Zhang Wednesday, September 30, 2009 10:20 AM
    Monday, September 21, 2009 10:38 AM
  • Hi, I'm facing more or less the same problem here.

    I have a fresh install of a Windows Server 2008 R2 Datacenter 64-bit SP1, it's a cloud server from a third-party supplier, and it has only one network interface. When I choose to configure and enable RRAS I have to go with the 'custom configuration' option because of having just one network interface, and then I choose only the 'VPN access' option. When I finish the wizard, RRAS asks to start service and them it says that an error occurred.

    Looking at the Event Viewer there are two errors:

    • Event ID: 20103; Source: RemoteAccess; Message: Unable to load C:\Windows\System32\iprtrmgr.dll.
    • Event ID: 7024; Source Service Control Manager; Message: The Routing and Remote Access service terminated with service-specific error A device attached to the system is not functioning..

    When I try to start the RRAS service again, manually, it says that the service returned a service-specific error code: 8007042a

    I've tried to reset the TCP/IP as suggested on this thread but it didn't solve the problem.

    Also I've tried to delete the registry key KEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\RemoteAccess\RouterManagers\Ipv6 (but exported it before, to keep a backup), as suggested on this thread:
    http://social.technet.microsoft.com/Forums/en-US/winserverNIS/thread/3cf191c6-cbf2-4d15-9648-3553be188d6b/

    and them it worked! But, as stated by someone there, we should not disable IPv6:
    http://msmvps.com/blogs/acefekay/archive/2010/05/27/how-to-disable-rss-tcp-chimney-feature-and-ipv6.aspx

    But disabling it solves the problem (for me and for other people), so, what is the right action to take??

    Regards.


    • Edited by LoboFX Monday, October 24, 2011 8:21 PM
    Monday, October 24, 2011 8:20 PM
  • A complete solution to the RRAS won’t start with 8007042a or event ID 7024, aka the “routing remote access unable to load Iprtrmgr.dll” problem.

    History: The history of this error, which has mostly gone unsolved, dates back to Windows 2000.

    Platforms affected: Windows Server 2008 R2, Server 2008, Server 2003 R2, Server 2003, Server 2000 (both 32-bit and 64-bit installs are affected).

    Error Messages:

    1. Event ID: 7024 The Routing and Remote Access service terminated with service-specific error 2 (0x2).
    2. Event ID: 7024 The Routing and Remote Access service terminated with service-specific error 31 (0x1F).
    3. Event ID: 7024 The Routing and Remote Access service terminated with service-specific error 20205 (0x4EED).
    4. Event ID: 7024 The Routing and Remote Access service terminated with service-specific error 193 (0xC1).
    5. Event ID: 20103 Unable to load C:\WINDOWS\System32\iprtrmgr.dll . (32-bit installs).
    6. Event ID: 20103 Unable to load C:\WINDOWS\SysWOW64\iprtrmgr.dll . (64-bit installs).

    Cause: There are two basic causes for this error.

    1. An incorrect key in the registry if you are running IPv6.
    2. TCP/IPv4 corruption.

    Related causes:

    1. This has happened to me on a couple of Dell Windows 2003 R2 64-bit servers that had Broadcom NetXtreme II adapters. My problem was the second cause above, TCP/IP corruption, which I believe that happens for some reason when you install the driver for the Broadcom adapter. It certainly may happen with other adapters, but there were definitely a high number of unsolved cases on the Internet with various Broadcom adapters.

    Additional factors:

    1. This happened even on clean installs as I tested using both the Dell-specific Windows Server 2003 R2 media, and Microsoft media downloaded from the Volume License site. It happens with either media.

    Troubleshooting that did not work for me, or most people on the Internet:

    1. Reinstalling clean.
    2. Running sfc /scannow (I got no errors).
    3. Comparing, and replacing, the iprtrmgr.dll’s from a working server.
    4. Reinstalling the NIC’s after deleting them from Device Manager.
    5. Running “NETSH INT IP RESET C:\reset.log” or “NETSH RESET WINSOCK”.
    6. Running “NETSH WINSOCK RESET”.
    7. Checking for ghost adapters after setting devmgr_show_nonpresent_devices=1 and then showing hidden devices in Device Manager (I had none).
    8. Reregistering Oledb32.dll and Oledb32r.dll , and renaming C:\Windows\System32\ias \dnary.mdb, and ias.mdb files and restarting RRAS. Those files are located in the C:\Windows\SysWOW64 directory on 64-bit systems. This was in KB840696 http://support.microsoft.com/kb/840686.

    Solutions:

    1. If you have Server 2008, and are running TCP/IPv6, your problem is probably not TCP/IPv4 corruption, but rather that you have this extra key, HKEY_LOCAL_MACHINE\System\currentcontrolset\services\remoteaccess\routermanagers\IPV6, which you will remove after you back it up by exporting it. Removing this key was an easy solution that widely helped many people on the Internet.

     If you still want to use the TCP/IPv6 protocol you may have to do more. Since I did not apply to my server, and I could not test it, you may still have IPv6 corruption, and may want to troubleshoot by removing and reinstalling the TCP/IPv6, akin to the solution below. The above solution may just be masking potential corruption by avoiding the issue.

    1. If you are not running IPv6, the chances are that you have TCP/IPv4 corruption, and the solution is to reinstall it. If you have never noticed, if you try to uninstall TCP/IP, it is grayed out. To get around that, I followed KB 325356: http://support.microsoft.com/kb/325356 . That says it is for a domain controller, but works on member servers also. The steps are:
      • Just in case, disable RRAS in the RRAS mmc, as this will uninstall it.
      • Backup your registry.
      • Ignore steps  1-4, and step 21 if you are just on a member server.
      • 1.Restart the domain controller.
      • 2.When the BIOS information appears, press F8.
      • 3.Select Directory Services Restore Mode, and then press ENTER.
      • 4.Use the Directory Services Restore Mode password to log on.
      • 5.Click Start, and then click Run.
      • 6.In the Open box, type regedit, and then click OK.
      • 7.Locate the following registry subkeys:
      • HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Winsock
      • HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Winsock2
      • 8.Right-click each key, and then click Delete.
      • 9.Click Yes to confirm the deletion of each key.
      • 10.Close Regedit.
      • 11.Locate the Nettcpip.inf file in %winroot%\inf, and then open the file in Notepad.
      • 12.Locate the [MS_TCPIP.PrimaryInstall] section.
      • 13.Edit the Characteristics = 0xa0 entry and replace 0xa0 with 0x80.
      • 14.Save the file, and then exit Notepad.
      • 15.In Control Panel, double-click Network Connections, right-click Local Area Connection, and then select Properties.
      • 16.On the General tab, click Install, select Protocol, and then click Add.
      • 17.In the Select Network Protocols window, click Have Disk.
      • 18.In the Copy manufacturer's files from: text box, type c:\windows\inf, and then click OK.
      • 19.Select Internet Protocol (TCP/IP), and then click OK. (Note: This step will return you to the Local Area Connection Properties screen, but now the Uninstall button is available).
      • 20.Select Internet Protocol (TCP/IP), click Uninstall, and then click Yes.
      • 21.Restart your computer, and then select Directory Services Restore Mode as mentioned in steps 2 - 4.
      • 22.In Control Panel, double-click Network Connections, right-click Local Area Connection, and then select Properties.
      • 23.On the General tab, click Install, select Protocol, and then click Add.
      • 24.In the Select Network Protocols window, click Have Disk.
      • 25.In the Copy Manufacturer's files from text box, type c:\windows\inf, and then click OK.
      • 26.Select Internet Protocol (TCP/IP), and then click OK.
      • 27.Restart your computer.
      • Configure and Enable Routing and Remote Access.
      • At this point, your RRAS should start.

    Related problem and solution:

    1. When I would enter a static IP address, although it would hold the static, the properties would reset back to “Obtain an IP address automatically”. Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network and delete the Config key. Reenter your static settings, and they should hold, and rebuild that Config key.

    I hope this solves this difficult problem for many of you.

    Best Regards,

    Kevin Cotreau

    MCSE+I, MSDBA, MCNE


    • Edited by KCotreau Monday, June 11, 2012 5:08 AM
    • Proposed as answer by DuLazarine Monday, April 13, 2015 10:02 PM
    Monday, June 11, 2012 5:07 AM
  • Thanks, KCotreau, although disabling IPv6 is not recommended, the register tweak of removing ipv6 did the trick!
    Monday, April 13, 2015 10:04 PM
  • I know the thread is OLD but i encountered the same old issue today in the June of 2019 and below is what I did to resolve:

    delete the entire registry key as below: : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RemoteAccess\RouterManagers\Ipv6

    I hope this helps someone...


    • Edited by SHRIMANT PATEL Saturday, June 1, 2019 1:54 PM typo correction
    Saturday, June 1, 2019 1:53 PM
  • had this issue. brand new Server 2019 install. installed & configured RRAS, but then gave VPN addressing issue, then service wouldn't start at all. Apparently the VPN addressing issue is a confirmed bug in 2019 (link below), but the reg fix didn't resolve it for me.

    https://social.technet.microsoft.com/Forums/en-US/b726e5be-d576-4b54-a24b-6f61ff7f5ab6/rras-server-doesnt-get-initial-10-ip-allotment-from-dhcp-server?forum=winserverNIS

    eventually I just changed the location of the log file, as discussed in the article below, and everything fired up fine! so many wasted hours :(

    https://serverfault.com/questions/397466/rras-won-t-start-with-8007042a-or-event-id-7024-aka-the-routing-remote-access

    crazy!!

    Doug.


    • Edited by spug1 Sunday, July 19, 2020 1:06 PM added info
    Sunday, July 19, 2020 12:15 AM