Multiple database connections using EntityDiagrams

3 posts, 1 answers
  1. Richard M
    Richard M avatar
    76 posts
    Member since:
    Mar 2010

    Posted 29 Nov 2010 Link to this post

    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. Answer
    Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 30 Nov 2010 Link to this post

    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.
  3. DevCraft banner
  4. Richard M
    Richard M avatar
    76 posts
    Member since:
    Mar 2010

    Posted 30 Nov 2010 Link to this post

    Thank you, I will try that.
Back to Top