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

Help!!! OpenAccess Configuration Problem

1 Answer 61 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
EBRAHIM NALWALA
Top achievements
Rank 1
EBRAHIM NALWALA asked on 14 Sep 2010, 02:36 PM

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>

 


1 Answer, 1 is accepted

Sort by
0
Damyan Bogoev
Telerik team
answered on 15 Sep 2010, 05:16 PM
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
Tags
Getting Started
Asked by
EBRAHIM NALWALA
Top achievements
Rank 1
Answers by
Damyan Bogoev
Telerik team
Share this question
or