-->
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.  [ 2 posts ] 
Author Message
 Post subject: Problem using my assemblies installed in GAC
PostPosted: Fri Nov 27, 2009 3:31 am 
Newbie

Joined: Fri Nov 27, 2009 1:34 am
Posts: 3
Hi All,

My .net application is running perfectly until I signed my assemblies and deployed them in GAC. Checking the stack trace I found out that the exception is thrown from this code:
Code:
System.IO.MemoryStream stream = new System.IO.MemoryStream();
NHibernate.Mapping.Attributes.HbmSerializer.Default.Validate = true;

NHibernate.Cfg.Configuration cfg = new NHibernate.Cfg.Configuration();

Hibernate.Mapping.Attributes.HbmSerializer.Default.Serialize(stream, Assembly.Load("AssemblyName, Version=..., Culture=..., PublicKeyToken=..."));

The code above is from one of my signed assemblies that is in GAC. You will notice in that code that I am not using mapping files and just decorated my class with mapping attributes. The innermost exception in the stack trace is this: "Could not load type 'Classname, Namespace', check that type and assembly names are correct", with this message: "persistent class 'Classname, Namespace' not found". Based on that exception, it seems that NHibernate cannot find my assembly in GAC.

I also added qualifyAssembly in my app's config file.


Top
 Profile  
 
 Post subject: Re: Problem using my assemblies installed in GAC
PostPosted: Sun Dec 20, 2009 7:02 am 
Newbie

Joined: Fri Nov 27, 2009 1:34 am
Posts: 3
Any thoughts? I'm still stuck with the problem. I cannot use my assemblies deployed in GAC. The exception is caused by the HbmSerializer.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.