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 1034787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:26:49+00:00 2026-05-16T14:26:49+00:00

I have an odd problem. I have a number of C# apps that utilize

  • 0

I have an odd problem. I have a number of C# apps that utilize Nhibernate 2.1.
Within the last 2 days I’ve begun receiving the following error:

Could not load file or assembly 'NHibernate, Version=3.0.0.1001, Culture=neutral,
PublicKeyToken=aa95f207798dfdb4' or one of its dependencies. The located assembly's 
manifest definition does not match the assembly reference. (Exception from HRESULT: 
0x80131040)

I cannot for the life of me locate the cause of this problem, I’ve not updated my reference assemblies and the correct v2.1 .dll’s are where they should be. I’ve cleaned the solution entirely and recompiled and I’m convinced it is not a mapping issue as known-working objects now fail to retrieve. Regardless below are my object and mapping.

using System;
using System.IO;
using System.Collections.Generic;

namespace Epn.Assembly.Domain
{
   public class Email
   {
        public int EmailId { get; set; }

        public string Sender { get; set; }
        public string Recipient { get; set; }
        public string CC { get; set; }
        public string BCC { get; set; }
        public string Subject { get; set; }
        public string Body { get; set; }
        public string EmailType { get; set; }
        public Nullable<DateTime> SentDateTime { get; set; }
        public string ErrorMessage { get; set; }
        public DateTime QueueDateTime { get; set; }
        public DateTime LastActivityDateTime { get; set; }
        public bool HoldForReview { get; set; }

    }
}



<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" schema="SystemStatusDb.dbo" auto-import="true" assembly="EpnDomain" namespace="Epn.Assembly.Domain">
  <class name="Epn.Assembly.Domain.Email, EpnDomain" lazy="false" table="EpnEmails">

    <id name="EmailId" column="EmailId">
      <generator class="native" />
    </id>

    <property name="Sender" column="Sender"/>
    <property name="Recipient" column="Recipient" />
    <property name="CC" column="CC" />
    <property name="BCC" column="BCC" />
    <property name="Subject" column="Subject" />
    <property name="Body" column="Body" />
    <property name="EmailType" column="EmailType" />
    <property name="SentDateTime" column="SentDateTime" />
    <property name="ErrorMessage" column="ErrorMessage" />
    <property name="QueueDateTime" column="QueueDateTime" />
    <property name="LastActivityDateTime" column="LastActivityDateTime" />
    <property name="HoldForReview" column="HoldForReview" />

  </class>
</hibernate-mapping>
  • 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-05-16T14:26:49+00:00Added an answer on May 16, 2026 at 2:26 pm

    UPDATE: This was the cause of a phantom app.config entry. I am unsure how it was added but this line was present:

    <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="NHibernate" publicKeyToken="AA95F207798DFDB4" culture="neutral"/>
                <bindingRedirect oldVersion="0.0.0.0-3.0.0.1001" newVersion="3.0.0.1001"/>
            </dependentAssembly>
        </assemblyBinding>
    </runtime>
    

    Removing this fixed the problem.

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

Sidebar

Related Questions

I have odd problem: After starting server I got this error: undefined local variable
I have an odd problem with Django. I have a set of objects that
I have an extremely odd problem in my JUnit tests that I just can't
I have an odd problem that I've been beating my head into a wall
I have an odd reoccurring error that I believe is related to View State
I have an odd problem where Hibernate is running more queries than I've asked
I have a odd problem with Google Maps APIv2 markers. I'm making a site
I have an odd problem. Basicly my page works fine however after a small
I have an odd problem when using the return result of a function and
I have an odd problem with one of my Razor views in an ASP.NET

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.