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.  [ 1 post ] 
Author Message
 Post subject: Could not load type error
PostPosted: Mon Aug 28, 2006 3:45 am 
Newbie

Joined: Thu Jun 15, 2006 5:27 am
Posts: 13
Hello, I've an error and I don't understand why. Could someone help me?
I'm using NHibernate Mapping Attributes.

Code:
Could not load type 'Kpf.CoucheMetier.Fournisseurs, Kpf.CoucheMetier', check that type and assembly names are correct
Description : Une exception non gérée s'est produite au moment de l'exécution de la demande Web actuelle. Contrôlez la trace de la pile pour plus d'informations sur l'erreur et son origine dans le code.

Détails de l'exception: System.TypeLoadException: Could not load type 'Kpf.CoucheMetier.Fournisseurs, Kpf.CoucheMetier', check that type and assembly names are correct

Erreur source:


Ligne 32 :             HbmSerializer.Default.Serialize(flux, Assembly.GetExecutingAssembly());
Ligne 33 :             flux.Position = 0;
Ligne 34 :             cfg.AddInputStream(flux);
Ligne 35 :             flux.Close();
Ligne 36 :


Fichier source : D:\Projects\CoucheMetier\Handler.cs    Ligne : 34

Trace de la pile:


[TypeLoadException: Could not load type 'Kpf.CoucheMetier.Fournisseurs, Kpf.CoucheMetier', check that type and assembly names are correct]
   NHibernate.Util.ReflectHelper.ClassForName(String name) in c:\net\nhibernate\nhibernate\src\NHibernate\Util\ReflectHelper.cs:160
   NHibernate.Cfg.HbmBinder.ClassForFullNameChecked(String fullName, String errorMessage) in c:\net\nhibernate\nhibernate\src\NHibernate\Cfg\HbmBinder.cs:82

[MappingException: could not find class: Kpf.CoucheMetier.Fournisseurs, Kpf.CoucheMetier]
   NHibernate.Cfg.HbmBinder.ClassForFullNameChecked(String fullName, String errorMessage) in c:\net\nhibernate\nhibernate\src\NHibernate\Cfg\HbmBinder.cs:86
   NHibernate.Cfg.HbmBinder.ClassForNameChecked(String name, Mappings mappings, String errorMessage) in c:\net\nhibernate\nhibernate\src\NHibernate\Cfg\HbmBinder.cs:100
   NHibernate.Cfg.HbmBinder.BindManyToOne(XmlNode node, ManyToOne model, String defaultColumnName, Boolean isNullable, Mappings mappings) in c:\net\nhibernate\nhibernate\src\NHibernate\Cfg\HbmBinder.cs:826
   NHibernate.Cfg.HbmBinder.PropertiesFromXML(XmlNode node, PersistentClass model, Mappings mappings) in c:\net\nhibernate\nhibernate\src\NHibernate\Cfg\HbmBinder.cs:1326
   NHibernate.Cfg.HbmBinder.BindRootClass(XmlNode node, RootClass model, Mappings mappings) in c:\net\nhibernate\nhibernate\src\NHibernate\Cfg\HbmBinder.cs:435
   NHibernate.Cfg.HbmBinder.BindRoot(XmlDocument doc, Mappings model) in c:\net\nhibernate\nhibernate\src\NHibernate\Cfg\HbmBinder.cs:1594
   NHibernate.Cfg.Configuration.AddValidatedDocument(XmlDocument doc) in c:\net\nhibernate\nhibernate\src\NHibernate\Cfg\Configuration.cs:375
   NHibernate.Cfg.Configuration.AddXmlReader(XmlTextReader hbmReader) in c:\net\nhibernate\nhibernate\src\NHibernate\Cfg\Configuration.cs:1556
   NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream) in c:\net\nhibernate\nhibernate\src\NHibernate\Cfg\Configuration.cs:421
   Kpf.CoucheMetier.Handler..ctor() in D:\Projects\CoucheMetier\Handler.cs:34
   Kpf.ModuleGestionPieces._Default..ctor() in d:\Projects\ModuleGP\Default.aspx.cs:18
   ASP.default_aspx..ctor() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\modulegp\f8145918\7959d56a\App_Web_95pkgeyu.4.cs:0
   __ASP.FastObjectFactory_app_web_95pkgeyu.Create_ASP_default_aspx() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\modulegp\f8145918\7959d56a\App_Web_95pkgeyu.16.cs:0
   System.Web.Compilation.BuildResultCompiledType.CreateInstance() +99
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +162
   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +56
   System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +112
   System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +352
   System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +183
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +191


Cheers


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

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.