我开发了C# application
。并使用外部工具进行主题。
在为此应用程序创建设置之前,它可以正常工作。并没有数据库连接问题。
但是在为此应用程序创建安装程序并安装它之后,未创建与数据库的连接。
我使用app.config
文件获取连接字符串。我是否因为外部主题而在创建设置或问题时遗漏了什么?
我的app.config代码
<?xml version="1.0" encoding="utf-8" ?>
<configuration> <connectionStrings>
<add name="connectionStrings" connectionString="Data Source=SUMEET-PC\SQLSERVERNEW; Initial Catalog=ClothShop;User Id=sa;Password=123;" />
</connectionStrings>
</configuration>