Re: DataProviderConfigurationHandler don't find Web.config
Tomasz Dreßler <[email protected]> Tue, 16 Mar 2004 12:49:10 +0100
| Newsgroups | gmane.comp.lib.sql.sqlpp |
|---|---|
| Message-ID | <[email protected]> |
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
>> [email protected]
>> 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 : [email protected]
> -----------------------------------------------------------------------------------
>
>
>
>
> -------------------------------------------------------
> 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
> [email protected]
> 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