Pessoal, ao pressionar f5 para rodar o código, surgem os erros, cujo detalhe segue abaixo:
NHibernate.Cfg.HibernateConfigException was unhandled
HResult=-2146232832
Message=An exception occurred during configuration of persistence layer.
Source=NHibernate
StackTrace:
em NHibernate.Cfg.ConfigurationSchema.HibernateConfiguration..ctor(XmlReader hbConfigurationReader, Boolean fromAppSetting)
em NHibernate.Cfg.ConfigurationSchema.HibernateConfiguration..ctor(XmlReader hbConfigurationReader)
em NHibernate.Cfg.Configuration.Configure(XmlReader textReader)
em NHibernate.Cfg.Configuration.Configure(String fileName, Boolean ignoreSessionFactoryConfig)
em NHibernate.Cfg.Configuration.Configure(String fileName)
em NHibernate.Cfg.Configuration.Configure()
em Loja.Infra.NHibernateHelper.RecuperaConfiguracao() na c:\Users\Home\Documents\Visual Studio 2012\Loja\Loja\Infra\NHibernateHelper.cs:linha 19
em Loja.Infra.NHibernateHelper.GeraSchema() na c:\Users\Home\Documents\Visual Studio 2012\Loja\Loja\Infra\NHibernateHelper.cs:linha 26
em Loja.Program.Main(String[] args) na c:\Users\Home\Documents\Visual Studio 2012\Loja\Loja\Program.cs:linha 13
em System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
em System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
em Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
em System.Threading.ThreadHelper.ThreadStart_Context(Object state)
em System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
em System.Threading.ThreadHelper.ThreadStart()
InnerException: System.IO.FileNotFoundException
HResult=-2147024894
Message=Não foi possível localizar o arquivo 'C:\Users\Home\Documents\Visual Studio 2012\Loja\Loja\bin\Debug\hibernate.cfg.xml'.
Source=mscorlib
FileName=C:\Users\Home\Documents\Visual Studio 2012\Loja\Loja\bin\Debug\hibernate.cfg.xml
StackTrace:
em System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
em 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, Boolean useLongPath, Boolean checkHost)
em System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
em System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
em System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
em System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
em System.Threading.CompressedStack.runTryCode(Object userData)
em System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
em System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
em System.Xml.XmlTextReaderImpl.OpenUrl()
em System.Xml.XmlTextReaderImpl.Read()
em System.Xml.XmlTextReader.Read()
em System.Xml.XmlCharCheckingReader.Read()
em System.Xml.XsdValidatingReader.Read()
em System.Xml.XPath.XPathDocument.LoadFromReader(XmlReader reader, XmlSpace space)
em System.Xml.XPath.XPathDocument..ctor(XmlReader reader, XmlSpace space)
em System.Xml.XPath.XPathDocument..ctor(XmlReader reader)
em NHibernate.Cfg.ConfigurationSchema.HibernateConfiguration..ctor(XmlReader hbConfigurationReader, Boolean fromAppSetting)
InnerException:
Procurei bastante por aqui, mas não encontrei a solução para o problema. O que poderá estar acontecendo?