Specified cast is not valid in Telerik.OpenAccess.Database.GetObjectScope()

Thread is closed for posting
1 posts, 0 answers
  1. Joseph S.
    Joseph S. avatar
    11 posts
    Member since:
    Dec 2008

    Posted 28 Aug 2017 Link to this post

    I was using “Telerik OpenAccess ORM 2010.2.714.1” (“Open Access Classic”) in the data layer (a VB.NET class library) of a web application developed with Visual Studio 2008 SP1 and Microsoft .NET 3.5.

    Now I have upgraded my solution to Visual Studio 2017 and Microsoft .NET 4.5.2 using “Telerik.DataAccess.Core 2016.2.822.1”.
    I don’t have compilation errors but when I run the application when the first DataAccess method (“Database.GetObjectScope”) is called I get the following error:

    Specified cast is not valid
    SOURCE: Telerik.OpenAccess.Runtime
    CALL STACK: in OpenAccessRuntime.ExceptionWrapper.Throw()
       in OpenAccessRuntime.Helper.getPersistenceManagerFactory(PropertySet props)
       in OpenAccessRuntime.DatabaseAdapter.AssertPersistenceManagerFactory(String usr, String password, Boolean open)
       in OpenAccessRuntime.DatabaseAdapter.GetObjectScope(TransactionProvider provider)
       in OpenAccessRuntime.DatabaseAdapter.Telerik.OpenAccess.SPI.IDatabaseAdapter.GetObjectScope()
       in Telerik.OpenAccess.Database.GetObjectScope()


     Please can somebody help me?

Back to Top