因为 APP.CONFIG文件 未添加 红色字体部分属性
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="Crystalreport.Properties.Settings.BMConnectionString"
connectionString="Data Source=.;Initial Catalog=BM;User ID=sa;Password=ccwen"
providerName="System.Data.SqlClient" />
</connectionStrings>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
</startup>
</configuration>
时间: 2024-10-15 04:26:15