If I try to access the member list page, I get an error thrown up. Its a collation conflict (see below).
When I installed, I had different collations on my local & remote database. Everything seems to work except this one page. I've also tried it with a default installation of MojoPortal and get same error.
I'd assumed it was because my local and remote databases had differing collations, and would go away if I changed them.
After a lot of head-scratching, I've changed the collation of my local database to match the remote one ( SQL_Latin1_General_CP1_CI_AS ) BUT I still get the collation conflict.
Can you help?
some more detail:
Initially I changed just the collation of the local database. That didn't work & I read about tempdb. So I used rebuilddatabase to change the collation of the whole thing, including system databases.
I'm using SQL Server 2008 r2 express.
server info:
mojoPortal Version 2.3.6.6 MSSQL
Operating System Microsoft Windows NT 6.0.6002 Service Pack 2
ASP.NET Info v4.0.30319 Running in Full Trust
Server Time Zone Pacific Daylight Time
Server Local Time (GMT -7) 22/06/2011 15:53:53
Greenwich Mean Time (GMT/UTC) 22/06/2011 22:53:53
The error I see is:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AS" in the equal to operation.
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: Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AS" in the equal to operation.
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 (0x80131904): Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AS" in the equal to operation.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) +2030802
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +5009584
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning() +234
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +2275
System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +33
System.Data.SqlClient.SqlDataReader.get_MetaData() +86
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +311
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +987
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +162
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +141
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) +70
mojoPortal.Data.SqlHelper.ExecuteReader(String connectionString, CommandType commandType, String commandText, Int32 commandTimeout, SqlParameter[] commandParameters) +235
mojoPortal.Data.SqlParameterHelper.ExecuteReader() +73
mojoPortal.Data.DBSiteUser.GetUserListPage(Int32 siteId, Int32 pageNumber, Int32 pageSize, String userNameBeginsWith) +257
mojoPortal.Business.SiteUser.GetPage(Int32 siteId, Int32 pageNumber, Int32 pageSize, String userNameBeginsWith, Int32& totalPages) +106
mojoPortal.Web.UI.Pages.MemberList.BindAlphaList() +53
mojoPortal.Web.UI.Pages.MemberList.PopulateControls() +302
mojoPortal.Web.UI.Pages.MemberList.Page_Load(Object sender, EventArgs e) +141
System.Web.UI.Control.OnLoad(EventArgs e) +91
mojoPortal.Web.mojoBasePage.OnLoad(EventArgs e) +13
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207