473,394 Members | 1,761 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Help with indirect reference problem

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
2 4214
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Hal Vaughan | last post by:
I'm not sure what the correct name for this would be. I'd think it's either an indirect reference, or a pointer, or something like that. I'm working on a program that would call a series of...
2
by: Ian | last post by:
I have written this utility class that has a method which calls another method. I don't want to pass in the self parameter and was wondering by doing this does it make the function to be private...
13
by: ganeshb | last post by:
Hi, What C statement(s) would translate to indirect jmp in assembly? I know that function pointer invocation would translate to indirect 'call' instruction, but I am not sure what will lead to...
1
by: BeeFirst | last post by:
Hi, i meet a problem when i try to run an application with an ocx module in c#. the same function works well in vc,but not in c#,the Microsoft .NET common language runtime throw a...
2
by: Christopher Burns | last post by:
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...
6
by: JACK GUNAWAN via AccessMonster.com | last post by:
Hi, I have trouble setting up an access database on a wan because I am using dial up which charges per minute. How can I get the database to be sharred across miles with much stability and lower...
1
by: BHPexpert | last post by:
Regular Expression help needed -------------------------------------------------------------------------------- I want to extract all text that is contained inside the brackets after the word...
14
by: giddy | last post by:
ok i have a datagridview in my app and i have a function defined like so: public void FillColumns(ref DataGridView theDGV) when i call it ... like this : FillColumns(ref dataGridView2); i...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.