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

Multiple database connections using EntityDiagrams

2 Answers 60 Views
Databases and Data Types
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Richard M
Top achievements
Rank 1
Richard M asked on 29 Nov 2010, 09:03 PM
I am trying to create 2 separate EntityDiagrams for 2 separate databases.  My linq query worked fine in a test application, but when I tried that same query in another application, it would not work, and I would get the following error:

System.ArgumentException: Format of the initialization string does not conform to specification starting at index 57.
   at Telerik.OpenAccess.RT.Adonet2Generic.Impl.DBDriver.connect(ConnectionString connectionString, IDictionary driverProps)
   at OpenAccessRuntime.Relational.conn.RelationalConnectionPool.createRealCon()
   at OpenAccessRuntime.Relational.conn.RelationalConnectionPool.init()
   at OpenAccessRuntime.Relational.RelationalStorageManagerFactory.connect()
   at OpenAccessRuntime.Relational.RelationalStorageManagerFactory..ctor(StorageManagerFactoryBuilder b)
   at OpenAccessRuntime.storagemanager.StorageManagerFactoryBuilder.createSmfForURL()

The only difference that I can see is that the 2nd application has multiple EntityDiagrams.

2 Answers, 1 is accepted

Sort by
0
Accepted
Alexander
Telerik team
answered on 30 Nov 2010, 10:02 AM
Hi Richard M,

This exception usually means that the connection string needed for the domain model is not present in the configuration file of the currently executing assembly. Copying the appropriate connection string to your second application should fix the problem.
Nevertheless, we should really improve the exception message to be more descriptive. I will add this entry to our product backlog system.

All the best,
Alexander
the Telerik team
Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
0
Richard M
Top achievements
Rank 1
answered on 30 Nov 2010, 04:39 PM
Thank you, I will try that.
Tags
Databases and Data Types
Asked by
Richard M
Top achievements
Rank 1
Answers by
Alexander
Telerik team
Richard M
Top achievements
Rank 1
Share this question
or