DetailPage-MSS-KB

Microsoft small business knowledge base

Article ID: 926970 - Last Review: October 8, 2011 - Revision: 2.0

Important This article contains information about how to modify the registry. Make sure that you 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  (http://support.microsoft.com/kb/256986/ ) Description of the Microsoft Windows registry

On This Page

SYMPTOMS

When you debug a Microsoft Visual Basic 2005 application in Microsoft Visual Studio 2005, you may experience a performance problem. Additionally, a delay that is longer than 10 seconds may occur when Visual Studio 2005 steps through each line of the code. This problem occurs if the source code is on a network share.

RESOLUTION

Service pack information

To resolve this problem, obtain the latest service pack for Visual Studio 2005. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
929697  (http://support.microsoft.com/kb/929697/ ) How to obtain the latest Visual Studio 2005 service pack

Hotfix information

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only 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 Visual Studio 2005 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support (http://support.microsoft.com/contactus/?ws=support)
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.

Prerequisites

You must have Visual Studio 2005 and the Microsoft .NET Framework 2.0 installed to apply this hotfix.

Restart requirement

You do not have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix replaces the hotfixes that are described in the following Microsoft Knowledge Base articles. For more information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
915038  (http://support.microsoft.com/kb/915038/ ) FIX: You may receive Visual Basic compiler error messages when you are developing a Visual Basic 2005 project in Visual Studio 2005
917452  (http://support.microsoft.com/kb/917452/ ) FIX: You may experience performance issues when you use solutions that contain large Visual Basic projects in Visual Studio 2005
920145  (http://support.microsoft.com/kb/920145/ ) FIX: You may receive an error message when you consume an assembly that has an obfuscated generic type in Visual Studio 2005
919904  (http://support.microsoft.com/kb/919904/ ) FIX: You may receive an error message when you try to build a Web project that references a .NET Compact Framework 2.0 assembly in Visual Basic 2005
920805  (http://support.microsoft.com/kb/920805/ ) FIX: You may experience slow performance when you work with a Visual Basic solution that contains many projects in Visual Studio 2005
924162  (http://support.microsoft.com/kb/924162/ ) FIX: The Visual Basic 2005 compiler unexpectedly exits when you expand an item in the Visual Studio 2005 Watch window after you install the hotfix from KB article 920805
926405  (http://support.microsoft.com/kb/926405/ ) FIX: The Visual Basic 2005 compiler unexpectedly exits when you work with a Visual Basic 2005-based project in Visual Studio 2005

File information

This hotfix includes the following packages:
  • A Visual Studio 2005 package
  • A .NET Framework 2.0 package
You must install both of the packages.

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 item in Control Panel.
Visual Studio 2005 hotfix files
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Cpde.dll8.0.50727.230487,93618-Oct-200616:08x86
Msenv.dll8.0.50727.2309,107,45618-Oct-200616:23x86
Msvb7.dll8.0.50727.2303,144,70418-Oct-200616:25x86
Msvbprj.dll8.0.50727.2302,779,13618-Oct-200616:25x86
The .NET Framework 2.0 hotfix file
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Vbc.exe8.0.50727.2301,163,52018-Oct-200619:22x86

Registry information

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 the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

After you apply this hotfix, you must manually add the OptimizePDB registry entry. To do this, follow these steps:
  1. Click Start, click Run, type regedit, and then click OK.
  2. Locate and then click the following registry subkey:
    HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\8.0\VB Editor
    Note If you use Visual Basic 2005 Express Edition, locate and then click the following registry subkey:
    HKEY_CURRENT_USER\Software\Microsoft\VBExpress\8.0\VB Editor
  3. Click New, and then click DWORD Value.
  4. Type OptimizePDB, and then press ENTER.
  5. Right-click OptimizePDB, and then click Modify.
  6. Type 1, and then click OK.
  7. Exit Registry Editor.
After you add the OptimizePDB registry entry, follow these steps:
  1. In Visual Studio 2005, start the Visual Basic 2005 application.
  2. On the Build menu, click Clean Solution.
Note The OptimizePDB registry entry improves the Visual Basic 2005 compiler. Therefore, the Visual Basic 2005 compiler can optimize the .pdb file. However, the format of the new .pdb file is not fully compatible with the format of the old .pdb file. Therefore, a version of Visual Studio 2005 that does not have this hotfix applied may be unable to recognize the new .pdb file. To resolve this problem, use one of the following methods:
  • Apply this hotfix on all the computers that you use to develop.
  • On the Build menu, click Clean Solution, or click Rebuild Solution before you start to debug.

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 Visual Studio 2005 Service Pack 1.

MORE INFORMATION

For more information, click the following article number to view the article in the Microsoft Knowledge Base:
824684  (http://support.microsoft.com/kb/824684/ ) Description of the standard terminology that is used to describe Microsoft software updates

APPLIES TO
  • Microsoft .NET Framework 2.0
  • Microsoft Visual Studio 2005 Team Edition for Software Architects
  • Microsoft Visual Studio 2005 Team Edition for Software Developers
  • Microsoft Visual Studio 2005 Team Edition for Software Testers
  • Microsoft Visual Studio 2005 Standard Edition
  • Microsoft Visual Studio 2005 Professional Edition
Keywords: 
kbqfe KB926970
Share
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support