By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,812 Members | 856 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,812 IT Pros & Developers. It's quick & easy.

Help with indirect reference problem

P: n/a
Hi all,

We are using VB.NET (VS2K3), sitting on VSS6. I have sorted out a
configuration problem that was preventing us from building from scratch for
new developers, but now I am having a very odd references problem.

Here is the scoop. I will make this brief, and if more info is needed
please let me know... I don't want to ramble, as the details are vast. :)

There are 3 projects involved in this issue, and it appears to be a classic
indirect reference issue. The projects are DFROnline, DFR_TAP, and CAFE.

CAFE is a library with a bunch of abstract business object classes.

DFROnline instantiates a class defined in DFR_TAP, and it has a direct ref
to DFR_TAP. DFROnline also sends a message, isNew(), to the new instance,
however, isNew() is implemented in CAFE.

I get the following two build errors:

c:\inetpub\wwwroot\DFROnline\saveFirstSection.aspx .vb Project 'DFROnline'
makes an indirect reference to assembly 'CAFE', which contains
'CAFE.BusinessBase'. Add a reference to 'CAFE' to your project.

c:\inetpub\wwwroot\DFROnline\TAP_RatingsEditor.asc x.vb(84): 'Public ReadOnly
Property IsNew() As Boolean' is declared in project 'CAFE.dll', which is not
referenced by project 'DFROnline.dll'.

The screwy part is DFROnline has a direct reference to CAFE.

So, what am I doing wrong here?

Thanks a million for any assistance!

Chris
Oct 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Because you are using an interface (class actually but ...) that is defined
in the CAFE project, your DFROnline project must reference both DFR_TAP to
get the business objects, and also CAFE to get the business object base
definitions.

This is actually quite normal!

"Christopher Burns" <Ch**************@discussions.microsoft.com> wrote in
message news:19**********************************@microsof t.com...
Hi all,

We are using VB.NET (VS2K3), sitting on VSS6. I have sorted out a
configuration problem that was preventing us from building from scratch
for
new developers, but now I am having a very odd references problem.

Here is the scoop. I will make this brief, and if more info is needed
please let me know... I don't want to ramble, as the details are vast. :)

There are 3 projects involved in this issue, and it appears to be a
classic
indirect reference issue. The projects are DFROnline, DFR_TAP, and CAFE.

CAFE is a library with a bunch of abstract business object classes.

DFROnline instantiates a class defined in DFR_TAP, and it has a direct ref
to DFR_TAP. DFROnline also sends a message, isNew(), to the new instance,
however, isNew() is implemented in CAFE.

I get the following two build errors:

c:\inetpub\wwwroot\DFROnline\saveFirstSection.aspx .vb Project 'DFROnline'
makes an indirect reference to assembly 'CAFE', which contains
'CAFE.BusinessBase'. Add a reference to 'CAFE' to your project.

c:\inetpub\wwwroot\DFROnline\TAP_RatingsEditor.asc x.vb(84): 'Public
ReadOnly
Property IsNew() As Boolean' is declared in project 'CAFE.dll', which is
not
referenced by project 'DFROnline.dll'.

The screwy part is DFROnline has a direct reference to CAFE.

So, what am I doing wrong here?

Thanks a million for any assistance!

Chris

Oct 21 '05 #2

P: n/a
Hi Martin,

Thanks for the response. DFROnline does have refs to both DFR_TAP and CAFE.
I can "Go to Definition" on IsNew() and it takes me to the Object Browser
for the CAFE class with the method def in it, so I know it exists in the DLL.

Anything else I should try?

Chris
Oct 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.