views:

16

answers:

0

Hi, I have strange problem with my NHibernate configuration. I have .mdb database stored in Tony\Files\database.mdb "Tony" is the project name

here's the snippet of the Web.config file:

alt text

    private ISession OpenSession()
    {
        Configuration c = new Configuration();
        c.AddAssembly(Assembly.GetCallingAssembly());
        ISessionFactory f = c.BuildSessionFactory();
        return f.OpenSession();
    }

            using (ISession session = OpenSession())
            {
                using (ITransaction trans = session.BeginTransaction()) <- here's the error message
                {
                 ...
                }
            }

This is the message: D:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\Tony\Files\database.mdb is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides."

How to resolve that error ?