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 xxxxxxxx
You may also receive the following error message in the Visual Studio 2005 IDE output window:
The "Vbc" 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.
This problem is caused by a bug in the Visual Basic 2005 compiler.
A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.
To download this hotfix from the MSDN Code Gallery, visit the following Microsoft Web site:
Note The MSDN Code Gallery displays the languages for which the hotfix is available. If you do not see your language listed, it is because the Code Gallery resource page is not available for that language.
Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:
Note After you apply this hotfix, click Clean Solution on the Build menu.
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.
Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.
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
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 System Team Foundation:, Microsoft Visual Studio 2005 Team System Test Edition, Microsoft Visual Studio 2005 Tools for the Microsoft Office System