Question
· Aug 15, 2018

Failure to create CacheObjectConnection.

We are running old VB code on a Windows 2012 R2 server.

In the last month the following error has been happening.

      Failure to create CacheObjectConnection.
      Failure in GetClassInfo for CacheObjectConnection

      Factory not connected to server
     Send to Cache' failed

Neither the the code or Cache instance has not changed.

Cache 2017.1.1.111.0

The code:

        Dim bRtn As Boolean
        Dim objCacheObject As Object
        cntr = 1

        Dim factory = New CacheObject.Factory
        Try
            bRtn = factory.Connect(ConnStr)
            objCacheObject = factory.Static("CacheObjectConnection")
        Catch ex As Exception
            LogPrint("Cache Exception: " & ex.Message, "GetReportInformation")

        End Try

         Dim S2 As String  = objCacheObject.CallCache("GET^GUISTACK(""" & CC & """,""" & Pointer & """,""" & cntr & """)")
 

Error on line factory.Static("CacheObjectConnection")  

connection string: cn_iptcp:10.56.135.161[1972]:PHDEMO:PHSYSADM:"plain text strin"

Project references: Interop.CacheObject

Discussion (7)0
Log in or sign up to continue