Problem after fresh install when selecting Member List

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
8/12/2007 2:12:28 PM
Gravatar
Total Posts 8

Problem after fresh install when selecting Member List

I get the following error when picking 'Member List' off the freshly installed hame page.  Any ideas?  I have already confiremed that 3CreateTables.sql does not contain any collation clauses.

 

Server Error in '/MojoPortal' 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) +857306
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +734918
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1838
System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +31
System.Data.SqlClient.SqlDataReader.get_MetaData() +62
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +297
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +886
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +132
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +122
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) +62
mojoPortal.Data.SqlHelper.ExecuteReader(SqlConnection connection, SqlTransaction transaction, CommandType commandType, String commandText, SqlParameter[] commandParameters, SqlConnectionOwnership connectionOwnership) +351
mojoPortal.Data.SqlHelper.ExecuteReader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) +109
mojoPortal.Data.dbPortal.SiteUser_GetUserListPage(Int32 siteID, Int32 pageNumber, Int32 pageSize, String userNameBeginsWith) +718
mojoPortal.Business.SiteUser.GetPage(Int32 siteID, Int32 pageNumber, Int32 pageSize, String userNameBeginsWith, Int32& totalPages) +61
mojoPortal.Web.UI.Pages.MemberList.PopulateControls() +229
mojoPortal.Web.UI.Pages.MemberList.Page_Load(Object sender, EventArgs e) +29
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061

8/13/2007 5:11:52 PM
Gravatar
Total Posts 18439

Re: Problem after fresh install when selecting Member List

Can you try the new release files 2.2.3.4 and see if that gets past the problem?

Thanks,

Joe

8/13/2007 10:00:33 PM
Gravatar
Total Posts 8

Re: Problem after fresh install when selecting Member List

Well, unfortunately, I now get the following error.  I don't have access to install NeatUpload into the GAC.  Any other ideas?

Thanks.....

 

Server Error in '/MojoPortal' Application.
--------------------------------------------------------------------------------

Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

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:


[SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) +0
System.Security.CodeAccessPermission.Demand() +59
System.Web.HttpContext.System.IServiceProvider.GetService(Type service) +54
Brettle.Web.NeatUpload.UploadHttpModule.GetCurrentWorkerRequest() +57
Brettle.Web.NeatUpload.UploadHttpModule.Application_BeginRequest(Object sender, EventArgs e) +72
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

8/14/2007 6:28:02 AM
Gravatar
Total Posts 18439

Re: Problem after fresh install when selecting Member List

Ok, so you must be running in Medium Trust or some other security policy that is less than full trust.

See the info here:

http://www.mojoportal.com/mediumtrust.aspx

You can disable NeatUpload by commenting it out in Web.config. You will also need to uncomment the setting for Lucene.Net.lockdir and put the full file system path to your Data/index folder there.

Hope it helps,

Joe

8/14/2007 8:21:46 PM
Gravatar
Total Posts 8

Re: Problem after fresh install when selecting Member List

8/14/2007 8:27:30 PM
Gravatar
Total Posts 8

Re: Problem after fresh install when selecting Member List

 

Hi -

After disabling NeatUpload in web.config, I made it through installation.  I had already put in the Lucene.Net.lockdir key.  But, once I got setup, and changed admin@admin.com's password, I hit Member List and got the same following error.

Any suggestions as to what to try next?  The site is at www.onegenerationtoanother.com/mojoportal/default.aspx.  I've reset the admin password in case you want to look around.

Thanks in advance.....

 

