This question is locked. New answers and comments are not allowed.
Hi,
I would like to have openaccess connection strings in web.config file instead of App.config. I have a website and two class library projects:
DataClasses - persistent classes
DataManager - data access code
configs look like this:
web.config:
DataClasses App.config:
DataManager App.config:
when I compile I get following error:
What am I doing wrong?
Thanks,
Robert
I would like to have openaccess connection strings in web.config file instead of App.config. I have a website and two class library projects:
DataClasses - persistent classes
DataManager - data access code
configs look like this:
web.config:
<configuration> <configSections> <section name="openaccess" type="Telerik.OpenAccess.Config.ConfigSectionHandler,Telerik.OpenAccess.Config, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342"/> </configSections>... <openaccess xmlns="http://www.telerik.com/OpenAccess"> <connections> <connection id="k2shopConnection"> <connectionString>data source=217.73.17.132;initial catalog=eshop;persist security info=True;user id=sa;password=qwe123+</connectionString> <backendconfigurationname>mssqlConfiguration</backendconfigurationname> </connection> <connection id="DatabaseConnection1"> <connectionString>Data Source=217.73.17.132;Initial Catalog=eshop;Persist Security Info=True;User ID=sa;Password=qwe123+</connectionString> <backendconfigurationname>mssqlConfiguration</backendconfigurationname> </connection> </connections> <references> <reference assemblyname="DataManager" configrequired="True" /> <reference assemblyname="DataClasses" configrequired="True" /> </references> </openaccess>DataClasses App.config:
<configuration> <configSections> <section name="openaccess" type="Telerik.OpenAccess.Config.ConfigSectionHandler, Telerik.OpenAccess.Config, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342" requirePermission="false" /> </configSections> <openaccess xmlns="http://www.telerik.com/OpenAccess"> <references /> <backendconfigurations> <backendconfiguration id="mssqlConfiguration" backend="mssql"> <mappingname>mssqlMapping</mappingname> <option.Multithreaded>False</option.Multithreaded> <l2CacheEnabled>True</l2CacheEnabled> </backendconfiguration> </backendconfigurations> <mappings current="mssqlMapping">.... </mappings> </openaccess></configuration>DataManager App.config:
<configuration> <configSections> <section name="openaccess" type="Telerik.OpenAccess.Config.ConfigSectionHandler, Telerik.OpenAccess.Config, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342" requirePermission="false" /> </configSections> <openaccess xmlns="http://www.telerik.com/OpenAccess"> <references> <reference assemblyname="DataClasses" configrequired="True" /> </references> <backendconfigurations> <backendconfiguration id="mssqlConfiguration" backend="mssql"> <mappingname>mssqlMapping</mappingname> <option.Multithreaded>False</option.Multithreaded> <l2CacheEnabled>True</l2CacheEnabled> </backendconfiguration> </backendconfigurations> <mappings current="mssqlMapping"> <mapping id="mssqlMapping" /> </mappings> </openaccess></configuration>when I compile I get following error:
What am I doing wrong?
Thanks,
Robert