Question : Automation Error - VB6 using VB.NET dll?

Hi,

I have a VbScript which will create an instance of a VB.NET class.
When I try to run the script file it is throwing an error with the below details at the line where the VbScript is trying to create the VB.NET class.

Script: C:\Temp\Compile.vbs
Line: 3
Char: 1
Error:  0x8013150A
Code:  8013150A
Source: (null)

Anybody has any ideas? Please let me know.
Thanks for any help.

Answer : Automation Error - VB6 using VB.NET dll?

The VB.NET class needs to be in a compiled assembly, and be registered as COM. To make the .NET assembly COM visible, in VS IDE, right click on the project in Solution Explorer, then press Properties, click on Application tab, then Assembly Information button, check Make assembly COM-Visible. Then compile the assembly.
To register an existing assembly as COM, use regasm.exe [Assembly Name] in Command prompt.
Random Solutions  
 
programming4us programming4us