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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:20:37+00:00 2026-05-19T00:20:37+00:00

I have installed NHibernate for my ASP.NET web app although I’m getting a problem

  • 0

I have installed NHibernate for my ASP.NET web app although I’m getting a problem in real-time on the following line of code:

            if (_sessionFactory == null)
            {
                _sessionFactory = new Configuration().Configure().BuildSessionFactory();

            }

Looking at the inner exception the problem is this:

{“Could not find file ‘D:\Websites\Test\Test\Test\bin\hibernate.cfg.xml’.”:”D:\Websites\Test\Test\Test\bin\hibernate.cfg.xml”}

This makes sense, as the file doesnt exist in that location. This line of code is within my Core project. File hibernate.cfg.xml is currently in my Infrastucture project, not my Core. Should this be? I have copied the file into this location although I still get problems. If I manually copy the file into this location within windows explorer I then get the following error during runtime.

{“Could not load file or assembly
‘Infrastructure’ or one of its
dependencies. The system cannot find
the file specified.”:”Infrastructure”}

Also, I’m missing DynamicProxy.dll as I’m using castle and I couldnt see a version of the DynamicProxy in the castle folder that I downloaded from http://sourceforge.net/projects/nhibernate/

any suggestions? I can see LinFu.DynamicProxy.dll within the download although it says I only need one of the folders, Linfu or Castle, and I’m using Castle for this experiment. Not sure if this has anything to do with it, just thought it might help.

any ideas? Many thanks,
James

  • 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-19T00:20:37+00:00Added an answer on May 19, 2026 at 12:20 am

    About “Could not find hibernate.cfg.xml”: you can either set it to “Copy to Output” (see this) or configure it as an embedded resource.

    About “Could not load assembly Infrastructure”: you’re missing Infrastructure.dll in your bin, or one of its dependencies, just as the error says.

    About missing DynamicProxy.dll: if you’re using NHibernate 3.x all you need to use the Castle bytecode provider is NHibernate.ByteCode.Castle.dll and Castle.Core.dll

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

Sidebar

Related Questions

I have a visual studio solution with an ASP.NET 3.5 web application (WCF host)
I have installed Visual Studio 2010 and Silverlight 4 tools. Still, i am getting
Got an annoying problem here. I've got an NHibernate/Forms application I'm working through SVN.
I have installed WAMP and enable some extension. After that i have installed eclipse
I have installed some MSI with GUID (0733556C-37E8-4123-A801-D3E6C5151617). The program registered in the registry:
I have installed RubyMine on Mac but my development environment for Ruby and Rails
I have installed SharePoint 2010 on a single machine in farm mode pointing to
I have an object model that I want to store using an embedded database.
I am using maven2 with a struts-hibernate Java EE project and developing with myEclipse.
I understand it should probably be other way round (OSGI runtime hosting Java EE

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.