Thanks guys for trying. I found a solution, and this is related to the information that I forgot to give. Hope this helps someone new, like me, on these things.
NHibernate, nhibernate.cfg.xml. web.config (/). , NH. :
string connectionString = ConfigurationManager.
ConnectionStrings["myConnectString"].ConnectionString;
NH :
Configuration cfg = new Configuration();
cfg.Configure(cfgFile);
cfg.SetProperty(NHibernate.Cfg.Environment.ConnectionString, connectionString);
:
"mydb" . . NT AUTHORITY\NETWORK SERVICE '.
, .
PS: "." . \MSSQLSERVER " ". Ian Jared .