This is a migrated thread and some comments may be shown as answers.

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

0 Answers 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Joseph S.
Top achievements
Rank 1
Joseph S. asked on 29 Aug 2017, 02:07 AM

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?

Tags
General Discussions
Asked by
Joseph S.
Top achievements
Rank 1
Share this question
or