Could not create the driver from NHibernate.Driver.OracleDataClientDriver
问题 Here's the code raising the exception: public static class NHibernateSessionManager { private static ISessionFactory sessionFactory = new Configuration().Configure().BuildSessionFactory(); public static ISession GetSession(string clientId) { if (ContextSession == null) ContextSession = sessionFactory.OpenSession(new OracleIntercerptor(clientId.ToUpper())); else ((OracleConnection)ContextSession.Connection).ClientId = clientId; return ContextSession; } // - snip - } and the call to the code