Help!!! OpenAccess Configuration Problem

2 posts, 0 answers
  1. EBRAHIM NALWALA
    EBRAHIM NALWALA avatar
    1 posts
    Member since:
    Nov 2009

    Posted 14 Sep 2010 Link to this post

    I am trying to integrate OpenAccess Data model with my project. unfortunately it throwing error "Mapping node 'mssqlMapping' not found in configuration file." whiling running application.


    Please help me to get this resolved.



    This is my configuration file.

    <

     

    connectionStrings>

     

    <

     

    add name="CG_DEVEntityDiagrams" connectionString="data source=sqlserver;initial catalog=CG_DEV;persist security info=True;user id=demo;password=demo" providerName="System.Data.SqlClient" />

     

    </

     

    connectionStrings>

     

    <

     

    openaccess xmlns="http://www.telerik.com/OpenAccess">

     

    <

     

    connections>

     

    <

     

    connection id="DatabaseConnection1">

     

    <

     

    databasename>CGACCESS</databasename>

     

    <

     

    servername>sqlserver</servername>

     

    <

     

    user>demo</user>

     

    <

     

    password>demo</password>

     

    <

     

    backendconfigurationname>mssqlConfiguration</backendconfigurationname>

     

    </

     

    connection>

     

    </

     

    connections>

     

    <

     

    backendconfigurations>

     

    <

     

    backendconfiguration id="mssqlConfiguration" backend="mssql">

     

    <

     

    mappingname>mssqlMapping</mappingname>

     

    <

     

    ext.db-inheritance>vertical</ext.db-inheritance>

     

    <

     

    checkModelConsistencyOnCommit>true</checkModelConsistencyOnCommit>

     

    <

     

    l2CacheEnabled>true</l2CacheEnabled>

     

    <

     

    l2QueryCacheEnabled>true</l2QueryCacheEnabled>

     

    <

     

    l2CacheMaxObjects>1200</l2CacheMaxObjects>

     

    <

     

    logging.logEvents>all</logging.logEvents>

     

    <

     

    logging.logEventsToSysOut>true</logging.logEventsToSysOut>

     

    </

     

    backendconfiguration>

     

    </

     

    backendconfigurations>

     

    </

     

    openaccess>

     


  2. Damyan Bogoev
    Admin
    Damyan Bogoev avatar
    581 posts

    Posted 15 Sep 2010 Link to this post

    Hello EBRAHIM NALWALA,

    The error appears due to the fact that OpenAccess cannot locate the mappings section in the configuration file:

    <mappings current="mssqlMapping">
      <mapping id="mssqlMapping" />
    </mappings>

    OpenAccess looks in the configuration files of the executing application as well as of all of its referenced assemblies.
    I advice you to have a look at this help article which explains the mappings section structure. The main help article demonstrates how the format of the configuration file should look like.
    Hope that helps.

    Kind regards,
    Damyan Bogoev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
Back to Top