Strange "Invalid class string" error..,

In an asp page in localhost I have this:
Set x = Server.CreateObject("Scripting.Dictionary")
And I get this error: Invalid class string
If I omit Server like this:
Set x = Server.CreateObject("Scripting.Dictionary")
I get this error: ActiveX component can't create object: 'Scripting.Dictionary'

In the same asp page this works fine:
Set conn = Server.CreateObject("ADODB.Connection")

In a Visual Basic application this works fine, too:
Set x = CreateObject("Scripting.Dictionary")

I reinstalled VB without success. Why do I get "Invalid class string" in the first case?

Comments

  • : In an asp page in localhost I have this:
    : Set x = Server.CreateObject("Scripting.Dictionary")
    : And I get this error: Invalid class string
    : If I omit Server like this:
    : Set x = Server.CreateObject("Scripting.Dictionary")
    : I get this error: ActiveX component can't create object: 'Scripting.Dictionary'
    :
    : In the same asp page this works fine:
    : Set conn = Server.CreateObject("ADODB.Connection")
    :
    : In a Visual Basic application this works fine, too:
    : Set x = CreateObject("Scripting.Dictionary")
    :
    : I reinstalled VB without success. Why do I get "Invalid class string" in the first case?
    :
    :

    maybe you should check the windows enviromental variable call PATH..

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion