Thanks for your answering, but it have same error, the complete error is :
Quote:
Server Error in '/nHibtest' Application.
File or assembly name NHibernate.Examples, or one of its dependencies, was not found.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: File or assembly name NHibernate.Examples, or one of its dependencies, was not found.
Source Error:
Line 23: {
Line 24: Configuration cfg = new Configuration();
Line 25: cfg.AddAssembly( typeof(NHibernate.Examples.QuickStart.User).Assembly );
Line 26:
Line 27: ISessionFactory factory = cfg.BuildSessionFactory();
Source File: g:\inetpub\wwwroot\nhibtest\webform1.aspx.cs Line: 25
Assembly Load Trace: The following information can be helpful to determine why the assembly 'NHibernate.Examples' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = NHibernate.Examples
(Partial)
LOG: Appbase = file:///g:/inetpub/wwwroot/nHibtest
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: NHibernate.Examples
LOG: Attempting download of new URL file:///G:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/nhibtest/4bc49ec2/edc3d983/NHibernate.Examples.DLL.
LOG: Attempting download of new URL file:///G:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/nhibtest/4bc49ec2/edc3d983/NHibernate.Examples/NHibernate.Examples.DLL.
LOG: Attempting download of new URL file:///g:/inetpub/wwwroot/nHibtest/bin/NHibernate.Examples.DLL.
LOG: Attempting download of new URL file:///g:/inetpub/wwwroot/nHibtest/bin/NHibernate.Examples/NHibernate.Examples.DLL.
LOG: Attempting download of new URL file:///G:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/nhibtest/4bc49ec2/edc3d983/NHibernate.Examples.EXE.
LOG: Attempting download of new URL file:///G:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files/nhibtest/4bc49ec2/edc3d983/NHibernate.Examples/NHibernate.Examples.EXE.
LOG: Attempting download of new URL file:///g:/inetpub/wwwroot/nHibtest/bin/NHibernate.Examples.EXE.
LOG: Attempting download of new URL file:///g:/inetpub/wwwroot/nHibtest/bin/NHibernate.Examples/NHibernate.Examples.EXE.
Stack Trace:
[FileNotFoundException: File or assembly name NHibernate.Examples, or one of its dependencies, was not found.]
System.Type.GetType(String typeName, Boolean throwOnError) +0
NHibernate.Util.ReflectHelper.ClassForName(String name)
NHibernate.Cfg.Binder.BindClass(XmlNode node, PersistentClass model, Mappings mapping)
[MappingException: persistent class NHibernate.Examples.QuickStart.User, NHibernate.Examples not found]
NHibernate.Cfg.Binder.BindClass(XmlNode node, PersistentClass model, Mappings mapping)
NHibernate.Cfg.Binder.BindRootClass(XmlNode node, RootClass model, Mappings mappings)
NHibernate.Cfg.Binder.BindRoot(XmlDocument doc, Mappings model)
NHibernate.Cfg.Configuration.Add(XmlDocument doc)
NHibernate.Cfg.Configuration.AddXmlReader(XmlReader hbmReader)
NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream)
NHibernate.Cfg.Configuration.AddAssembly(Assembly assembly, Boolean skipOrdering)
NHibernate.Cfg.Configuration.AddAssembly(Assembly assembly)
nHibtest.WebForm1.Page_Load(Object sender, EventArgs e) in g:\inetpub\wwwroot\nhibtest\webform1.aspx.cs:25
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573