CFF KB - Carrz-Fox-Fire Promotions Knowledge Base

CFF KB is all about 1 thing: The Sharing of Knowledge and the Power we gain from it.
  • Breadrumbs:
  • Server object, ASP 0177 (0x800401F3) Invalid class string

  • CFF Knowledge Base - Share With Facebook CFF Knowledge Base - Share on Twitter CFF Knowledge Base - Share on Reddit CFF Knowledge Base - Share on Digg It CFF Knowledge Base - Share on Stumble Upon It CFF Knowledge Base - Share on Delicious
    Share With Friends (Updated 6-8-2010)
  • Article ID:
    47
  • Date Created
    Friday, November 19, 2010
  • This Article Has been Viewed
    2652 times
  • Short Desc
    Creating the Connection the Server Object for your connection string, sometimes you may misspell the Connection with Connections. This will cause a VBScript runtime error.
  • Details
    When creating the connection ServerObject, you sometimes might misspell the Connection(s) name. If you do, this is the error you will receive.

     
    Server object, ASP 0177 (0x800401F3)
    Invalid class string
    /i_utils.asp, line 15


    This error will only happen when you use Server.CreateObject instead of simply using CreateObject. (View related Articles below)
  • Recreate Issue
    To recreate the error

    set cn = Server.CreateObject("ADODB.Connections")

    Notice that the ADODB.Connections
    There is not suppose to be an (s) at the end of Connection
  • Resolve Issue
    to properly write out the connection object.

    set cn = Server.CreateObject("ADODB.Connection")

    Notice that there is no s at the end of Connection


    --------
    Related Articles
    Microsoft VBScript runtime (0x800A01AD) ActiveX component can't create object: 'ADODB.Connections'«