Subject: Collation Conflict in Event Log
Prev Next
You are not authorized to post a reply.

AuthorMessages
colbyUser is Offline
New Poster
New Poster
Posts:19

07/12/2010 10:41 PM  

Trying to access the Event log, i get an error when logged in as Admin.  Using the host acocunt I get:

 

Error: Log Viewer is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "SQL_Latin1_General_CP850_CI_AI" in the equal to operation. ---> System.Data.SqlClient.SqlException: Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "SQL_Latin1_General_CP850_CI_AI" in the equal to operation. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(SqlConnection connection, SqlTransaction transaction, CommandType commandType, String commandText, SqlParameter[] commandParameters, SqlConnectionOwnership connectionOwnership) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteReader(String connectionString, String spName, Object[] parameterValues) at DotNetNuke.Services.Log.EventLog.DBLoggingProvider.Data.SqlDataProvider.GetLog(Int32 PageSize, Int32 PageIndex) at DotNetNuke.Services.Log.EventLog.DBLoggingProvider.DBLoggingProvider.GetLog(Int32 PageSize, Int32 PageIndex, Int32& TotalRecords) at DotNetNuke.Services.Log.EventLog.LogController.GetLog(Int32 PageSize, Int32 PageIndex, Int32& TotalRecords) at DotNetNuke.Modules.Admin.LogViewer.LogViewer.BindData() at DotNetNuke.Modules.Admin.LogViewer.LogViewer.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

I've been trying to correct this for a few months now with no luck.

Hopefully someone can give me some possible insight into how to correct this.

 

Cheers

Dave

Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:6089

07/12/2010 10:47 PM  
It sounds like you are using a non-standard collation on your database.

-Mitchel Sellers
Microsoft C# MVP, MCITP
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

For shared hosting I recommend PowerDNN

This site is hosted on a Dedicated Server from PowerDNN.com

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
colbyUser is Offline
New Poster
New Poster
Posts:19

07/13/2010 12:04 PM  

This is what I get when I check to collation of the various pieces:

 
 

DotNetNukeDB_CollationTempDB_Collation Server_Default_Collation
SQL_Latin1_General_CP1_CI_AS SQL_Latin1_General_CP1_CI_AS SQL_Latin1_General_CP1_CI_AS

 

However, lots of columns in the installation have a different collation, especiallt the EventLog table:

EventLogLogGUIDSQL_Latin1_General_CP850_CI_AI
EventLogLogPortalNameSQL_Latin1_General_CP850_CI_AI
EventLogLogPropertiesSQL_Latin1_General_CP850_CI_AI
EventLogLogServerNameSQL_Latin1_General_CP850_CI_AI
EventLogLogTypeKeySQL_Latin1_General_CP850_CI_AI
EventLogLogUserNameSQL_Latin1_General_CP850_CI_AI
EventLogConfigLogTypeKeySQL_Latin1_General_CP850_CI_AI
EventLogConfigMailFromAddressSQL_Latin1_General_CP850_CI_AI
EventLogConfigMailToAddressSQL_Latin1_General_CP850_CI_AI
EventLogTypesLogTypeCSSClassSQL_Latin1_General_CP850_CI_AI
EventLogTypesLogTypeDescriptionSQL_Latin1_General_CP850_CI_AI
EventLogTypesLogTypeFriendlyNameSQL_Latin1_General_CP850_CI_AI
EventLogTypesLogTypeKeySQL_Latin1_General_CP850_CI_AI
EventLogTypesLogTypeOwnerSQL_Latin1_General_CP850_CI_AI

 

I'm thinking that I am in a bit of trouble here...

Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:6089

07/13/2010 12:41 PM  
Yes, you are in a bit of trouble, but not horrible.

For the columns that have the incorrect collation, you can update them to use the proper one.

Here is an article on the topic - http://technet.microsoft.com/en-us/library/ms190920.aspx

I would be sure to take a backup first, just in case.

-Mitchel Sellers
Microsoft C# MVP, MCITP
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

For shared hosting I recommend PowerDNN

This site is hosted on a Dedicated Server from PowerDNN.com

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
colbyUser is Offline
New Poster
New Poster
Posts:19

07/21/2010 12:02 AM  
Thanks Mitchel, I will be giving this a try in the next week or so since I have tested it successfully in the lab.

Cheers
You are not authorized to post a reply.
Forums >Development Discussion >DotNetNuke > Collation Conflict in Event Log



ActiveForums 3.7