Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

[WEB.CONFIG] pb avec chaine de connexion

2 réponses
Avatar
tchaa
salut a tous,

je suis en train de configurer ma chaine de connexion ds le fichier
WEB.CONFIG mais j'obtien le message d'erreur suivant :


Code :

<?xmlversion="1.0"?>

<configuration>
<appSettings/>
<connectionStrings>

<addname="DatabaseConnection"
connectionString="Provider=MSDAORA;Data Source=tabst.world;Persist Security
Info=True;User ID=sat"
providerName="system.data.oledb" />
</connectionStrings>
<system.web>
<compilationdebug="true"/>

<authenticationmode="Windows"/>

</system.web>
</configuration>


Code :
Configuration Error

An error occurred during the processing of a configuration file required to
service this request. Please review the specific error details below and
modify your configuration file appropriately.

Unrecognized configuration section 'connectionStrings'



Line 10: <configuration>Line 11: <appSettings/>Line 12:
<connectionStrings>Line 13: Line 14: <add name="DatabaseConnection"
merci de m'orienter

2 réponses

Avatar
Pierre Vivier-Merle
Bonjour

vous êtes en .NET 1.1 ou 2.0 ?

--
Cordialement,
Pierre
Venez visiter mon blog : http://blogs.developpeur.org/pierre !


"tchaa" a écrit dans le message de news:

salut a tous,

je suis en train de configurer ma chaine de connexion ds le fichier
WEB.CONFIG mais j'obtien le message d'erreur suivant :


Code :

<?xmlversion="1.0"?>

<configuration>
<appSettings/>
<connectionStrings>

<addname="DatabaseConnection"
connectionString="Provider=MSDAORA;Data Source=tabst.world;Persist
Security
Info=True;User ID=sat"
providerName="system.data.oledb" />
</connectionStrings>
<system.web>
<compilationdebug="true"/>

<authenticationmode="Windows"/>

</system.web>
</configuration>


Code :
Configuration Error

An error occurred during the processing of a configuration file required
to
service this request. Please review the specific error details below and
modify your configuration file appropriately.

Unrecognized configuration section 'connectionStrings'



Line 10: <configuration>Line 11: <appSettings/>Line 12:
<connectionStrings>Line 13: Line 14: <add name="DatabaseConnection"
merci de m'orienter


Avatar
Laulau
Salut tchaa,

Essaye plutôt quelque chose comme ça pour stocker ta chaine de connexion:
<appSettings>
<add key="connectionString" value="Provider=MSDAORA;Data
Source=tabst.world;Persist Security Info=True;User ID=sat" />
</appSettings>

"tchaa" a écrit :

salut a tous,

je suis en train de configurer ma chaine de connexion ds le fichier
WEB.CONFIG mais j'obtien le message d'erreur suivant :


Code :

<?xmlversion="1.0"?>

<configuration>
<appSettings/>
<connectionStrings>

<addname="DatabaseConnection"
connectionString="Provider=MSDAORA;Data Source=tabst.world;Persist Security
Info=True;User ID=sat"
providerName="system.data.oledb" />
</connectionStrings>
<system.web>
<compilationdebug="true"/>

<authenticationmode="Windows"/>

</system.web>
</configuration>


Code :
Configuration Error

An error occurred during the processing of a configuration file required to
service this request. Please review the specific error details below and
modify your configuration file appropriately.

Unrecognized configuration section 'connectionStrings'



Line 10: <configuration>Line 11: <appSettings/>Line 12:
<connectionStrings>Line 13: Line 14: <add name="DatabaseConnection"
merci de m'orienter