Error 0126 When You Start the Net2Com Service

Last reviewed: May 15, 1997
Article ID: Q114868
The information in this article applies to:
  • Microsoft Windows NT Resource Kit for Windows NT and Windows NT Advanced Server version 3.1

SYMPTOMS

When you start the Net2Com utility included with the Windows NT Resource Kit from the Services applet of Control Panel, error 0126 is generated.

CAUSE

The error is caused by missing null characters on some of the Net2Com entries in the Windows NT Registry. The cause of the error is not Net2Com but Net2Set, the installation program for Net2Com. Net2Set fails to write the additional terminator byte to the Registry. This causes the service loader to receive invalid information and thus generate the error. The problem occurs only if you install the Windows NT Resource Kit from floppy disks.

RESOLUTION

A corrected version of Net2Set is included on the Windows NT Resource Kit on CD-ROM.

If you are unable to install the Windows NT Resource Kit from CD-ROM, you can work around this problem by doing the following:

WARNING: Using Registry Editor incorrectly can cause serious, system-wide

   problems that may require you to reinstall Windows NT to correct them.
   Microsoft cannot guarantee that any problems resulting from the use of
   Registry Editor can be solved. Use this tool at your own risk.

  • Start Registry Editor (REGEDT32.EXE) and choose the following subkey:

          HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Net2com
    

  • Choose the SERVICEDLL value.

  • Make sure the NUM LOCK key is not selected.

  • Press END, SPACEBAR, BACKSPACE.

  • Choose the OK button.

    This causes Registry Editor to rewrite the value with the correct number of terminator characters.

  • Repeat steps 3-5 for the SERVICEINIT and SERVICEMAIN values.

  • Quit Registry Editor and start the Net2Com service.

    The products included here are manufactured by ESDL Inc., a vendor independent of Microsoft; we make no warranty, implied or otherwise, regarding these products' performance or reliability.


  • Additional query words: prodnt esdl winntrk ntas reskit err msg
    Keywords : kbtool ntreskit ntutil
    Version : 3.1
    Platform : WINDOWS


    THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

    Last reviewed: May 15, 1997
    © 1998 Microsoft Corporation. All rights reserved. Terms of Use.