From: <td...@te...> - 2004-03-15 17:02:13
|
Hallo Again. In DataProviderConfigurationHandler.GetProviderConfiguration(String providerType) the line: XmlElement config = (XmlElement)ConfigurationSettings.GetConfig("wikinet"); create a null object. I have place the /Web.config file into the project. Have you an idea why /ConfigurationSettings don't find the "wikinet" section in /Web.config file?/ / Greetings Tomek / |
From: Jonathan de H. <deh...@au...> - 2004-03-15 23:41:59
|
COuld you send you webconfig.xml (don't forget to spoof you connection settings) At 18:01 15/03/2004 +0100, you wrote: >Hallo Again. > >In DataProviderConfigurationHandler.GetProviderConfiguration(String >providerType) >the line: >XmlElement config = (XmlElement)ConfigurationSettings.GetConfig("wikinet"); >create a null object. >I have place the /Web.config file into the project. >Have you an idea why /ConfigurationSettings don't find the "wikinet" >section in /Web.config file?/ >/ >Greetings Tomek >/ > > >------------------------------------------------------- >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... ----------------------------------------------------------------------------------- |
From: <td...@te...> - 2004-03-16 11:49:13
|
I have this problem with my and the example wikki database. Of corse I don't use the same webconfig.xml ;) In wikki.cpp I use TrustedConnection with MSDE. I created the DrinkOMete database and executed all querry's. I read that the web.config must have following structure: <configuration> <appSettings> <add key="key" value="/value/" /> </appSettings> <system.web> ... </system.web> </configuration> But the webconfig.xml have an other construction. Thank you taking time for me. <web.config> <!--add this before system.web--> <configSections> <section name="wikinet" type="WikiNet.Config.DataProviderConfigurationHandler, WikiNet"/> </configSections> <system.web/> <!--add this after system.web--> <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> </web.config> Jonathan de Halleux schrieb: > COuld you send you webconfig.xml (don't forget to spoof you connection > settings) > > At 18:01 15/03/2004 +0100, you wrote: > >> Hallo Again. >> >> In DataProviderConfigurationHandler.GetProviderConfiguration(String >> providerType) >> the line: >> XmlElement config = >> (XmlElement)ConfigurationSettings.GetConfig("wikinet"); >> create a null object. >> I have place the /Web.config file into the project. >> Have you an idea why /ConfigurationSettings don't find the "wikinet" >> section in /Web.config file?/ >> / >> Greetings Tomek >> / >> >> >> ------------------------------------------------------- >> 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... > ----------------------------------------------------------------------------------- > > > > > ------------------------------------------------------- > 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 > |
From: Jonathan de H. <deh...@au...> - 2004-03-16 14:32:23
|
it should be: <configuration> <configSections> <!-- this means: there is a seciton named wikinet, which should be loaded by the WikiNet.Config.DataProviderConfigurationHandler class int the WikiNet assembly --> <section name="wikinet" type="WikiNet.Config.DataProviderConfigurationHandler, WikiNet"/> </configSections> <!-- system.web or appSettings --> <wikinet> ... </wikinet> </configuration> At 12:49 16/03/2004 +0100, you wrote: >I have this problem with my and the example wikki database. >Of corse I don't use the same webconfig.xml ;) >In wikki.cpp I use TrustedConnection with MSDE. I created the DrinkOMete >database and executed all querry's. >I read that the web.config must have following structure: ><configuration> > <appSettings> > <add key="key" value="/value/" /> > </appSettings> > <system.web> > ... > </system.web> ></configuration> >But the webconfig.xml have an other construction. > >Thank you taking time for me. > > > ><web.config> > <!--add this before system.web--> > <configSections> > <section name="wikinet" > type="WikiNet.Config.DataProviderConfigurationHandler, WikiNet"/> > </configSections> > <system.web/> > <!--add this after system.web--> > <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> ></web.config> > > > > > >Jonathan de Halleux schrieb: > >>COuld you send you webconfig.xml (don't forget to spoof you connection >>settings) >> >>At 18:01 15/03/2004 +0100, you wrote: >> >>>Hallo Again. >>> >>>In DataProviderConfigurationHandler.GetProviderConfiguration(String >>>providerType) >>>the line: >>>XmlElement config = (XmlElement)ConfigurationSettings.GetConfig("wikinet"); >>>create a null object. >>>I have place the /Web.config file into the project. >>>Have you an idea why /ConfigurationSettings don't find the "wikinet" >>>section in /Web.config file?/ >>>/ >>>Greetings Tomek >>>/ >>> >>> >>>------------------------------------------------------- >>>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... >>----------------------------------------------------------------------------------- >> >> >> >> >>------------------------------------------------------- >>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 > > > >------------------------------------------------------- >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... ----------------------------------------------------------------------------------- |
From: <td...@te...> - 2004-03-16 17:43:30
|
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> |
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... ----------------------------------------------------------------------------------- |