
/appSettings>
这是访问数据库的代码,麻烦看看,数据库用户就是514-PC3
检查下皮拍以下的三个连接串。
connectionString="Data Source=.\sqlexpress;Initial Catalog=docManager;Integrated Security=True"
//有没有docManager数据库?Data Source=.\sqlexpress;改为Data Source=.; 试试。
connectionString="Data Source=514-PC3\SQLEXPRESS;Initial Catalog=docManager;Integrated Security=True;MultipleActiveResultSets=False;Packet Size=4096;Application Name="Microsoft SQL Server Management Studio Express""
改为下面试试(后面同理):内层的双引号改为单引号。
connectionString="灶掘Data Source=514-PC3\SQLEXPRESS;Initial Catalog=docManager;Integrated Security=True;MultipleActiveResultSets=False;Packet Size=4096;Application Name='Microsoft SQL Server Management Studio Express'"
connectionString="Data Source=JOHNCHOU\SQLEXPRESS;Initial Catalog=docManager;Integrated Security=True;MultipleActiveResultSets=False;Packet Size=4096;Application Name="燃辩羡Microsoft SQL Server Management Studio Express""
你好,发布到IIS上的程序是不能使用windows用户登录,你需要自己新建一个账户登录。。
建议上传到虚拟主机的ftp空间调试!
检查你的程序连接SQL配置对不,在检查下SQL运行正常,看看防火墙是不是阻挡端口了,逐一排查呗