I am trying to call C# function from VB Script code, I am getting "Activex Component cant create object" error.
I have done the following.
- Created class library with ProgID, and Comvisible True and strong named
- Registered the dll using RegAsm.exe /codebase dllpath ( Dll registered successfully, I am able to see that in Registry)
- Creating object using VB Script code and calling C# function as below.
Option Explicit
Dim testwfhandler
Set testwfhandler= CreateObject("CoreComponentWorkflow.WorkflowHandler")
If Not testwfhandler Is Nothing Then
Call testwfhandler.test()
End If
Set testwfhandler= Nothing
Am executing this VB Script from third party application (Tridion workflow) installed in my server.
Don't know why am getting the above error,when i execute the same code from the server directly, it works fine.
test() this function will just create one log file and add some text inside that.