Greetings,
I have a windows forms application that uses hibernate. The application is structured in a layered way UI / Business Logic / Data Access Layer each mapping to an assembly. The objects mapped to by hibernate are in a separate assembly as well (common data objects).
The UI assembly doesn't have any references to hibernate objects (i.e. session, factory, etc.) all of these are in the business logic assembly. There is an app.config file in the UI assembly with all the hibernate configurations and the assembly has references to the business logic assembly and the common data objects assembly.
The problem is that after I added a reference to the Business Logic assembly (which has hibernate references) and added a reference to NHibernate in the UI (for the config to load properly), I can no longer edit my main form in the designer.
When I open the main form, all my user controls get removed from the designer and I get the following errors:
An exception occurred while trying to create an instance of TestUserControl The exception was "The dialect was not set. Set the property hibernate.dialect.".
If I try to add an instance of any user control from my UI to the main form, I get the same exception and the control is not added.
Do I need to set any configurations manually for the designer to work properly?
If i don't open the form in the designer; the application works fine and no exceptions are thrown.
Thanks
Mario
|