System environment: Window2000, IIS5.0, DOTNET FRAMEWORK1.1, SQLSERVER2000
First, the initial setting will decompress the ASPNETforum to a directory DOTNETFORUM, with the following directory: - Aspnetforums - Engine - Install_Images - SQLScripts - SQLUPGRADEScripts
Set the ASPNETFORUMS as a virtual directory aspnetforumUMS in IIS (other names.), NT ACL permissions allow EVERYONE access.
SqlServer2000 a database created in AspNetForums, using a different name does not matter, in AspNetForums directory Web.Config file
The initial setting is complete!
Second, debugging running web.config
1. Run error A error message: Unable to open the database requested in 'ASPNETforumus'. Login failed. User 'HOB / ASPNET' login failed (HOB / ASPNET is an ASPNET configuration account on my machine). According to the stack track, it is found that the system.data.sqlclient.sqlconnection connection failed, I thought it was the connection string did not set the user account, the password, so modified
by! !
2. Running error two runs, an error message appears: Unable to resolve the rule of rule of Equal TO operation. According to the stack track, check the ASPNETFORUMS.DATA.SQLDATAPROVIDER.GETSITESTATISTICS method (source code can be found from Engine's project), found that he visited the stored procedure for ForuMs_getstatistics. Checking the Database Storage Procedure Find Error STATISTICS_RESETTOPPPSTERS in another stored procedure he called, there are several similar to: update users set attributes = (int, attributes) & 0xfffffff3) Where username = (Select Username from # Top500Users Where Rank = @LoopCounter) This statement. Since the result set rules of the sub-query are the default (my database is China_PRC sort), the username field of the user uses SQL_LATIN1_GENERAL_CP1_CI_AS sorting rules, thus collision with Equal TO. You can add a SQL_LATIN1_GENERAL_CP1_CI_LATIN1_GENERAL_CP1_CI_AS sorting rule to the temporary table # TOP500USERS, or use a variable to store the query result (also a result). Finally, run success! !
Recently I wanted to find a good open source forum. I hope that C # is written, so I think of Aspnetforums, I downloaded a 1.0 version, I found some problems, I recorded it. Aspnetforum has now developed for CommunityServer, it is a comparative knowledge management and collaborative platform.