Microsoft KB Archive/915038

= FIX: You may receive Visual Basic compiler error messages when you are developing a Visual Basic 2005 project in Visual Studio 2005 =

Article ID: 915038

Article Last Modified on 12/6/2006

-

APPLIES TO


 * Microsoft Visual Basic 2005
 * Microsoft Visual Studio 2005 Express Edition
 * Microsoft Visual Studio 2005 Professional Edition
 * Microsoft Visual Studio 2005 Standard Edition
 * Microsoft Visual Studio 2005 Team System Architect Edition
 * Microsoft Visual Studio 2005 Team System Developer Edition
 * Microsoft Visual Studio 2005 Team Foundation
 * Microsoft Visual Studio 2005 Team System Test Edition
 * Microsoft Visual Studio 2005 Tools for the Microsoft Office System

-





SYMPTOMS
When you are developing a Microsoft Visual Basic 2005 project in Microsoft Visual Studio 2005, you may receive the following error messages:

Visual Basic compiler is unable to recover from the following error: System Error &H8013141e& Save your work and restart Visual Studio

Microsoft(R) Visual Basic Compiler has encountered a problem and needs to close. We are sorry for the inconvenience.

The exception unknown software exception (0x800040005) occurred in the application at location

You may also receive the following error message in the Visual Studio 2005 IDE output window:

The &quot;Vbc&quot; task failed unexpectedly.

System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.

at Microsoft.Build.Tasks.Hosting.IVbcHostObject.EndInitialization

at Microsoft.Build.Tasks.Vbc.InitializeHostCompiler(IVbcHostObject vbcHostObject)

at Microsoft.Build.Tasks.Vbc.InitializeHostObject at Microsoft.Build.Utilities.ToolTask.Execute

at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound)

Additionally, you may be prompted to send error reports to Microsoft before Visual Studio 2005 will close.

Note This problem occurs more frequently when you are developing Microsoft ASP.NET projects or when you are debugging application code by using the Edit and Continue feature in the Visual Studio 2005 IDE.



CAUSE
This problem is caused by a bug in the Visual Basic 2005 compiler.



Hotfix information
A supported hotfix is now available from Microsoft. But the hotfix is intended only to correct the problem that is described in this article. Apply this hotfix 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, visit the following Microsoft Web site:

http://go.microsoft.com/fwlink/?LinkID=76562&clcid=0x409

Note After you apply this hotfix, click Clean Solution on the Build menu.

File information
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.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
If you also experience performance problems with large Visual Basic solutions, obtain the performance hotfix that is described in Microsoft Knowledge Base article 917452 instead of the hotfix that is described in this article. This hotfix is included with the performance hotfix that is described in Microsoft Knowledge Base article 917452. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

917452 FIX: You may experience performance issues when you use solutions that contain large Visual Basic projects in Visual Studio 2005

Keywords: kbfix kbhotfixserver kbqfe KB915038

-

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

© Microsoft Corporation. All rights reserved.