From: Jonathan de H. <deh...@au...> - 2004-03-16 18:09:24
|
Make sure you named your assembly WikiNet.dll and there is a class named WikiNet.Config.DataProviderConfigurationHandler in it. appConfig has nothing to do with that.... At 18:43 16/03/2004 +0100, you wrote: >Hello Jonathan de Halleux. >I have the same ConfigurationException >("WikiNet.Config.DataProviderConfigurationHandler, WikiNet could not >created") exception. >I added following section into my app.confing > <appSettings> > <add key="test" value="myString" /> > </appSettings> >and this lines in DataProviderConfigurationHandler.cs > NameValueCollection appSet = ConfigurationSettings.AppSettings; > Console.WriteLine("test: " + appSet.Get("test")); >The String "test: myString" appeared in console, so it was my fault to say >that the config could not found. >Something else seems to go wrong? > >The "CacheManagerSettings" section with CacheConfigurationHandler works fine. > >Hope you can help me. > >\Tomek > > > > > >[-------------- my app.config --------------------------------] ><?xml version="1.0" encoding="utf-8" ?> ><configuration> > > <configSections> > <section name="CacheManagerSettings" > type="Microsoft.ApplicationBlocks.Cache.CacheConfigurationHandler,Microsoft.ApplicationBlocks.Cache" > /> > <section name="wikinet" > type="WikiNet.Config.DataProviderConfigurationHandler, WikiNet"/> > </configSections> > > <appSettings> > <add key="test" value="myString" /> > </appSettings> > > > <CacheManagerSettings> > <!-- Data PROTECTION SETTINGS Use DataProtectionInfo to set the > assembly and class which implement > the dataprotection interfaces for the cache. --> ><!-- <DataProtectionInfo >AssemblyName="Microsoft.ApplicationBlocks.Cache" >ClassName="Microsoft.ApplicationBlocks.Cache.DataProtection.DefaultDataProtection" >ValidationKey="Oci44OQ9C3xAdQ3/BMHpksPfzeTezLkXen/ahQ8T7nVk/KMgAFnssQJr00KUNhRso+MpLVwAinGep6i14X9M+A==" >Validation="SHA1"/> > > >--> > > ><!-- >STORAGE SETTINGS > Use StorageInfo to set the assembly and class which implement > the storage interfaces for the cache. > Note that the Mode is set to: InProc > Use only one of the following nodes for one of the ICacheStorage > implementations provided in the Caching Applications Block > or your own node for your own implementation: > --> > <StorageInfo AssemblyName="Microsoft.ApplicationBlocks.Cache" >ClassName="Microsoft.ApplicationBlocks.Cache.Storages.SingletonCacheStorage" >Mode="InProc" >Validated="true" >Encrypted="false" >/> ><!-- ><StorageInfo AssemblyName="Microsoft.ApplicationBlocks.Cache" >ClassName="Microsoft.ApplicationBlocks.Cache.Storages.SqlServerCacheStorage" >Mode="InProc" >ConnectionString="userid=sa;password=secret;Network=DBMSSOCN;DATABASE=cacheDatabase;SERVER=MyServer" >Encrypted="true" >Validated="true" >ApplicationName="MyApplication"/> >--> > ><!-- ><StorageInfo AssemblyName="Microsoft.ApplicationBlocks.Cache" >ClassName="Microsoft.ApplicationBlocks.Cache.Storages.MmfCacheStorage" >Mode="InProc" >BasePath="c:\mmfcache\" >Encrypted="true" >Validated="true" >MmfDictionarySize="1048576"/> >--> > ><!-- >MmfDictionarySize - It is the size (in bytes) of the dictionary object >(in MmfCacheStorage) used to store the references of cache items. >--> > ><!-- >SCAVENGING SETTINGS >Use the ScavengingAlgorithm to set a class that will be executed when >scavenging is performed. >--> > ><ScavengingInfo AssemblyName="Microsoft.ApplicationBlocks.Cache" >ClassName="Microsoft.ApplicationBlocks.Cache.Scavenging.LruScavenging" >MemoryPollingPeriod="60" >UtilizationForScavenging="80" >MaximumSize="5" >/> > ><!-- >EXPIRATION SETTINGS >Use the ExpirationCheckInterval to change the interval to check for >cache items expiration. The value attribute is represented in seconds. >--> ><ExpirationInfo Interval="1" /> ></CacheManagerSettings> > > ><wikinet> > <data defaultConnection="WH4L"> > <providers> > <clear/> > <add name="Sql"/> > </providers> > <connections> > <clear/> > <add name="WH4L" provider="Sql" catalog="DrinkOMeter" > connectionString ="data source=127.0.0.1;Trusted_Connection=yes;Initial > Catalog=DrinkOMeter" providerPath ="" databaseOwner="dbo"/> > </connections> > <dataProviders> > <clear/> > <add name="Site" objectQualifier="wiki_"> > <providers> > <provider name="Sql" > type="WikiNet.Providers.SiteSqlDataProvider"/> > </providers> > </add> > <add name="SiteRole" objectQualifier="wiki_"> > <providers> > <provider name="Sql" > type="WikiNet.Providers.SiteRoleSqlDataProvider"/> > </providers> > </add> > <add name="Door" objectQualifier="wiki_"> > <providers> > <provider name="Sql" > type="WikiNet.Providers.DoorSqlDataProvider"/> > </providers> > </add> > <add name="PageVersion" objectQualifier="wiki_"> > <providers> > <provider name="Sql" > type="WikiNet.Providers.PageVersionSqlDataProvider"/> > </providers> > </add> > <add name="Version" objectQualifier="wiki_"> > <providers> > <provider name="Sql" > type="WikiNet.Providers.VersionSqlDataProvider"/> > </providers> > </add> > <add name="Page" objectQualifier="wiki_"> > <providers> > <provider name="Sql" > type="WikiNet.Providers.PageSqlDataProvider"/> > </providers> > </add> > <add name="Link" objectQualifier="wiki_"> > <providers> > <provider name="Sql" > type="WikiNet.Providers.LinkSqlDataProvider"/> > </providers> > </add> > <add name="SP" objectQualifier="wiki_"> > <providers> > <provider name="Sql" > type="WikiNet.Providers.SPSqlDataProvider"/> > </providers> > </add> > </dataProviders> > <procedures/> > </data> > </wikinet> ></configuration> > > > > > > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >_______________________________________________ >Sqlpp-devel mailing list >Sql...@li... >https://lists.sourceforge.net/lists/listinfo/sqlpp-devel ----------------------------------------------------------------------------------- Jonathan de Halleux, Research Assistant Center for Systems Engineering and Applied Mechanics (CESAME) Universite catholique de Louvain Batiment Euler , Av. Georges Lemaitre, 4 Tel : +32-10-47 2595 B-1348 Louvain-la-Neuve Belgium E-mail : deh...@au... ----------------------------------------------------------------------------------- |