Server Error in '/MojoPortal' 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) +857306
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +734918
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1838
System.Data.SqlClient.SqlDataReader.ConsumeMetaData() +31
System.Data.SqlClient.SqlDataReader.get_MetaData() +62
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +297
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) +886
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) +132
System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) +32
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) +122
System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) +62
mojoPortal.Data.SqlHelper.ExecuteReader(SqlConnection connection, SqlTransaction transaction, CommandType commandType, String commandText, SqlParameter[] commandParameters, SqlConnectionOwnership connectionOwnership) +351
mojoPortal.Data.SqlHelper.ExecuteReader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) +109
mojoPortal.Data.dbPortal.SiteUser_GetUserListPage(Int32 siteID, Int32 pageNumber, Int32 pageSize, String userNameBeginsWith) +718
mojoPortal.Business.SiteUser.GetPage(Int32 siteID, Int32 pageNumber, Int32 pageSize, String userNameBeginsWith, Int32& totalPages) +61
mojoPortal.Web.UI.Pages.MemberList.PopulateControls() +229
mojoPortal.Web.UI.Pages.MemberList.Page_Load(Object sender, EventArgs e) +29
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +47
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.210

8/15/2007 5:38:19 AM
Gravatar
Total Posts 18439

Re: Problem after fresh install when selecting Member List

When I google the collation error I get lots of results that seem mostly to suggest server configuration issues. You could try changing the strored procedure used on that page as follows:

ALTER PROCEDURE [dbo].[mp_Users_SelectPage]

/*
Author: Joe Audette
Created: 2004-10-3
Last Modified: 2007-08-15

*/

@PageNumber int,
@PageSize int,
@UserNameBeginsWith nvarchar(50),
@SiteID int


AS
DECLARE @PageLowerBound int
DECLARE @PageUpperBound int


SET @PageLowerBound = (@PageSize * @PageNumber) - @PageSize
SET @PageUpperBound = @PageLowerBound + @PageSize + 1

--SET @PageLowerBound = @PageSize * @PageNumber
--SET @PageUpperBound = @PageLowerBound + @PageSize + 1


CREATE TABLE #PageIndexForUsers
(
IndexID int IDENTITY (1, 1) NOT NULL,
UserName nvarchar(50),
LoginName nvarchar(50)
)


IF @UserNameBeginsWith IS NULL OR @UserNameBeginsWith = ''
BEGIN
INSERT INTO #PageIndexForUsers (UserName, LoginName)

SELECT [Name], LoginName
FROM mp_Users
WHERE ProfileApproved = 1
AND DisplayInMemberList = 1
AND SiteID = @SiteID
AND IsDeleted = 0
ORDER BY [Name]
END
ELSE
BEGIN
INSERT INTO #PageIndexForUsers (UserName, LoginName)

SELECT [Name] , LoginName
FROM mp_Users
WHERE ProfileApproved = 1
AND DisplayInMemberList = 1
AND SiteID = @SiteID
AND IsDeleted = 0
AND [Name] COLLATE Latin1_General_CI_AS LIKE @UserNameBeginsWith + '%'
ORDER BY [Name]

END

DECLARE @TotalRows int
DECLARE @TotalPages int
DECLARE @Remainder int

SET @TotalRows = (SELECT Count(*) FROM #PageIndexForUsers)
SET @TotalPages = @TotalRows / @PageSize
SET @Remainder = @TotalRows % @PageSize
IF @Remainder > 0
SET @TotalPages = @TotalPages + 1


SELECT *,
'TotalPages' = @TotalPages

FROM mp_Users u

JOIN #PageIndexForUsers p
ON u.LoginName COLLATE Latin1_General_CI_AS = p.LoginName

WHERE u.ProfileApproved = 1
AND u.SiteID = @SiteID
AND u.IsDeleted = 0
AND p.IndexID > @PageLowerBound
AND p.IndexID < @PageUpperBound

ORDER BY p.IndexID

DROP TABLE #PageIndexForUsers

it may solve it for you and hopefully no other procedures need any changes.

Joe

1/6/2011 2:37:22 AM
Gravatar
Total Posts 14

Re: Problem after fresh install when selecting Member List

Hi Joe,

I have faced same problem with MemberList. The patch worked for me well.

 

Thanks,

Raavi

You must sign in to post in the forums. This thread is closed to new posts.