PRB: ASP Returns "Error in Loading DLL" with VB Component

ID: Q178777


The information in this article applies to:


SYMPTOMS

When using Visual Studio Service Pack 2 or 3, a problem may occur when you try to work with objects that have been assigned as Visual Basic collections. When you try to access any of the functions of the collection (such as count, add, or remove), or use the For...Each...Next enumerations, the following Visual Basic Script error appears:

Microsoft VBScript runtime error '800a0030' Error in loading DLL


CAUSE

We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.


RESOLUTION

There are two possible solutions to this problem:


STATUS

Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


MORE INFORMATION

Steps to Reproduce Behavior

  1. Create an ActiveX DLL project in Visual Basic 5.0 with Service Pack 2 or later.


  2. Add a class to the project that has a method (function) with a return parameter as a collection.


  3. Compile the project into a DLL.


  4. Create an Active Server Page that creates an instance of the object and accesses any methods of the object or tries to enumerate the collection. The Active Server Page returns the following error:
    Microsoft VBScript runtime error '800a0030' Error in Loading DLL


Additional query words:


Keywords          : kbGenInfo kbVS 
Version           : WINDOWS:97sp2,97sp3
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: April 15, 1999