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 7613969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:16:58+00:00 2026-05-31T02:16:58+00:00

I have written a C# .NET Com callable wrapper DLL. I signed it with

  • 0

I have written a C# .NET Com callable wrapper DLL. I signed it with a StrongName and registered the codebase and typelib with the 64 bit regasm.exe. The registration and all the control’s methods are visible with the 64-bit OleViewer. However, when I try to use the control from 64 bit \Windows\System32\cscript.exe:

  Set logger = CreateObject("MyCompany.LoggerControl")

This produces the error:

Microsoft VBScript runtime error: ActiveX component can’t create object: ‘MyCompany.LoggerControl’

Using ProcMon from Sysutils to track this down, I find:

1:41:44.8295486 PM
cscript.exe 24028 RegOpenKey HKCR\MyCompany.LoggerControl
NAME NOT FOUND Desired Access: Read

However, this key exists in Regedit. The calling process is running from an elevated command prompt. If it was a security problem, shouldn’t the error be ‘ACCESS DENIED’ instead of ‘NAME NOT FOUND’?

What are other tools to track down this type of COM control registration error?

  • 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-05-31T02:17:00+00:00Added an answer on May 31, 2026 at 2:17 am

    Here are a couple of troubleshooting ideas:

    1. Identify the exact error number being returned when trying to create the object:

      On Error Resume Next
      Set logger = CreateObject(“MyCompany.LoggerControl”)
      If Err Then
      WScript.Echo “Error # ” & Err.Number
      WScript.Echo Err.Description
      WScript.Quit 1
      End If

    2. Look up this error code. For example, is it “access denied” or some other error?

    3. Create a C# executable to call your object and see if it can sucessfully create it.

    4. Make sure your DLL doesn’t have any other dependencies that prevent it from being loaded in the directory your script runs. You can use depends.exe from the directory your are running your script from or you can use my favorite poor man’s technique of regsvr32 to try and load the DLL. If the DLL fails to load due to a dependency you will get an error dialog telling you it can’t find another DLL or load one of its dependencies. If it can load the DLL ok it will say it successfully registered it.

      C:\PathToVbs>regsvr32 C:\PathToYourDLL\YourDLL.dll

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

Sidebar

Related Questions

I have a COM(written in .NET) which needs to create a an AppDomain and
I have written a com component in .NET and if I try to take
Let's say I have written a Class Library (dll) in .Net and now I
I have an application written in .NET 4.0 that i compile into a DLL
i have a .net dll which is written in c sharp, which uses linq
I have written a class dll in Net that I have to expose to
JI have written a .NET C# Windows Form app in Visual Studio 2008 that
I have written a small .net Windows Forms application. And now I decided to
I have a utility that I have written in VB.net that runs as a
I have written some code in my VB.NET application to send an HTML e-mail

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.