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?