How to use the debug version of the Wininet.dll file for Internet Explorer (884931)



The information in this article applies to:

  • Microsoft Windows Internet Services (WinInet)
  • Microsoft Internet Explorer (Programming) 6.0, when used with:
    • the operating system: Microsoft Windows XP
    • the operating system: Microsoft Windows Millennium Edition
    • the operating system: Microsoft Windows 2000
    • the operating system: Microsoft Windows 98 Second Edition
    • the operating system: Microsoft Windows 98
    • the operating system: Microsoft Windows NT 4.0
    • the operating system: Microsoft Windows 95
  • Microsoft Internet Explorer (Programming) 5.5, when used with:
    • the operating system: Microsoft Windows XP
    • the operating system: Microsoft Windows Millennium Edition
    • the operating system: Microsoft Windows 2000
    • the operating system: Microsoft Windows 98 Second Edition
    • the operating system: Microsoft Windows 98
    • the operating system: Microsoft Windows NT 4.0
    • the operating system: Microsoft Windows 95

SUMMARY

You can use the debug version of the Wininet.dll file to troubleshoot downloading and connectivity problems with Microsoft Internet Explorer. You must download this file and then save the file in the C:\Windows\System folder or the C:\Windows\System32 folder. When you run Internet Explorer, a log file is created that you can use to diagnose problems.

INTRODUCTION

This article discusses how to use the debug version of the Wininet.dll file to troubleshoot downloading and connectivity problems with Microsoft Internet Explorer. Specifically, it discusses how to create a log file that can be used by a Microsoft Support Professional for troubleshooting purposes.

MORE INFORMATION

Download the debug version of the Wininet.dll file

To download the debug version of the Wininet.dll file, visit the following Microsoft Web site:

Use the debug version of the Wininet.dll file

To use the debug version of the Wininet.dll file, follow these steps:
  1. Set the default home page in Internet Explorer to a Web page that is close to the problem Web page. This reduces the size of the log file that will be created.
  2. Quit Internet Explorer and any other Internet-based programs that are running on your computer.
  3. For Microsoft Windows Millennium Edition or later Windows versions, follow these steps:
    1. Start Windows Explorer, and then find the location where Internet Explorer is installed on your computer. Typically this is either the C:\Program Files\Internet Explorer folder or the C:\Program Files\Plus!\Microsoft Internet folder.
    2. If all file name extensions are visible, go to step 3g. Otherwise, click Folder Options on the Tools menu.
    3. Click the View tab.
    4. Click Show all files.
    5. Click to clear the Hide extensions of known file types check box.
    6. Close the Folder Options dialog box.
    7. Click File, point to New, and then click Text Document. Name the file "Iexplore.exe.local." If the icon for this new file remains as a Notepad document, repeat step 3e.
    8. Save a copy of the debug version of the Wininet.dll file in the Internet Explorer folder.
    For Microsoft Windows 95, Microsoft Windows 98, Windows 98 Second Edition, or Microsoft Windows NT 4.0, follow these steps:
    1. Start Windows Explorer, and then open the C:\Windows\System folder or the C:\Windows\System32 folder.
    2. Find the Wininet.dll file, and then rename it as "Wininet.old."
    3. Save a copy of the debug version of the Wininet.dll file in this folder.
  4. Click Start, click Run, type cmd, and then click OK.
  5. In Microsoft Windows 2000, Windows XP, or later Windows versions, type cd "c:\program files\internet explorer" or type cd "c:\program files\microsoft internet explorer", depending on where Internet Explorer is installed, and then press ENTER.

    For earlier versions of Windows, type cd "c:\windows\system" or cd "c:\windows\system32", and then press ENTER.
  6. Type set wininetlog=1, and then press ENTER.
  7. If you are not in the Internet Explorer folder, type cd "c:\program files\internet explorer" or cd "c:\program files\plus\microsoft internet".
  8. Type iexplore.exe, and then press ENTER.

    Internet Explorer starts and then opens the page that you set as your home page in step 1. The Wininet.log file appears on your desktop. Do not try to open this log file while the file is being written to.
  9. Try to re-create the downloading or connectivity problems that you have experienced. After you experience the problematic behavior, quit Internet Explorer.
  10. Close the Command Prompt window. The logging process stops.
  11. In Windows Explorer, delete the copy of the debug version of the Wininet.dll file that you saved in step 3.

    If you are running Windows 98 or an earlier version of Windows, you must restore the Wininet.dll that you renamed in step 3. To do this, follow these steps:
    1. Start Windows Explorer, and then open the C:\Windows\System folder or the C:\Windows\System32 folder.
    2. Locate and then delete the Wininet.dll file.
    3. Locate the Wininet.old file, and then rename it as "Wininet.dll."
After you create the Wininet.log file, you can then contact Microsoft Product Support Services to help your determine the cause of your Internet Explorer problem. For a complete list of Microsoft Product Support Services phone numbers and for information about support costs, visit the following Microsoft Web site:

Notes

  • For contrast purposes, you may want to create a log file for a similar page as the problem page where the problem does not occur. Also, a Network Monitor packet trace that is taken at the same time as the Wininet.log may be useful when you try to match network patterns during the WinInet communication.
  • You can change the location of where you save the log file by setting the WininetLogFile environment variable. For example, you can set the Temp folder of the computer for the log file location by typing the following command at a command prompt and then by pressing ENTER:

    set WininetLogFile =c:\temp\MyNewLog.log

  • If you are using a custom WinInet program, you can replace the name "Iexplore" in "Iexplore.exe.local" with your program file name. After you do this, run your program at a command prompt.

    Windows 2000 and later Windows versions support the usage of the Iexplore.exe.local file. This forces Internet Explorer to use just the DLLs in the Internet Explorer folder. This behavior is referred to as Dynamic-Link Library Redirection. For more information about this feature, visit the following Microsoft Developer Network (MSDN) Web site:

Modification Type:MajorLast Reviewed:7/11/2006
Keywords:kbwininternet kbweb ATdownload kbhowto KB884931 kbAudDeveloper kbAudITPRO