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 AddAssembly(Ass embly assembly) function throws me an Error saying
it can't load the configuration hbm.xml file because it can't load the
assembly in the hbm.xml file.
Why does NHibernate try to load the Assembly again?? 4 3336
"IceMan" <an***********@ gmail.comwrote in message
news:11******** *************@n 59g2000hsh.goog legroups.com...
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 AddAssembly(Ass embly assembly) function throws me an Error saying
it can't load the configuration hbm.xml file because it can't load the
assembly in the hbm.xml file.
Why does NHibernate try to load the Assembly again??
I think NHibernate tries to load the mapping files from the assembly when
using Configuration.A ddAssembly(Asse mbly asm). Has the hbm.xml file been
compiled into the assembly as an Embedded Resource?
On May 10, 2:38 pm, "Dave Shooter"
<alwayskeepitlo a...@delete.me. googlemail.comw rote:
"IceMan" <andreas.sk...@ gmail.comwrote in message
news:11******** *************@n 59g2000hsh.goog legroups.com...
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 AddAssembly(Ass embly assembly) function throws me an Error saying
it can't load the configuration hbm.xml file because it can't load the
assembly in the hbm.xml file.
Why does NHibernate try to load the Assembly again??
I think NHibernate tries to load the mapping files from the assembly when
using Configuration.A ddAssembly(Asse mbly asm). Has the hbm.xml file been
compiled into the assembly as an Embedded Resource?
Yes, i have made the hbm.xml file an embedded resource, and it works
if the nhibernate and the assembly with the mapping file is in the
same folder.
But it appears that NHibernate tries to load the assembly from the
location NHibernate was loaded from.
But i don't understand why the assembly has to be loaded again. As I
am guesing it most allready be loaded when i have been able to create
other types from that assembly.
IceMan,
By a quick look in the code of NHibernate(vers ion 1.0.2 though) that i
had on my disk the only calls that NHibernate do with the assembly are
assembly.GetMan ifestResourceNa mes() - to get an array of all resources
inside the assembly(to be able to pull out all "hbm.xml" resources)
and
assembly.GetMan ifestResourceSt ream( fileName ) to get the stream to a
specific file
NHibernate does not try to reload the assembly.
/chanchitodata
On May 11, 3:39 am, IceMan <andreas.sk...@ gmail.comwrote:
On May 10, 2:38 pm, "Dave Shooter"
<alwayskeepitlo a...@delete.me. googlemail.comw rote:
"IceMan" <andreas.sk...@ gmail.comwrote in message
news:11******** *************@n 59g2000hsh.goog legroups.com...
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 AddAssembly(Ass embly assembly) function throws me an Error saying
it can't load the configuration hbm.xml file because it can't load the
assembly in the hbm.xml file.
Why does NHibernate try to load the Assembly again??
I think NHibernate tries to load the mapping files from the assembly when
using Configuration.A ddAssembly(Asse mbly asm). Has the hbm.xml file been
compiled into the assembly as an Embedded Resource?
Yes, i have made the hbm.xml file an embedded resource, and it works
if the nhibernate and the assembly with the mapping file is in the
same folder.
But it appears that NHibernate tries to load the assembly from the
location NHibernate was loaded from.
But i don't understand why the assembly has to be loaded again. As I
am guesing it most allready be loaded when i have been able to create
other types from that assembly.
Hi,
I solved the problem by adding a eventhandler to
"AppDomain.Curr entDomain.Assem blyResolve" and looking for the dll my
self
thanks
On May 12, 6:07 pm, chanchitodata <chanchitod...@ gmail.comwrote:
IceMan,
By a quick look in the code of NHibernate(vers ion 1.0.2 though) that i
had on my disk the only calls that NHibernate do with the assembly are
assembly.GetMan ifestResourceNa mes() - to get an array of all resources
inside the assembly(to be able to pull out all "hbm.xml" resources)
and
assembly.GetMan ifestResourceSt ream( fileName ) to get the stream to a
specific file
NHibernate does not try to reload the assembly.
/chanchitodata
On May 11, 3:39 am, IceMan <andreas.sk...@ gmail.comwrote:
On May 10, 2:38 pm, "Dave Shooter"
<alwayskeepitlo a...@delete.me. googlemail.comw rote:
"IceMan" <andreas.sk...@ gmail.comwrote in message
>news:11******* **************@ n59g2000hsh.goo glegroups.com.. .
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 AddAssembly(Ass embly assembly) function throws me an Error saying
it can't load the configuration hbm.xml file because it can't load the
assembly in the hbm.xml file.
Why does NHibernate try to load the Assembly again??
I think NHibernate tries to load the mapping files from the assembly when
using Configuration.A ddAssembly(Asse mbly asm). Has the hbm.xml file been
compiled into the assembly as an Embedded Resource?
Yes, i have made the hbm.xml file an embedded resource, and it works
if the nhibernate and the assembly with the mapping file is in the
same folder.
But it appears that NHibernate tries to load the assembly from the
location NHibernate was loaded from.
But i don't understand why the assembly has to be loaded again. As I
am guesing it most allready be loaded when i have been able to create
other types from that assembly.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<configSections>
<!-- SecurityException is thrown if NHibernate assembly is not in
GAC. -->
<section name="hibernate-configuration"
|
by: Hoffmania |
last post by:
Is there a good tutorial of getting databinding working with NHibernate
collections such as bags with lazy loading. I can access the collection
programaticly, but not directly with databinding.
|
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 can be found here
http://blogs.intesoft.net/simon/articles/16.aspx#36 . Does anyone know
why this error might occur.. i have NO IDEA.... if you require anymore
information please let me know and i will send it through.
Thanks in advance!
Erin
|
by: gaddoz |
last post by:
Hi all,
I'm trying to set up a .NET webservice using in data access layer
Nhibernate (nhib 1.2.0 beta).
The first trouble I met was that a webservice cannot serialize
Interfaces, like IList<>.
After I workarounded it, now I get:
System.InvalidOperationException: There was an error generating the XML
|
by: TigrouMeow |
last post by:
Hello,
I'm trying to make a "clean" webservice, using Nhibernate. I'm facing
some issues, but i'm quite the beginner with that kind of system. When
there are more than 2 clients connected on my webservice, i get
errors. It seems that the connection is dropped. Here is what i get
in theWinforms application using the Webservice :
Error = {"The underlying connection was closed: An unexpected error occurred
on a receive."}
| |
by: beantaxi |
last post by:
Hello all,
I'm trying to write a simple program, using VS C# 2005 Express and SQL
Server Express with NHib 1.0.2. No matter what I try, I'm unable to
connect:
cannot open connection
at NHibernate.Impl.SessionFactoryImpl.OpenConnection()
at NHibernate.Impl.SessionImpl.get_Connection()
at NHibernate.Transaction.AdoTransaction.Begin(IsolationLevel
|
by: Pieter |
last post by:
Hi,
I'm using NHibernate 1.2 (CR1), and I'm using a custom list (inherited from
BindingList(Of T) ) for all my lists.
The NHibernate documentation told me that I had to implement
IUserCollectionType to my custom list, which I did. But I still get an error
when trying to read the object: "
{"Unable to cast object of type
'NHibernate.Collection.Generic.PersistentGenericBag`1' to
|
by: Alexander Vasilevsky |
last post by:
Does the number NHibernate download data? For example, first can be
downloaded 100 rows of data, and then as necessary podgruzhat else.
Where can I read about NHibernate and its potential?
http://www.alvas.net - Audio tools for C# and VB.Net developers
|
by: thj |
last post by:
Hi,
I was wondering what you guys are using and why?
LINQ to SQL or NHibernate?
Thanks in advance,
Tommy
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |