Article ID: 191119 - Last Review: August 7, 2007 - Revision: 1.2

FIX: VB Classes Can Cause IIS to Have Access Violations

This article was previously published under Q191119
Expand all | Collapse all

SYMPTOMS

Internet Information Server (IIS) could have an access violation when shutting down.

CAUSE

The IIS environment at termination does not guarantee the order of DLL unloads. As a result the Visual Basic runtime is sometimes unloaded before it can be cleanly shut down. This results in the access violation. This can happen sporadically but only if you have the Visual Basic project option Retain in Memory set On. However, not setting Retain in Memory can cause more serious issues.

For additional information, click the article number below to view the article in the Microsoft Knowledge Base:
264957  (http://support.microsoft.com/kb/264957/EN-US/ ) BUG: VB DLL Has Memory Leaks and Crashes in COM+ if 'Retain In Memory' Not Set

RESOLUTION

To resolve this problem, install the latest Visual Studio 6.0 service pack.For additional information about Visual Studio service packs, click the following article numbers to view the articles in the Microsoft Knowledge Base:
194022  (http://support.microsoft.com/kb/194022/EN-US/ ) INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295  (http://support.microsoft.com/kb/194295/EN-US/ ) HOWTO: Tell That a Visual Studio Service Pack Is Installed
To download the latest Visual Studio service pack, visit the following Microsoft Web site:
http://msdn2.microsoft.com/en-us/vstudio/Aa718353.aspx (http://msdn2.microsoft.com/en-us/vstudio/Aa718353.aspx)

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

This problem was first corrected in Visual Studio 6.0 Service Pack 3.

REFERENCES

For additional information on WebClasses, click the article number below to view the article in the Microsoft Knowledge Base:
189539  (http://support.microsoft.com/kb/189539/EN-US/ ) INFO: VB 6.0 Readme Part 8: WebClass Designer Issues

APPLIES TO
  • Microsoft Visual Basic 6.0 Professional Edition
  • Microsoft Visual Basic 6.0 Enterprise Edition
Keywords: 
kbbug kbfix kbvs600sp3fix kbwebclasses KB191119
 

Article Translations