我在网上下载了一个ASP.NET精品全站程序SQL版的东东,运行后出现以下提示
“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------Login failed for user 'cskuser'. Reason: Not associated with a trusted SQL Server connection. 
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.Data.SqlClient.SqlException: Login failed for user 'cskuser'. Reason: Not associated with a trusted SQL Server connection.源错误: 执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。  堆栈跟踪: 
[SqlException: Login failed for user 'cskuser'. Reason: Not associated with a trusted SQL Server connection.]
   System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction) +472
   System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) +372
   System.Data.SqlClient.SqlConnection.Open() +384
   System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState) +44
   System.Data.Common.DbDataAdapter.FillFromCommand(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +304
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +77
   System.Data.Common.DbDataAdapter.Fill(DataSet dataSet) +38
   ASPNET.StarterKit.Communities.CommunityUtility.GetAllCommunitiesFromDB() +92
   ASPNET.StarterKit.Communities.CommunityUtility.GetAllCommunities() +56
   ASPNET.StarterKit.Communities.CommunityUtility.GetCommunityInfo() +332
   ASPNET.StarterKit.Communities.CommunitiesModule.Application_BeginRequest(Object source, EventArgs e) +204
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +60
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87 是不是我要建立个cskuser帐户呢???我的工具栏里运行着sql service manager
这是怎么一回事呢???请过来人指教--------------------------------------------------------------------------------
版本信息: Microsoft .NET Framework 版本:1.1.4322.2032; ASP.NET 版本:1.1.4322.2032

解决方案 »

  1.   

    Login failed for user 'cskuser'. Reason: Not associated with a trusted SQL Server connection. 首先你要明确,你是不配置好了与之相对应的数据库.
    如果是,检查一下,对应的数据表中是否有cskuser帐户.
      

  2.   

    高手,怎么配置呢????我从未配置过,呵呵。用sql service manager可以配置吗?
      

  3.   

    在企业管理器里面,你找本SQL的书看看吧,总是要学的
      

  4.   

    在SQL Server里的Login里加cskuser这个账户,然后让这个账户是你要访问的数据库的db_owners试一下