This question is locked. New answers and comments are not allowed.
Hello,
I'm trying to use SQL CE 4.0 with OpenAccess ORM for a website project.
My environment is Windows 2008 R2 (64x) / Visual Studio 2012 Professional.
Here is the code that I try to use:
But at E.Add I always get an exception
"System.NotSupportedException: SQL Server Compact is not intended for ASP.NET development.\r\n at Telerik.OpenAccess.RT.Adonet2Generic.Impl.DBDriver.connect(ConnectionString connectionString, IDictionary driverProps, ConnectionPoolType poolType, LogEventStore pes)\r\n at OpenAccessRuntime.Relational.sql.SqlDriver.InitializeFor(ConnectionString connectionString, Boolean noConnect, PropertySet props, DBDriver& driver, Connection& conn, ConnectionPoolType poolType)\r\n at OpenAccessRuntime.Relational.RelationalStorageManagerFactory..ctor(StorageManagerFactoryBuilder b)\r\n at OpenAccessRuntime.storagemanager.StorageManagerFactoryBuilder.createSmfForURL()"}
I'm using the latest version of OpenAccess. What am I doing wrong?
I'm trying to use SQL CE 4.0 with OpenAccess ORM for a website project.
My environment is Windows 2008 R2 (64x) / Visual Studio 2012 Professional.
Here is the code that I try to use:
using (DB.SQLCEContext E = new DB.SQLCEContext(ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString)) { DB.Site s = new DB.Site(); s.IsActive = true; s.Title = "Nescorp"; E.Add(s); E.SaveChanges(); }But at E.Add I always get an exception
"System.NotSupportedException: SQL Server Compact is not intended for ASP.NET development.\r\n at Telerik.OpenAccess.RT.Adonet2Generic.Impl.DBDriver.connect(ConnectionString connectionString, IDictionary driverProps, ConnectionPoolType poolType, LogEventStore pes)\r\n at OpenAccessRuntime.Relational.sql.SqlDriver.InitializeFor(ConnectionString connectionString, Boolean noConnect, PropertySet props, DBDriver& driver, Connection& conn, ConnectionPoolType poolType)\r\n at OpenAccessRuntime.Relational.RelationalStorageManagerFactory..ctor(StorageManagerFactoryBuilder b)\r\n at OpenAccessRuntime.storagemanager.StorageManagerFactoryBuilder.createSmfForURL()"}
I'm using the latest version of OpenAccess. What am I doing wrong?