-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: project/sub-projects and wrong assembly called
PostPosted: Mon Nov 14, 2005 9:49 am 
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


Top
  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 10:03 am 
Hi again,

I have started a new project and copied my files into it, apparently it solved the problem.

Visual Studio seems to be very sensible in the renaming area. :?


Top
  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.