说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.ArgumentException: 项“integrated security”的值无效。源错误: 执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。  堆栈跟踪: 
[ArgumentException: 项“integrated security”的值无效。]
   System.Data.Common.DbConnectionOptions.ConvertValueToIntegratedSecurityInternal(String stringValue) +1419882
   System.Data.Common.DbConnectionOptions.ConvertValueToIntegratedSecurity() +5025005
   System.Data.SqlClient.SqlConnectionString..ctor(String connectionString) +104
   System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous) +24
   System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(String connectionString, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions) +150
   System.Data.SqlClient.SqlConnection.ConnectionString_Set(String value) +59
   System.Data.SqlClient.SqlConnection.set_ConnectionString(String value) +4
   System.Web.UI.WebControls.SqlDataSource.CreateConnection(String connectionString) +34
   System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +117
   System.Web.UI.WebControls.ListControl.OnDataBinding(EventArgs e) +97
   System.Web.UI.WebControls.ListControl.PerformSelect() +34
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
   System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +66
   System.Web.UI.WebControls.ListControl.OnPreRender(EventArgs e) +29
   System.Web.UI.Control.PreRenderRecursiveInternal() +103
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Control.PreRenderRecursiveInternal() +175
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496 
--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.1
麻烦各位帮我看看是哪里出错了?谢谢了

解决方案 »

  1.   

    应该是你链接字符串写的不规范,server=.;uid=sa;pwd=你的密码;database=NorthWind
      

  2.   

    检查你的连接字符串。。integrated security=sspi这个是WINDOWS验证"server=.;database=TESDB2000;uid=sa;pwd=sa"
      

  3.   

    add name="jyxx1ConnectionString15" connectionString="Data
    Source=localhost;database=jyxx1;integrated security=SSPI"
       providerName="System.Data.SqlClient" />我是这样写的。貌似别的页面都可以连上的,就这个不行
      

  4.   

    http://www.connectionstrings.com/sql-server-2005
      

  5.   

    2楼说的对直译就是集成安全(验证),也就是集成Window身份验证
    连接串的写法有很多种
      

  6.   

    谢谢大家!原来是我有一个写成了security=SSPI3
    呵呵