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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:45:52+00:00 2026-06-10T03:45:52+00:00

I upgraded my MVC3 project to MVC4 without much trouble but the Web API

  • 0

I upgraded my MVC3 project to MVC4 without much trouble but the Web API (the reason why I did it) is not working because, apparently, there’s something referencing NHibernate.

<Exception>
  <ExceptionType>System.IO.FileNotFoundException</ExceptionType>
  <Message>Could not load file or assembly 'NHibernate, Version=3.1.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4' or one of its dependencies. The system cannot find the file specified.</Message>
  <StackTrace>
     at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
     at System.Reflection.RuntimeAssembly.GetExportedTypes()
     at System.Web.Http.Dispatcher.DefaultHttpControllerTypeResolver.GetControllerTypes(IAssembliesResolver assembliesResolver)
     at System.Web.Http.WebHost.WebHostHttpControllerTypeResolver.GetControllerTypes(IAssembliesResolver assembliesResolver)
     at System.Web.Http.Dispatcher.HttpControllerTypeCache.InitializeCache()
     at System.Lazy`1.CreateValue() at System.Lazy`1.LazyInitValue()
     at System.Lazy`1.get_Value()
     at System.Web.Http.Dispatcher.DefaultHttpControllerSelector.InitializeControllerInfoCache()
     at System.Lazy`1.CreateValue() at System.Lazy`1.LazyInitValue()
     at System.Lazy`1.get_Value()
     at System.Web.Http.Dispatcher.DefaultHttpControllerSelector.SelectController(HttpRequestMessage request)
     at System.Web.Http.Dispatcher.HttpControllerDispatcher.SendAsyncInternal(HttpRequestMessage request, CancellationToken cancellationToken)
     at System.Web.Http.Dispatcher.HttpControllerDispatcher.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
  </StackTrace>
</Exception>

I removed the references to NHibernate because I tried adding FunnelWeb blog to my site but I ended up with two completely different practices in the same project and I didn’t like that at all.

And I don’t think it’s a good idea to put the NHibernate library in place again because I would hiding something I should know about.

I have tried NDepend but in no way NHibernate was found.

Note that my project is compiling and running fine. Any ideas please?

  • 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-10T03:45:53+00:00Added an answer on June 10, 2026 at 3:45 am

    Have you tried erasing your bin directory?

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

Sidebar

Related Questions

I recently upgraded one of my project from MVC2 to MVC3 and adjusted some
I have upgraded my project to mvc3 and want to keep all my pages
I have just upgraded my mvc2 app to mvc3. And the routelink stopped working.
I just upgraded my project from ASP.NET MVC1.0 to ASP.NET MVC4.0 One thing that
I just upgraded my MVC2 project to MVC3 and used the NuGet library package
We have an existing MVC2 project that we just upgraded to MVC4 following first
I have an existing MVC3 project (upgraded from MVC2 about 3 months ago) and
Just recently upgraded to Visual Studio 2010 SP1 and ASP.NET MVC3, but the only
I upgraded emacs on a remote terminal to 23-snapshot. As I did not have
I've upgraded an MVC2 project to MVC3 and now want to start using the

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.