Hibernate version: 1.02
I get this error when I try to Add the Assembly. I have also included a portion of my hibernate-mapping xml sheet showing where Glasses is created. I do have Embedded Resource on also. Thanks for the help!
Code:
ERROR!
File or assembly name Glasses, or one of its dependencies, was not found.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: File or assembly name Glasses, or one of its dependencies, was not found.
Source Error:
Line 51: // make the configuration file
Line 52: Configuration cfg = new Configuration();
Line 53: ***cfg.AddAssembly("Glasses"); ***
Line 54:
Line 55: ISessionFactory factory = cfg.BuildSessionFactory();
Code:
Mapping File
hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">
<class name="Glasses.Test.User, Glasses" table="Person">