Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8011451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:01:09+00:00 2026-06-04T19:01:09+00:00

I recently found a 6 part article series on logging in MVC over at

  • 0

I recently found a 6 part article series on logging in MVC over at Darren’s Blog (http://dotnetdarren.wordpress.com/).

It is a very good article on how to use Elmah, Log4Net, NLog, and Health Monitoring AND use a single UI to view and manage entries.

The article was written back in 2010, but I have successfully implemented it on an MVC 4 application that I am developing. The logging is working perfectly, but I do have an issue when trying to view entries in the combined UI.

I get the following error:

“System.Data.SqlClient.SqlException: Cannot resolve collation conflict for DISTINCT operation.”

If I comment out the configuration entry for Log4Net, I do not get the error any longer and I am able to see entries for Elmah and Health Monitoring. This error only occurs when trying to UNION in the entries from the Log4Net table.

Anyone have any ideas on how to resolve this?

Thanks in advance for any help.

UPDATE:
Here is the code (VB.NET) where the problem occurs:

For Each providerName As String In logProviders.Keys
    Dim logList As IQueryable(Of LogEventModel) = GetProvider(providerName).GetByDateRangeAndType(pageIndex, pageSize, startDate, endDate, logLevel)
    ' Error occurs on this line below, only when Log4Net is in use.
    list = If((list Is Nothing), logList, list.Union(logList))
Next
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T19:01:10+00:00Added an answer on June 4, 2026 at 7:01 pm

    I’ve had the same problem (with the same blog series)
    If you haven’t found a solution yet, here’s what helped me :

    Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AS" in the equal to operation

    Cheers

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

recently found an article in http://hashtwo.com/blog/integrating-a-file-browser-into-ckeditor-cakephp to integrate a file browser into ckeditor (file
Recently searching for a 'technical article' I stumbled upon this Microsoft page: http://academic.research.microsoft.com/ .
I recently found a very strange (to me) memory leak for an IEnumString COM
I recently found an article online that told me about this: RewriteRule ^mock-up/([^/]+)/([^/]+) /mock-up/index.php?page=$1&section=$2
We recently moved from Windows XP to Windows 7. We found that one part
I'm recently working on ID3v2.4.0. Reading 2.4.0 document, i found a particular part that
I recently found a problem in my Compile Sources Build Phase, it was compiling
I recently found that a query would not work on some of my records
I recently found myself writing a piece of code that executed a Core Data
I recently found out about C# extension methods and wrote this one: /// <summary>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.