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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:46:47+00:00 2026-05-28T20:46:47+00:00

I have a windows script file that doesn’t work anymore. The script look like

  • 0

I have a windows script file that doesn’t work anymore.

The script look like this

<job>
    <reference object="Some.Component.1" />
    <script language="VBScript">

x = CreateObject("Some.Component.1")
MsgBox TypeName(x)

    </script>
</job>

When I run the script with cscript or wscript I get the error

Windows Script Host: Cannot find the type library for this reference :
Some.Component.1

The error code is 0x80040068 which means “Invalid index”. (I tried to removed the .1 index but it didn’t work)

The strange thing is that if I remove the line <reference object="Some.Component.1"/>, the CreateObject line works and the object is created.

I know the script worked about a year ago. The “Some.Component” library has been updated but since CreateObject works I have no idea what is wrong with it.

I have tested the script on Server 2008 R2 (64bit), Server 2003 (32bit) and Windows 7 (64bit) with the same error.

Some.Component is 32 bit. For the 64bit machines I used cscript, wscript in the SysWow64 folder.

(I need the <reference../> to access enums within the component)

  • 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-28T20:46:48+00:00Added an answer on May 28, 2026 at 8:46 pm

    The type library is not registered. This is a different and separate thing from the object being registered. Usually the control will do both.

    I suggest you first try unregistering and re-registering the DLL.

    regsvr32.exe /u c:\path\to\control.dll
    regsvr32.exe c:\path\to\control.dll
    

    If that doesn’t work, try using RegTLib.exe to register the type library (*.tlb) directly.

    regtlib.exe c:\path\to\control.dll
    

    OR

    regtlib.exe c:\path\to\control.tlb
    

    Note that the type library may be a separate file or may be embedded in the DLL.

    For more on regTLib.exe see here:

    • http://support.microsoft.com/kb/292744
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Windows shell script that opens an application. I'd like to modify
I have a Perl script that I'd like to run on Windows, using either
I have a Python script that I'd like to compile into a Windows executable.
I have a windows batch file that does this: for %%s in (*.sql) do
I would like to have a Windows 2003 server fire a script to fire
I have a little Perl script (On Windows) that checks some files for me
I have a PHP script running on XAMPP in Windows XP that will open
I have a sh/bash script that needs to call a batch file with parameters
I have this fragment that demonstrates the problem: <html> <head> <title>height query demo</title> <script
Ok, so I have this PHP script that runs in a nice little infinite

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.