PDA

View Full Version : مشکل در Connection string



raziyehbazargan
پنج شنبه 06 تیر 1392, 09:09 صبح
ممنون میشم راهنمایی کنید
به محض اجرای برنامه این پیغام نشان داده میشه
The key 'SecurityKey' does not exist in the appSettings configuration section.

اینم از فایل appconfig
<?xml version="1.0"?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="Damage.Properties.Settings.connString" connectionString="Data Source=172.20.5.95\SQL2005;Initial Catalog=TideWaterDamage;User ID=sa;Password=damagesystem"
providerName="System.Data.SqlClient" />
</connectionStrings>
<appSettings>
<add key="SecurityKey" value="Damage System"/>
</appSettings>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>