No, no estaba haciendo eso. Lo que hacia era lo siguiente:

Configuration cfg = new Configuration();

cfg.AddAssembly("Corporate.Client.Services");

en el primer ejemplo que les pedi ayuda, lo hacia asi y corria bien.

Ahora hago:

Configuration cfg = new Configuration();

cfg.Configure();

y me tira este error:

problem parsing configuration : System.IO.FileNotFoundException: Could
not find file
'C:\Documents and Settings\jmendezc\My Documents\Visual Studio
2005\Projects\Corporate\Corporate.Client.UI.Main\bin\Debug
\hibernate.cfg.xml'.
File name: 'C:\Documents and Settings\jmendezc\My Documents\Visual
Studio 2005\Projects\Corporate\Corporate.Client.UI.Main\bin\Debug
\hibernate.cfg.xml'
   at System.IO.__Error.WinIOError(Int32 errorCode, String
maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights, FileShare share, Int32
bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String
msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode,
FileAccess access, FileShare share, Int32 bufferSize)
   at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
credentials)
   at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String
role, Type ofObjectToReturn)
   at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
   at System.Threading.CompressedStack.runTryCode(Object userData)
   at
System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup
(TryCode code, CleanupCode backoutCode, Object userData)
   at System.Threading.CompressedStack.Run(CompressedStack
compressedStack, ContextCallback callback, Object state)
   at System.Xml.XmlTextReaderImpl.OpenUrl()
   at System.Xml.XmlTextReaderImpl.Read()
   at System.Xml.XmlTextReader.Read()
   at System.Xml.XmlValidatingReaderImpl.Read()
   at System.Xml.XmlValidatingReader.Read()
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader,
Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at NHibernate.Cfg.Configuration.Configure(XmlTextReader reader)
--~--~---------~--~----~------------~-------~--~----~
Para escribir al Grupo, hágalo a esta dirección: 
[email protected]
Para más, visite: http://groups.google.com/group/NHibernate-Hispano
-~----------~----~----~----~------~----~------~--~---

Responder a