$exception{"用户 'bangbang2008' 登录失败。原因: 未与信任 SQL Server 连接相关联。"}System.Exception {System.Data.SqlClient.SqlException}
------解决方案--------------------------------------------------------
数据库连接语句可能有问题....
(server=.;uid=sa;pwd=sa;database=pubs;Integrated Security=true)
在你的数据库连接语句上加上红色部门...
试试....
------解决方案--------------------------------------------------------
Integrated Security=true
同意