PRB: "Error Loading DLL" When Returning User Defined Data Type from VB COM Object (224397)
The information in this article applies to:
- Microsoft Active Server Pages
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Internet Information Server 4.0
- Microsoft Internet Information Server 5.0
This article was previously published under Q224397 SYMPTOMS
When returning an Array or Collection of user defined data types (UDTs) from a Visual Basic COM object to Active Server Pages (ASP), the following error may occur:
Microsoft VBScript runtime error '800a0030'
Error Loading DLL: TestMethod
CAUSE
User defined data types are not supported in the current version of ASP.
RESOLUTION
Since ASP does not support UDTs, you can work around this by creating a new class to handle the data in place of the UDT and setting the instancing property to PublicNotCreateable. This will ensure that you can pass the necessary information to and from ASP, as well as that the class cannot be created outside of the DLL.
STATUS
This behavior is by design.
REFERENCES
Refer to the TYPE statement in the Visual Basic Documentation.
Modification Type: | Major | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kberrmsg kbprb KB224397 |
---|
|