Microsoft KB Archive/928208

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 18:34, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Article ID: 928208

Article Last Modified on 12/3/2007



APPLIES TO

  • Microsoft .NET Framework 2.0
  • Microsoft Visual Studio 2005 Professional Edition
  • Microsoft Visual Studio for Applications SDK 1.1



SYMPTOMS

Consider the following scenario:

  • You create a custom application by using the Microsoft .NET Framework 2.0.
  • The custom application uses the Microsoft Visual Studio for Applications (VSA) Visual Basic Runtime.
  • You run the custom application on a system that has been updated to run a later version of the Microsoft .NET Framework common language runtime (CLR).

In this scenario, the custom application may behave incorrectly or may generate errors. These problems occur when you try to compile macros or when you try to run macros in the custom application.

When you are developing the custom application by using VSA, you may experience the following problem. When the custom application calls the Microsoft.VisualBasic.Vsa.VsaEngine.Compile method, an exception is thrown by the VSA Visual Basic Runtime to the host. The host may trap the exception, and the user may receive the following error message:

An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

Alternatively, the host may ignore the exception, and one of the following symptoms may occur:

  • The host fails unexpectedly when the user tries to run the macro that the user just compiled.
  • The host does not handle the macro in any way.

In the latter case, the CLR will close the application because the application had an unhandled exception.

When you try to run macros in the custom application, you may experience one or more of the following symptoms:

  • You receive an error message that a macro cannot be generated or run.
  • You receive an error message that a macro or assembly cannot be loaded.
  • The host application may not start or may exit unexpectedly.
  • Although the host application does not report an error, the macro does not run, and the application appears to have done nothing.


CAUSE

This problem occurs because of a recent design change in the CLR workstation runtime (Mscorwks.dll) for builds of the .NET Framework 2.0 that are later than 2.0.50727.300. This change introduced a compatibility problem for the Visual Basic Runtime engine (Vsavb7rt.dll) that is used by VSA. The problem prevents assemblies from beng generated correctly during the macro compile operation.

This problem may cause the exception error message that is mentioned in the "Symptoms" section to be returned to the host application. The host application may report this error to the user in some manner. Alternatively, the host application may throw an exception and exit unexpectedly.

Note Custom applications that use the full-feature Microsoft Visual Studio for Applications Software Development Kit (SDK) and the .NET Framework 1.1 do not experience this problem. This problem occurs only in host applications that use the VSA runtime that is included with the .NET Framework 2.0.

RESOLUTION

Hotfix information

A supported hotfix is now available from Microsoft, but it is only intended to correct the problem that this article describes. Apply it only to systems that are experiencing this specific problem.

To resolve this problem, 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.

Prerequisites

No prerequisites are required.

Restart requirement

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

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.

Operating systems earlier than Windows Vista
File name File version File size Date Time Platform
Vsavb7rt.dll 8.0.50727.244 1,330,688 16-Nov-2006 08:06 x86
Windows Vista
File name File version File size Date Time Platform
Vsavb7rt.dll 8.0.50727.784 1,330,688 18-May-2007 14:07 x86


STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates


Keywords: kbfix kbqfe kbhotfixserver KB928208