-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 
Author Message
 Post subject: NHibernate Assembly Loading Problem
PostPosted: Fri Jan 27, 2006 9:40 pm 
Newbie

Joined: Fri Jan 27, 2006 9:28 pm
Posts: 4
I have encountered a problem when using NHibernate 1.0.1 and NHibernate 1.0.2 that I did not have when I was using NHibernate 1.0.0 and earlier.

I am using Visual C# 2005 as my IDE. When I start my program, it loads the NHibernate.dll and Iesi.Collections.dll assemblies, but it also attempts to load assemblies with seemingly random names, like the following...

(Managed): Loaded 'NHibernate.dll', No symbols loaded.
(Managed): Loaded 'dvobrs-w', No symbols loaded.
(Managed): Loaded 'knxq7ihp', No symbols loaded.
(Managed): Loaded 'Iesi.Collections.dll', No symbols loaded.
(Managed): Loaded 'mjh2avkr', No symbols loaded.
... this continues on for over 50 lines

This problem only occurred after I upgraded to NHibernate 1.0.1. The problem did not go away after upgrading to NHibernate 1.0.2.

Does anyone know what I might be doing wrong?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 28, 2006 4:05 am 
Regular
Regular

Joined: Mon May 16, 2005 1:35 am
Posts: 67
I think I have seen something similar with ASP.NET. It it a Web application or WinForms? If it is a Web app, make sure you don't have copy local set to true for your NH DLLs. ASP.NET doesn't like strongly named DLLs in the BIN folder.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 30, 2006 6:50 am 
Newbie

Joined: Fri Jan 27, 2006 9:28 pm
Posts: 4
Thanks for the tip!

It is a Windows Forms application. If I don't put the NHibernate DLL in the same directory as my executable, does that mean I have to put it in the global assembly cache? I would prefer not to do so.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 30, 2006 8:51 am 
Senior
Senior

Joined: Sat May 14, 2005 8:40 am
Posts: 130
The assemblies that you see in the output window are generated by the reflection optimizer that is in NHibernate from 1.0.1. You can turn it off in the configuration if you want.

_________________
Cuyahoga


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 01, 2006 3:51 am 
Newbie

Joined: Fri Jan 27, 2006 9:28 pm
Posts: 4
martijnb wrote:
The assemblies that you see in the output window are generated by the reflection optimizer that is in NHibernate from 1.0.1. You can turn it off in the configuration if you want.


Thank you very much. Disabling the reflection optimizer has solved my problem.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 01, 2006 3:57 am 
Expert
Expert

Joined: Thu Jan 19, 2006 4:29 pm
Posts: 348
t33 wrote:
Thank you very much. Disabling the reflection optimizer has solved my problem.


I have been unable to understamd what is You problem? The fact that some auto-generated assemblies are loaded should not cause troubles, right?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 01, 2006 5:48 am 
Newbie

Joined: Fri Jan 27, 2006 9:28 pm
Posts: 4
gert wrote:
t33 wrote:
Thank you very much. Disabling the reflection optimizer has solved my problem.


I have been unable to understamd what is You problem? The fact that some auto-generated assemblies are loaded should not cause troubles, right?


I am not at all familiar with what the reflection optimizer does and how it works, but when I saw what appeared to be assemblies with random-looking names being loaded, I thought that it was probably an error of some sort. This, coupled with the fact that the load time for my program increased by a large amount, led me to consider this to be a problem.

I probably should have made that more clear in my initial post.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 01, 2006 6:03 am 
Expert
Expert

Joined: Thu Jan 19, 2006 4:29 pm
Posts: 348
t33 wrote:
This, coupled with the fact that the load time for my program increased by a large amount, led me to consider this to be a problem.


The increased load time might be considered as problem indeed.

You indicated that there are some 50 random-named asemblies loaded? Could anyone explain why there are so many of them?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 21, 2006 3:19 pm 
Newbie

Joined: Tue Mar 21, 2006 3:11 pm
Posts: 10
gert wrote:
t33 wrote:
This, coupled with the fact that the load time for my program increased by a large amount, led me to consider this to be a problem.


The increased load time might be considered as problem indeed.

You indicated that there are some 50 random-named asemblies loaded? Could anyone explain why there are so many of them?



I am also experiencing this 'problem'. when I load the configuration it takes about 10 to 15 seconds to load. While it is loading, the random-name assemblies are loaded.

I currently have about 40 mappings that are in the same library as my dao classes (XXXX.DAO.dll) and the business object classes are in a separate library (XXXX.Shared.dll).

When the optimizer is disabled, initialization takes about one second. Performance of queries and crud operations seem to be about the same (maybe a little slower, but not much).

If there is anything I can do to help with this, please let me know.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 9 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.