473,326 Members | 2,090 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,326 software developers and data experts.

Circular Dependency on References

We're getting this error and don't know where to find the problem. I assume
this is usually issued in the typical case where project A has a reference
to project B, and project B has a reference to project A. There is nothing
so obvious, and look at all the dependencies I've failed to find anything
that could be perceived as circular. Has anyone found any odd behavior or
have a suggestion for something non-obvious to look at?
Nov 17 '05 #1
8 12581
Please list out your projects and their references. Is it only Project A
and B?

Once that information is known, we might be able to help a little better.
Thanks.
Mark

"Jeff Connelly" <no****@thank.you> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
We're getting this error and don't know where to find the problem. I assume this is usually issued in the typical case where project A has a reference
to project B, and project B has a reference to project A. There is nothing so obvious, and look at all the dependencies I've failed to find anything
that could be perceived as circular. Has anyone found any odd behavior or
have a suggestion for something non-obvious to look at?

Nov 17 '05 #2
VS2005?

Generally it can be solved as introducing a third project in the middle, and
use a file based reference that you manually copy over (or a post build
step), instead of a project based reference.

It's a messy thing though :)

- Sahil Malik [MVP]
ADO.NET 2.0 book -
http://codebetter.com/blogs/sahil.ma.../13/63199.aspx
-------------------------------------------------------------------------------------------
"Jeff Connelly" <no****@thank.you> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
We're getting this error and don't know where to find the problem. I
assume this is usually issued in the typical case where project A has a
reference to project B, and project B has a reference to project A. There
is nothing so obvious, and look at all the dependencies I've failed to
find anything that could be perceived as circular. Has anyone found any
odd behavior or have a suggestion for something non-obvious to look at?

Nov 17 '05 #3

"Mark White" <ma*******@yahoo.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Please list out your projects and their references. Is it only Project A
and B?

Once that information is known, we might be able to help a little better.
Thanks.


That would be difficult Mark. There are 37 projects and they each have
multiple references. The obvious response might be that with so many, there
must be a conflict in there somewhere. But I've gone through them all and I
just can't see anything. I was kind of hoping someone might say "Oh yeah,
when that happens the error message really means something else" or "Oh
yeah, VS can only handle references up to 36 projects and no more" :-)
Nov 17 '05 #4

"Sahil Malik [MVP]" <co*****************@nospam.com> wrote in message
news:O%***************@TK2MSFTNGP10.phx.gbl...
VS2005?

Generally it can be solved as introducing a third project in the middle,
and use a file based reference that you manually copy over (or a post
build step), instead of a project based reference.

It's a messy thing though :)


But I don't even know which reference it's complaining about. It just says
"that would cause a circular dependency". Any way to find out what it
thinks the problem really is?
Nov 17 '05 #5
Jeff

What makes you think it's something other than a circular dependency?

With 37 projects, I'd put good money on the CD.

When do you get the error message, when building?

Mark

"Jeff Connelly" <no****@thank.you> wrote in message
news:ug**************@TK2MSFTNGP14.phx.gbl...

"Sahil Malik [MVP]" <co*****************@nospam.com> wrote in message
news:O%***************@TK2MSFTNGP10.phx.gbl...
VS2005?

Generally it can be solved as introducing a third project in the middle,
and use a file based reference that you manually copy over (or a post
build step), instead of a project based reference.

It's a messy thing though :)
But I don't even know which reference it's complaining about. It just

says "that would cause a circular dependency". Any way to find out what it
thinks the problem really is?

Nov 17 '05 #6

"Mark White" <ma*******@yahoo.com> wrote in message
news:ue**************@TK2MSFTNGP10.phx.gbl...
Jeff

What makes you think it's something other than a circular dependency?

With 37 projects, I'd put good money on the CD.

When do you get the error message, when building?


I don't assume it's necessarily something else. But as a programmer with
some experience, I'm used to dealing with error messages that are
misleading. Combine that with the fact that I can see no circular
dependency, it's something I thought I should consider. I get the error
message from VS (2003) immediately when I try to add the reference to the
project.

