Microsoft KB Archive/264659

= BUG: Cannot Add Phone-Book Entry to User-Defined Phone Book by Using API or Rasphone.exe =

PSS ID Number: 264659

Article Last Modified on 11/18/2003

-

The information in this article applies to:


 * Microsoft Windows 2000 Server SP1
 * Microsoft Windows 2000 Advanced Server SP1
 * Microsoft Windows 2000 Professional SP1

-



This article was previously published under Q264659



SYMPTOMS
If you try to create a new phone-book entry (RAS connectoid) in a phone-book file other than the default phone book, the process may not work correctly. Instead, an empty phone book is created and the new entry is added to the default phone book.



CAUSE
This is problem is caused by a bug in Windows 2000.



RESOLUTION
Use the RasSetEntryProperties function to create Remote Access Service (RAS) entries.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.



Steps to Reproduce Behavior
 At the command prompt, type the following:

rasphone -f &quot;c:\myphone.pbk&quot; -a newentry

The Net Connection Wizard is displayed to create the new phone-book entry, &quot;newentry&quot;. Follow the steps in the wizard to create the entry. View the listing for drive C and locate the Myphone.pbk file. Notice that the file is created, however, if you try to open the file, you will receive a message stating that the phone book is empty, and asking whether you want to add an entry to it. Go to the default phone book in the Network and Dial Up Connections folder. Notice that the &quot;newentry&quot; is created there. To access the Network and Dial Up Connections folder, on the Start menu, point to Programs, point to Accessories, point to Communications, and then click Network and Dial Up Connections).

This same behavior can be reproduced by using the RasEntryDlg function or the RasCreatePhonebookEntry function and setting lpszPhonebook = &quot;c:\myphone.pbk&quot;.

The problem does not occur on Microsoft Windows NT 4.0, Microsoft Windows 95, or Microsoft Windows 98.

Keywords: kbAPI kbbug kbnetwork KB264659

Technology: kbwin2000AdvServ kbwin2000AdvServSearch kbWin2000AdvServSP1 kbwin2000Pro kbwin2000ProSearch kbWin2000ProSP1 kbwin2000Search kbwin2000Serv kbwin2000ServSearch kbwin2000ServSP1 kbWinAdvServSearch

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© 2004 Microsoft Corporation. All rights reserved.