Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8285521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:29:24+00:00 2026-06-08T11:29:24+00:00

I am trying to call C# function from VB Script code, I am getting

  • 0

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.

  1. Created class library with ProgID, and Comvisible True and strong named
  2. Registered the dll using RegAsm.exe /codebase dllpath ( Dll registered successfully, I am able to see that in Registry)
  3. 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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T11:29:25+00:00Added an answer on June 8, 2026 at 11:29 am

    The answer is already provided through the comments but I figured it
    makes sense to suppy a real answer so that others can easily find it
    back.

    Depending on how your VBScript is loaded/executed you should register your DLL using the 32-bit or 64-bit version of RegAsm.exe.

    On a 64-bit OS, you should find the 32-bit version of regasm in, C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe

    and 64-bit version of regasm should be in,
    C:\Windows\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe

    If you want to run the VBScript yourself in 32-bit mode on a 64-bit machine see How do I run a VBScript in 32-bit mode on a 64-bit machine?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to call a java script function from java code. Here is
I am trying to call c# function from javascript the code i have tried
I’m trying to call Java script code from within the page_load function code, but
I'm trying to call a function in a Python script from my main C++
I am trying to call a JavaScript function from icefaces check box component like
I am trying to call my function named isUrgencyTypeValid from my javascript code but
I have a javascript function from where I am trying to call the serverside
In the following I am trying call action script function from js function. What
I'm trying to call a function from a form within the same .php file,
I'm trying to call a function from inside the call of another function. If

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.