Your Word documents take a long time to open when they have attached templates (823372)



The information in this article applies to:

  • Microsoft Word 2002, when used with:
    • the operating system: Microsoft Windows XP

Important This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:

256986 Description of the Microsoft Windows registry

SYMPTOMS

When you open a Microsoft Word 2002 document on a computer with Microsoft Windows XP installed, the document may take longer then expected to open. For example, the document may take 5 to 10 minutes to open.

This symptom may occur if the document has a template attached or linked, and if one of the following conditions is true:
  • The attached template, its folder, or its share is missing.

    -or-
  • The attached template has been moved.

    -or-
  • The attached template has been renamed.

RESOLUTION

This problem was first fixed in a hotfix that is now contained in a service pack. If you have installed SharePoint Portal Server 2001 Service Pack 3 or a later service pack, you do not have to apply the hotfix.

Service pack information

This problem was first corrected in SharePoint Portal Server 2001 Service Pack 3.

To resolve this problem, obtain the latest service pack for Microsoft SharePoint Portal Server 2001. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

312963 How to obtain the latest SharePoint Portal Server 2001 service pack

Hotfix information

Part 1: Download and Install the Fix for Windows XP

A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Only apply it to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Microsoft Windows XP service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the hotfix. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Note This fix will reduce the delay described in the "Symptoms" section of this article, but will not completely get rid of the delay.

Windows XP Version for x86 Environments (for 32-bit processors)

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.
   Date         Time   Version   Size       File name
   -------------------------------------------------------------------------------
   17-Jul-2003  18:50  5.3.18.6    732,448  Windowsxp-kb823372-x86-enu-symbols.exe  
   17-Jul-2003  18:50  5.3.18.6  2,933,536  Windowsxp-kb823372-x86-enu.exe 
After the hotfix is installed, the English version of this fix has the file attributes (or later) that are listed in the following table:
   Date         Time   Version        Size        File name       Platform
   -----------------------------------------------------------------------
   16-Jul-2003  22:02  6.0.2800.1248   8,242,176  Shell32.dll     X86
   16-Jul-2003  21:59  5.1.2600.1248      62,976  Webclnt.dll     X86
   08-Jul-2003  15:31  5.1.2600.1243     557,568  Xpsp2res.dll    X86
Windows XP Version for IA-64 Environments (for 64-bit Intel Processors)

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.
   Date         Time   Version     Size       File name
   ----------------------------------------------------------------------------------
   17-Jul-2003  18:54  5.3.18.6      943,392  Windowsxp-kb823372-ia64-enu-symbols.exe  
   17-Jul-2003  18:54  5.3.18.6    7,108,896  Windowsxp-kb823372-ia64-enu.exe
After the hotfix is installed, the English version of this fix has the file attributes (or later) that are listed in the following table:
   Date         Time   Version        Size        File name        Platform
   ------------------------------------------------------------------------
   16-Jul-2003  22:38  6.0.2800.1248  14,375,424  Shell32.dll      IA-64
   16-Jul-2003  22:38  5.1.2600.1248     210,944  Webclnt.dll      IA-64
   08-Jul-2003  15:31  5.1.2600.1243     557,056  Xpsp2res.dll     IA-64
   16-Jul-2003  22:02  6.0.2800.1248   8,242,176  Shell32.dll     x86
   16-Jul-2003  21:59  5.1.2600.1248      62,976  Webclnt.dll     x86
   08-Jul-2003  15:31  5.1.2600.1243     557,568  Xpsp2res.dll    x86  

Note This update is available in the following languages:
  • Arabic (Saudi Arabia)
  • Chinese (PRC)
  • Chinese (Taiwan)
  • Czech
  • Danish
  • Dutch (Netherlands)
  • Finnish
  • French
  • German
  • Greek
  • Hebrew
  • Hungarian
  • Italian (Italy)
  • Japanese
  • Korean
  • Norwegian (Bokmal)
  • Polish
  • Portuguese (Brazil)
  • Portuguese (Portugal)
  • Russian
  • Spanish
  • Swedish
  • Turkish

Part 2: Activate The Fix

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

Note If the HKEY_LOCAL_MACHINE\System\CCS\Services\WebClient\Parameters\ServerNotFoundCacheLifeTimeInSec registry key exists, then modify the existing value data in the Edit DWORD Value dialog box.

After you install this fix, follow these steps to set the ServerNotFoundCacheLifeTimeInSec registry key and activate the fix:
  1. Quit Word.
  2. Click Start, and then click Run.
  3. In the Open box, type regedit, and then click OK.
  4. Locate, and then click the following registry key: HKEY_LOCAL_MACHINE\System\CCS\Services\WebClient\Parameters
  5. With the key selected, point to New on the Edit menu, and then click DWORD.
  6. Type ServerNotFoundCacheLifeTimeInSec, and then press ENTER.
  7. Right-click ServerNotFoundCacheLifeTimeInSec, and then click Modify.
  8. In the Edit DWORD Value dialog box, click Decimal.
  9. In the Value data box, type 180, and then click OK.
  10. On the File menu, click Exit to quit Registry Editor.

WORKAROUND

For more information about how to work around this problem, click the following article number to view the article in the Microsoft Knowledge Base:

830561 Documents that have attached templates take a long time to open in Word 2002 and in Word 2003

This code will change the attached template to Normal, but there are a number of caveats.

Warning Any use by you of the code that is provided in this example is at your own risk. Microsoft provides this macro code "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. The following macro will loop through all the documents in a folder and change the old server name with the Normal.dot. If a document is password protected in anyway, the template will not be changed. The code will fail.
Sub Test() 
Dim strFilePath As String 
Dim strPath As String 
Dim intCounter As Integer 
Dim strFileName As String 
Dim OldServer As String 
Dim objDoc As Document 
Dim objTemplate As Template 
Dim dlgTemplate As Dialog 
Dim nServer As Integer
 
'hardcode the name of the old server. 
OldServer = "enter the name of the Old Server" 
nServer = Len(OldServer) 
strFilePath = InputBox("What is the folder location that you want to use?") 
If Right(strFilePath, 1) <> "\" Then strFilePath = strFilePath & "\" 
strFileName = Dir(strFilePath & "*.doc") 
     Do While strFileName <> "" 
          Set objDoc = Documents.Open(strFilePath & strFileName) 
          Set objTemplate = objDoc.AttachedTemplate 
          Set dlgTemplate = Dialogs(wdDialogToolsTemplates) 
          strPath = dlgTemplate.Template 
             If LCase(Left(strPath, nServer)) = LCase(OldServer) Then 
                 objDoc.AttachedTemplate = NormalTemplate 
             End If
          strFileName = Dir() 
          objDoc.Save 
          objDoc.Close 
     Loop 
Set objDoc = Nothing 
Set objTemplate = Nothing 
Set dlgTemplate = Nothing 
End Sub

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
This problem was first corrected in SharePoint Portal Server 2001 Service Pack 3.

Modification Type:MinorLast Reviewed:10/25/2005
Keywords:kbHotfixServer kbQFE kbSharePtPortalSvr2001SP3fix kbQFE kbbug kbfix kbofficexppresp3fix KB823372 kbAudEndUser