Hey, when I:
Code:
NHibernate.Cfg.Configuration.BuildSessionFactory();
I get the following exception:
Quote:
[FileNotFoundException: File or assembly name stdole, or one of its dependencies, was not found.]
NHibernate.Persister.EntityPersister..ctor(PersistentClass model, ISessionFactoryImplementor factory) +0
NHibernate.Persister.PersisterFactory.Create(PersistentClass model, ISessionFactoryImplementor factory) +59
NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, IDictionary properties, IInterceptor interceptor, Settings settings) +820
NHibernate.Cfg.Configuration.BuildSessionFactory() +92
financialmodeling.web.FinancialModelWebPagePage.SetupFESRCConnection(Boolean newSession) in C:\Inetpub\wwwroot\FinancialModelingWeb\pages\FinancialModelWebPage.vb:242
This exception is not present on my development machine - only happen on production. It turns out that "stdole.dll", which could be found on development machine's:
C:\Program Files\Microsoft.NET\Primary Interop Assemblies
I solved the problem by putting "stdole.dll" in "bin" folder of my application... is this "proper" way to resolve the issue?