473,387 Members | 1,611 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

NHibernate and assembly issue

Hi,

In my C# project (VisitorManagement) I have a subfolder
(BusinessObjects) in which I have put the objects needed for NHibernate
and the mapping files.

In the top of my web service I do a using
VisitorManagement.BusinessObjects; and I'm able to use these objects.
But When I invoke the web service I get the following error.

Code C#:
cfg = new Configuration();
cfg.AddAssembly("VisitorManagement.BusinessObjects ");

Error:
NHibernate.MappingException: Could not add assembly named:
VisitorManagement.BusinessObjects ---> System.IO.FileNotFoundException:
File or assembly name VisitorManagement.BusinessObjects, or one of its
dependencies, was not found.
File name: "VisitorManagement.BusinessObjects"

-----

Code C#:
cfg = new Configuration();
cfg.AddAssembly("VisitorManagement");

Error:
NHibernate.MappingException: persistent class
VisitorManagement.BusinessObjects.TblAuthorisation Level,VisitorManagement.BusinessObjects
not found ---> System.IO.FileNotFoundException: File or assembly name
VisitorManagement.BusinessObjects, or one of its dependencies, was not
found.
File name: "VisitorManagement.BusinessObjects"
It works if I put all the classes in the same folder, but I'd rather
stick to this alternative as it looks way cleaner.

If anybody knows how to sort this problem, I'll be gratefull.

Best reguards,

Pierre

Nov 17 '05 #1
0 3297

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Rob | last post by:
We are starting a new fairly big project based on the typical 3-tier approach (db, business, GUI layer). I have limited experience in that field but from my experience all the stored procedures,...
0
by: Fabricio de Reuter Sperandio | last post by:
Hi everyone, could you help me with this error? The check of the signature failed for assembly 'NHibernate' Its works perfectly on my develop machine but after upload to the host server...
0
by: Aquila Deus | last post by:
The documents on their website are completely wrong. Following is the a real example that works with NHibernate 1.0.2.0: <?xml version="1.0" encoding="utf-8"?> <configuration...
1
by: erin.sebastian | last post by:
Hello All, I am new to hibernate and new to nHibernate. I created a small app and when i try and run it i get the error i posted at the bottom of this message. I am using the helper class that...
1
by: Ram | last post by:
Hey, I'm having a trouble mapping a connecting between 2 of my tables. We have 2 tables - the simplest "dept", "emp" tables which are mapped to 2 classes. Class Dept contains 2 properties for...
1
by: sternr | last post by:
Hey, I'm using NHibernate version: 1.0.0.2 My Mapping documents: <class name="DM.Book" table="Books"> <id column="bookId" name="bookId"> <generator class="assigned" /> </id> <property...
5
by: igotyourdotnet | last post by:
I took over an asp.net C# app from a former developer that left. Ever so ofter I get an error message: Access is denied: 'NHibernate'. Description: An unhandled exception occurred during the...
0
by: Sean Chambers | last post by:
This is a fairly simple architecture question, just can't seem to wrap my head around the answer. I am using NHibernate 1.2 from the trunk to leverage generics support. I have a User Table...
4
by: IceMan | last post by:
Hi, I am using the configuration object and passing it a Assembly object to load. The assembly object i pass in is from a dll which is in a different folder then the Nhibernate dll. The...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.