Good day all!
I have this exception when I try to DB connect.
I have several dlls such as:
1. Interfaces.dll - declares some interfaces, which are realized by some entities in Entities.dll Also it used some Entities from Entities.dll for using in Interface-methods
2. Entities.dll - describes all DB-Entities (as Persistent classes). Some Persistent classes are realized some Interfaces from Interfaces.dll
3. DBHandler.dll - describes DB-connect, and work with Scope (GetScope, GetInstance, etc.)
4. Application.exe - run DB-Connect methods from DBHandler.dll
so, I have such References in my dlls:
1. Interfaces.dll references to --> Entities.dll
2. Entities.dll --> Interfaces.dll
3. DBHandler.dll --> Entities.dll and Interfaces.dll
4. Application.exe --> Entities.dll and Interfaces.dll and DBHandler.dll
I know It is not very good to have circular references in Entities.dll and Interfaces.dll
But I tried to "disconnect" Intefaces from Entities - and still had the same exception.
My App.Config files:
1. Interfaces.dll
01.
<?
xml
version
=
"1.0"
?>
02.
<
configuration
>
03.
<
configSections
>
04.
<
section
name
=
"openaccess"
type
=
"Telerik.OpenAccess.Config.ConfigSectionHandler, Telerik.OpenAccess.Config, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342"
requirePermission
=
"false"
/>
05.
</
configSections
>
06.
<
openaccess
xmlns
=
"http://www.telerik.com/OpenAccess"
>
07.
<
references
/>
08.
<
connections
>
09.
<
connection
id
=
"MSSFbConnection"
>
10.
<
databasename
>D\XXX.FDB</
databasename
>
11.
<
servername
>localhost</
servername
>
12.
<
integratedSecurity
>False</
integratedSecurity
>
13.
<
user
>sysdba</
user
>
14.
<
password
>masterkey</
password
>
15.
<
backendconfigurationname
>firebirdConfiguration</
backendconfigurationname
>
16.
</
connection
>
17.
</
connections
>
18.
<
backendconfigurations
>
19.
<
backendconfiguration
id
=
"firebirdConfiguration"
backend
=
"firebird"
>
20.
<
mappingname
>firebirdMapping</
mappingname
>
21.
<
logDownloader.filename
>C:\openaccess.log</
logDownloader.filename
>
22.
<
logging.logEvents
>verbose</
logging.logEvents
>
23.
<
logging.logEventsToTrace
>True</
logging.logEventsToTrace
>
24.
<
logDownloader.eventText
>True</
logDownloader.eventText
>
25.
</
backendconfiguration
>
26.
</
backendconfigurations
>
27.
<
mappings
current
=
"firebirdMapping"
>
28.
<
mapping
id
=
"firebirdMapping"
/>
29.
</
mappings
>
30.
</
openaccess
>
31.
</
configuration
>
01.
<?
xml
version
=
"1.0"
?>
02.
<
configuration
>
03.
<
configSections
>
04.
<
section
name
=
"openaccess"
type
=
"Telerik.OpenAccess.Config.ConfigSectionHandler, Telerik.OpenAccess.Config, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342"
requirePermission
=
"false"
/>
05.
</
configSections
>
06.
<
openaccess
xmlns
=
"http://www.telerik.com/OpenAccess"
>
07.
<
references
>
08.
<
reference
assemblyname
=
"Interfaces"
configrequired
=
"True"
/>
09.
</
references
>
10.
<
connections
>
11.
<
connection
id
=
"MSSFbConnection"
>
12.
<
databasename
>D:\XXX.FDB</
databasename
>
13.
<
servername
>localhost</
servername
>
14.
<
integratedSecurity
>False</
integratedSecurity
>
15.
<
user
>sysdba</
user
>
16.
<
password
>masterkey</
password
>
17.
<
backendconfigurationname
>firebirdConfiguration</
backendconfigurationname
>
18.
</
connection
>
19.
</
connections
>
20.
<
backendconfigurations
>
21.
<
backendconfiguration
id
=
"firebirdConfiguration"
backend
=
"firebird"
>
22.
<
mappingname
>firebirdMapping</
mappingname
>
23.
</
backendconfiguration
>
24.
</
backendconfigurations
>
25.
<
mappings
current
=
"firebirdMapping"
>
26.
<
mapping
id
=
"firebirdMapping"
>
27.
<
namespace
name
=
"Entities.Configurations"
>
28.
<
class
name
=
"CfgOperator"
>
29.
<
extension
key
=
"db-table-name"
value
=
"CfgOperator"
/>
30.
</
class
>
31.
<
class
name
=
"CfgGlobal"
>
32.
<
extension
key
=
"db-table-name"
value
=
"CfgGlobal"
/>
33.
</
class
>
34.
</
namespace
>
35.
<!-- Other Classes -->
36.
</
mapping
>
37.
</
mappings
>
38.
</
openaccess
>
39.
</
configuration
>
01.
<?
xml
version
=
"1.0"
?>
02.
<
configuration
>
03.
<
configSections
>
04.
<
section
name
=
"openaccess"
type
=
"Telerik.OpenAccess.Config.ConfigSectionHandler, Telerik.OpenAccess.Config, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342"
requirePermission
=
"false"
/>
05.
</
configSections
>
06.
<
openaccess
xmlns
=
"http://www.telerik.com/OpenAccess"
>
07.
<
references
>
08.
<
reference
assemblyname
=
"Entities"
configrequired
=
"True"
/>
09.
</
references
>
10.
<
connections
>
11.
<
connection
id
=
"MSSFbConnection"
>
12.
<
databasename
>D:\XXX.FDB</
databasename
>
13.
<
servername
>localhost</
servername
>
14.
<
integratedSecurity
>False</
integratedSecurity
>
15.
<
user
>SYSDBA</
user
>
16.
<
password
>masterkey</
password
>
17.
<
backendconfigurationname
>firebirdConfiguration</
backendconfigurationname
>
18.
</
connection
>
19.
</
connections
>
20.
<
backendconfigurations
>
21.
<
backendconfiguration
id
=
"firebirdConfiguration"
backend
=
"firebird"
>
22.
<
mappingname
>firebirdMapping</
mappingname
>
23.
<
logDownloader.filename
>C:\openaccess.log</
logDownloader.filename
>
24.
<
logging.logEvents
>verbose</
logging.logEvents
>
25.
<
logging.logEventsToTrace
>True</
logging.logEventsToTrace
>
26.
<
logDownloader.eventText
>True</
logDownloader.eventText
>
27.
</
backendconfiguration
>
28.
</
backendconfigurations
>
29.
<
mappings
current
=
"firebirdMapping"
>
30.
<
mapping
id
=
"firebirdMapping"
/>
31.
</
mappings
>
32.
</
openaccess
>
33.
</
configuration
>
Please, Ask what I do incorrect?