把WEB.CONFIG中的数据库连接换成你的登陆信息    <add key="connectionString" value="server=localhost;User=sa;pwd=;database=AspNetForums" />

解决方案 »

  1.   

    我是过了,奇怪的是用非sa,都说登录失败,用sa说,请求顺序不对:(你成功安装AspNetForums了吗?交流一下吧,谢谢
      

  2.   

    以下是将uid=sa的出错结果
    Server Error in '/AspNetForums' Application.
    --------------------------------------------------------------------------------无法解决 equal to 操作的排序规则冲突。 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: 无法解决 equal to 操作的排序规则冲突。Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  Stack Trace: 
    [SqlException: 无法解决 equal to 操作的排序规则冲突。]
       System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream) +723
       System.Data.SqlClient.SqlCommand.ExecuteReader() +41
       AspNetForums.Data.SqlDataProvider.GetSiteStatistics() +109
       AspNetForums.Components.Statistics.GetSiteStatistics() +120
       AspNetForums.Controls.SiteStats.InitializeSkin(Control skin) +20
       AspNetForums.Controls.SkinnedForumWebControl.CreateChildControls() +24
       System.Web.UI.Control.EnsureChildControls() +100
       System.Web.UI.Control.PreRenderRecursiveInternal() +38
       System.Web.UI.Control.PreRenderRecursiveInternal() +125
       System.Web.UI.Control.PreRenderRecursiveInternal() +125
       System.Web.UI.Control.PreRenderRecursiveInternal() +125
       System.Web.UI.Page.ProcessRequestMain() +1489 
    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:1.1.4322.12; ASP.NET Version:1.1.4322.12
      

  3.   

    你是第一次装吧,这个东东是老外写的,所以如果你装的是中文SQL SERVER默认的排序规则是有充突的,修改AspNetForums.sql中的排序规则就好了
      

  4.   

    我的是这样的:<add key="connectionString" value="server=(local)\NetSDK;database=AspNetForums;Trusted_Connection=yes" />
      

  5.   

    这样做没有用:(
    我试过了,你装上了吗?
    你用的什么系统?Sql什么语言版本?
      

  6.   

    我装上了,ms sql的,你也参考一下.net framework那里怎样连接database的吧.在sql里的aspnetforums数据库看一下用户名是不是有权访问的。在SQLserver AspNetForums数据库中查找Statistics_ResetTopPosters存储过程,修改此过程中的下列语句: 
       CREATE Table #Top500Users ( 
         Rank int IDENTITY (1, 1) NOT NULL , 
         UserName nvarchar(50) 
    为 
       CREATE Table #Top500Users ( 
         Rank int IDENTITY (1, 1) NOT NULL , 
         UserName nvarchar(50) COLLATE SQL_Latin1_General_CP1_CI_AS