I have something roughly like this.
A references B and C (plus a bunch of "System" stuff)
C references B.
D references B.
I'm trying to add D to references for A. Neither B, C or D reference A, of
course. B references only some System stuff.
Nov 17 '05 #7
I tried setting up a solution as you outlined below. I have no issues
setting it up the way you described. Now, when I try to reference A from D,
then an issue exists of course, but you're not doing that.

Any other projects in the mix other than what you outlined?

Mark

"Jeff Connelly" <no****@thank.you> wrote in message
news:uA**************@tk2msftngp13.phx.gbl...

"Mark White" <ma*******@yahoo.com> wrote in message
news:ue**************@TK2MSFTNGP10.phx.gbl...
Jeff

What makes you think it's something other than a circular dependency?

With 37 projects, I'd put good money on the CD.

When do you get the error message, when building?
I don't assume it's necessarily something else. But as a programmer with
some experience, I'm used to dealing with error messages that are
misleading. Combine that with the fact that I can see no circular
dependency, it's something I thought I should consider. I get the error
message from VS (2003) immediately when I try to add the reference to the
project.

I have something roughly like this.
A references B and C (plus a bunch of "System" stuff)
C references B.
D references B.
I'm trying to add D to references for A. Neither B, C or D reference A,

of course. B references only some System stuff.

Nov 17 '05 #8
SP

"Jeff Connelly" <no****@thank.you> wrote in message
news:%2***************@TK2MSFTNGP10.phx.gbl...
We're getting this error and don't know where to find the problem. I
assume this is usually issued in the typical case where project A has a
reference to project B, and project B has a reference to project A. There
is nothing so obvious, and look at all the dependencies I've failed to
find anything that could be perceived as circular. Has anyone found any
odd behavior or have a suggestion for something non-obvious to look at?


I have read the other replies and would suggest the following. Grab a piece
of paper and write down the 37 projects. Check off the names of those that
are referenced by the project that you are trying to add a reference to.
Then go through that list and for every checked item, check off the projects
that are referenced by it and then cross out the name as you do this. Beofre
you are able to cross out all the names you are going to find yourself
checking off the name of the project you are having a problem with.

Let us know.

SP
Nov 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: jinal jhaveri | last post by:
Hi All, I have one question regarding circular inheritance I have 3 files 1) A.py , having module A and some other modules 2) B.py having module B and some other modules 3) C.py having...
1
by: Henry Miller | last post by:
I have the following code (much simplified for this post). Note that SessionKey uses DataAccess, and DataAccess requires SessionKey in it's constructor. Public Class SessionKey Public...
2
by: ernesto basc?n pantoja | last post by:
Hi everybody: I'm implementing a general C++ framework and I have a basic question about circular dependencies: I am creating a base class Object, my Object class has a method defined as:...
1
by: ChrisB | last post by:
Hello: I have created several components that have the following dependency relationships: Assembly1 references assemblies A, B, and C. Assembly2 references assemblies A, B When attempting...
4
by: Henke | last post by:
I have this scenario. public class A { public int numbers; public class A() { }
2
by: Mike | last post by:
I ran into a problem with circular dependencies. My code looks somthing like: using B namespace A { class formA { void foo() {
16
by: Dave S | last post by:
Anyone know how to get round the problem of circular references in VB.NET (sorry I'm a .NET newbie). I create one project which has 2 classes in it, MyHandler and MyObject. MyHandler just needs...
3
by: Solution Seeker | last post by:
Hi All, I am here with a Query and need a Solution for it. The Query is as Follows, We have 3 Projects in a Solution - Say UI, CMN and PRD First One Deals with UI Forms Second One Deals...
7
by: barias | last post by:
Although circular dependencies are something developers should normally avoid, unfortunately they are very easy to create accidentally between classes in a VS project (i.e. circular compile-time...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.