Howdy, Stranger!

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

Categories

Strange "Invalid class string" error

verbverb Member Posts: 14
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

  • raylouwraylouw Member Posts: 30
    : 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?
  • verbverb Member Posts: 14
    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

  • raylouwraylouw Member Posts: 30
    : 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.