Hi,
I have my main project and all its subfolders are sub-projects (all c#/asp.net projects web forms):
- VisitorManagement
- VisitorManagement.BusinessObjects
- VisitorManagement.DataAccess
...
- VisitorManagement.WebUI
in a class in the sub-project "VisitorManagement.DataAccess" (that's where I do all the management of the sessions like in the example:
http://blog.benday.com/archive/2005/10/02/2876.aspx ) I do a:
config.AddAssembly("VisitorManagement.BusinessObjects");
The classes and their mapping are in this sub-project (and therefore assembly VisitorManagement.BusinessObjects).
In VisitorManagement.WebUI I have my web.config set up for nhibernate and log4net. When I start to use the application I get the following error:
Source Error:
config.AddAssembly("VisitorManagement.BusinessObjects");
Assembly Load Trace:
The following information can be helpful to determine why the assembly 'VisitorManagement' could not be loaded.
So question: Why is it trying to load 'VisitorManagement' when I specify "VisitorManagement.BusinessObjects" which I know is referenced?
So I tried it in an other way: instead of calling my sub-projects VisitorManagement.SUBPROJECT I just did SUBPROJECT. But then I have this error:
Source Error:
config.AddAssembly("BusinessObjects");
Assembly Load Trace:
The following information can be helpful to determine why the assembly 'VisitorManagement.BusinessObjects' could not be loaded.
Sometimes I think the system is alive and likes to play with me :(
Thx in advance for your help.
Pierre