I am currently working on an application in VB6 that uses COM Interop libraries written in C # using the .NET 2.0 framework.
I used regasm.exe to register tlb files from DLL.NET using the / codebase switch. Then I was able to successfully create and run the application in the VB6 environment without any problems. The .NET code uses the configuration file, so I added it to the VB6 directory and read it from the configurations.
However, then I compiled the EXE file from the project and ran it on the same computer that the IDE runs on. I associated the EXE with the configuration file in the same way as in debugging with VB6.EXE, but when the application makes the first method call in one of the .NET classes, it throws an error at runtime, Automation Error. "
In my declarations, I create the following objects from .NET classes, which seem to work fine.
Private objSession As New Session Private curFolder As Folder Private colFolderTemplates As New FolderTemplateCollection Private objLicense As New License
However, an automation error appears at runtime when the first line is executed:
Call objSession.Configuration.Configure(connectionString)
I tried adding the .NET DLLs to the same directory as the Release EXE and re-registering the tlb files, but that did not help. Any suggestions on what I can check?
source share