Application Access Violation Error In Nwscript.exe During Logon

Last reviewed: December 5, 1997
Article ID: Q164281
The information in this article applies to:

- Microsoft Windows NT Workstation version 4.0 - Microsoft Windows NT Server version 4.0

SYMPTOMS

During the normal Windows NT logon process, when a NetWare login script is run by Client Service for NetWare (CSNW) or Gateway Service for NetWare (GSNW), the following pop-up error message appears:

   An application error has occurred and an application error log is being
   generated. NWSCRIPT.exe Exception: access violation (0xc0000005),
   Address: 0x01cae84b

This problem occurs when the NetWare server in use is Novell NetWare version 4.x. It does not matter whether or not the CSNW or GSNW computer is attaching to the NetWare server as a bindery or NDS user.

CAUSE

Windows NT's Nwscript.exe logon script processor cannot interpret the NetWare login script properly. The most common cause of the problem is the use of conditional statements using the ELSE statement, when combined with external DOS commands. External DOS commands may be called from NetWare login scripts by using the #. For example, the following login script will cause the problem:

IF MEMBER "MYGROUP" THEN

   #CAPTURE Q=QUEUENAME
ELSE
   #CAPTURE Q=OTHERQUEUE
ENDIF

NOTE: Capitalization and layout as above is not required, and changes to capitalization and layout from above will not affect the problem.

WORKAROUND

Avoid the use of ELSE statements with external DOS commands in NetWare login scripts as shown above. Check for any possible syntax problems in the NetWare login scripts (both in the System Login script and users' personal logon scripts). If the problem is difficult to track down, try eliminating a section of the login script at a time to find the problem.

STATUS

Microsoft has confirmed this to be a problem in Windows NT version 4.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

Keywords          : kbbug4.00 NTINTEROP NTPROTOCOL NTSrvWkst kb3rdparty kbnetwork
Version           : WinNT:4.0
Platform          : winnt
Issue type        : kbbug


================================================================================


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: December 5, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.