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?
    :
    :


    Have you checked that scrrun.dll is installed and registered on your web-server?
  • Yes, I have checked that.
    The strange things are:
    -VB is able to create objects from the Scripting library
    -ASP is able to create objects from libraries other than the Scripting library

  • : 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?
    :
    :


    Kewl, well try this:

    http://www.devx.com/vb2themax/Tip/18492

    Should this fail, I dont know what else to try. Sorry about this.
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