winform 连不上 服务器的oracle数据库,提示“Settlement.DalSettlement.OracleHelper”的类型初始值设定项引发异常
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="Connstr" value="Server=202.75.223.104;Data Source=POSNEWZER;User ID=POSNEWZER;Password=nz123456;Unicode=True"/>
</appSettings>
</configuration>
这个是配置文件
------解决方案--------------------将连接字符串改成
private const String connString =
@"Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=203.75.223.101)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL)));User Id=pos;Password=密码";