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

Re: Intermittent "Circular file references are not allowed"

Moving all User Controls to a single directory has solved my problem - Thanks
Eliyahu.

That said, I still got one Circular ref error yesterday, rebuilt again and
the build was fine? Far far better than the amount of errors I was originally
getting on builds before I consilidated by UC's though :-)

"Paul Hale" wrote:
Thanks for your response Eliyahu.

I do have a couple of controls in different folders. I have now moved all of
my controls into a single folder above the root being "/UserControls". Have
tried a couple of builds and so far so good. Will monitor and post back here
with results.

Thanks again.

"Eliyahu Goldin" wrote:
This error also happens when you reference controls across different
folders. Can you put all controls in the same folder?

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Paul Hale" <Pa******@newsgroups.nospamwrote in message
news:C3**********************************@microsof t.com...
>I am working on a large project using VS2008 and the 3.5 Framework.
Occasionally (and it seems to becoming more frequent) I get the dreaded
"Circular file references are not allowed" error when building my project.
I
know this is related to user controls that reference each other. I have
spent
many hours making sure that UC's don't reference back to each other and as
far as I can tell they don't.
>
The trick I have been using to circumnavigate the error is to simply build
the project again. I normally find that on the 3rd or 4th build the
project
builds fine with no errors. I also sometimes insert a blank line in my
code
behind file to try and trick the compiler into thinking that the code has
changed and this sometimes seems to work!?!
>
This is all very disconcerting. I would prefer it if when I got a
"Circular
file references are not allowed" error the project would not build full
stop
as this would make it easier to try and find the problem. Im aware of
turning
batch compiling off but would rather not do this as to tell the truth I
don't
fully understand what batch compiling is (yes I have Goggled it and am
still
none the wiser).
>
Has anybody had similar problems? Can anybody give me any advice on how I
can fix this problem please?
>
Aug 11 '08 #1
3 2891
Thanks for letting us know, Paul.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
"Paul Hale" <Pa******@newsgroups.nospamwrote in message
news:07**********************************@microsof t.com...
Moving all User Controls to a single directory has solved my problem -
Thanks
Eliyahu.

That said, I still got one Circular ref error yesterday, rebuilt again and
the build was fine? Far far better than the amount of errors I was
originally
getting on builds before I consilidated by UC's though :-)

"Paul Hale" wrote:
>Thanks for your response Eliyahu.

I do have a couple of controls in different folders. I have now moved all
of
my controls into a single folder above the root being "/UserControls".
Have
tried a couple of builds and so far so good. Will monitor and post back
here
with results.

Thanks again.

"Eliyahu Goldin" wrote:
This error also happens when you reference controls across different
folders. Can you put all controls in the same folder?

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Paul Hale" <Pa******@newsgroups.nospamwrote in message
news:C3**********************************@microsof t.com...
I am working on a large project using VS2008 and the 3.5 Framework.
Occasionally (and it seems to becoming more frequent) I get the
dreaded
"Circular file references are not allowed" error when building my
project.
I
know this is related to user controls that reference each other. I
have
spent
many hours making sure that UC's don't reference back to each other
and as
far as I can tell they don't.

The trick I have been using to circumnavigate the error is to simply
build
the project again. I normally find that on the 3rd or 4th build the
project
builds fine with no errors. I also sometimes insert a blank line in
my
code
behind file to try and trick the compiler into thinking that the code
has
changed and this sometimes seems to work!?!

This is all very disconcerting. I would prefer it if when I got a
"Circular
file references are not allowed" error the project would not build
full
stop
as this would make it easier to try and find the problem. Im aware of
turning
batch compiling off but would rather not do this as to tell the truth
I
don't
fully understand what batch compiling is (yes I have Goggled it and
am
still
none the wiser).

Has anybody had similar problems? Can anybody give me any advice on
how I
can fix this problem please?

Aug 13 '08 #2
Oh no. It's back! I applied VS2008 SP1 and .NET3.5 SP1 yesterday and ever
since I have been getting the dreaded "Circular file refernces are not
allowed" error.

I have treble checked and all my User Controls are in a single directory.
None of them reference each other anywhere.

The only way I can get round this is to insert a blank line in a codebehind
file and build. Then sometimes (roughly 1 time out of 6 builds) the build
completes successfully. This is extremely frustrating and is affecting my
productivity.

Does anybody have any suggestions I can try? This is related to applying SP1
as I have not modified any code since applying.

"Eliyahu Goldin" wrote:
Thanks for letting us know, Paul.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
"Paul Hale" <Pa******@newsgroups.nospamwrote in message
news:07**********************************@microsof t.com...
Moving all User Controls to a single directory has solved my problem -
Thanks
Eliyahu.

That said, I still got one Circular ref error yesterday, rebuilt again and
the build was fine? Far far better than the amount of errors I was
originally
getting on builds before I consilidated by UC's though :-)

"Paul Hale" wrote:
Thanks for your response Eliyahu.

I do have a couple of controls in different folders. I have now moved all
of
my controls into a single folder above the root being "/UserControls".
Have
tried a couple of builds and so far so good. Will monitor and post back
here
with results.

Thanks again.

"Eliyahu Goldin" wrote:

This error also happens when you reference controls across different
folders. Can you put all controls in the same folder?

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Paul Hale" <Pa******@newsgroups.nospamwrote in message
news:C3**********************************@microsof t.com...
>I am working on a large project using VS2008 and the 3.5 Framework.
Occasionally (and it seems to becoming more frequent) I get the
dreaded
"Circular file references are not allowed" error when building my
project.
I
know this is related to user controls that reference each other. I
have
spent
many hours making sure that UC's don't reference back to each other
and as
far as I can tell they don't.
>
The trick I have been using to circumnavigate the error is to simply
build
the project again. I normally find that on the 3rd or 4th build the
project
builds fine with no errors. I also sometimes insert a blank line in
my
code
behind file to try and trick the compiler into thinking that the code
has
changed and this sometimes seems to work!?!
>
This is all very disconcerting. I would prefer it if when I got a
"Circular
file references are not allowed" error the project would not build
full
stop
as this would make it easier to try and find the problem. Im aware of
turning
batch compiling off but would rather not do this as to tell the truth
I
don't
fully understand what batch compiling is (yes I have Goggled it and
am
still
none the wiser).
>
Has anybody had similar problems? Can anybody give me any advice on
how I
can fix this problem please?
>


Aug 18 '08 #3
I don't have a specific suggestion except to file a bug at Connect.

https://connect.microsoft.com/VisualStudio/Feedback

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"Paul Hale" <Pa******@newsgroups.nospamwrote in message news:09**********************************@microsof t.com...
Oh no. It's back! I applied VS2008 SP1 and .NET3.5 SP1 yesterday and ever
since I have been getting the dreaded "Circular file refernces are not
allowed" error.

I have treble checked and all my User Controls are in a single directory.
None of them reference each other anywhere.

The only way I can get round this is to insert a blank line in a codebehind
file and build. Then sometimes (roughly 1 time out of 6 builds) the build
completes successfully. This is extremely frustrating and is affecting my
productivity.

Does anybody have any suggestions I can try? This is related to applying SP1
as I have not modified any code since applying.

"Eliyahu Goldin" wrote:
>Thanks for letting us know, Paul.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
"Paul Hale" <Pa******@newsgroups.nospamwrote in message
news:07**********************************@microso ft.com...
Moving all User Controls to a single directory has solved my problem -
Thanks
Eliyahu.

That said, I still got one Circular ref error yesterday, rebuilt again and
the build was fine? Far far better than the amount of errors I was
originally
getting on builds before I consilidated by UC's though :-)

"Paul Hale" wrote:

Thanks for your response Eliyahu.

I do have a couple of controls in different folders. I have now moved all
of
my controls into a single folder above the root being "/UserControls".
Have
tried a couple of builds and so far so good. Will monitor and post back
here
with results.

Thanks again.

"Eliyahu Goldin" wrote:

This error also happens when you reference controls across different
folders. Can you put all controls in the same folder?

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Paul Hale" <Pa******@newsgroups.nospamwrote in message
news:C3**********************************@microsof t.com...
I am working on a large project using VS2008 and the 3.5 Framework.
Occasionally (and it seems to becoming more frequent) I get the
dreaded
"Circular file references are not allowed" error when building my
project.
I
know this is related to user controls that reference each other. I
have
spent
many hours making sure that UC's don't reference back to each other
and as
far as I can tell they don't.

The trick I have been using to circumnavigate the error is to simply
build
the project again. I normally find that on the 3rd or 4th build the
project
builds fine with no errors. I also sometimes insert a blank line in
my
code
behind file to try and trick the compiler into thinking that the code
has
changed and this sometimes seems to work!?!

This is all very disconcerting. I would prefer it if when I got a
"Circular
file references are not allowed" error the project would not build
full
stop
as this would make it easier to try and find the problem. Im aware of
turning
batch compiling off but would rather not do this as to tell the truth
I
don't
fully understand what batch compiling is (yes I have Goggled it and
am
still
none the wiser).

Has anybody had similar problems? Can anybody give me any advice on
how I
can fix this problem please?



Aug 18 '08 #4

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

Similar topics

1
by: clusardi2k | last post by:
Hello, I have a shared drive on SGI, Linux, and Windows. The fact that I'm using a shared drive may be mute information. The problem is within the same program a second call to fopen does not...
2
by: Zhaozhi Gao | last post by:
I'm doing a simple project for school. This is the first time I've ever used Access. Is there a way i can simulate a Circular Queue data structure for the datas in a table. I tried assign index...
7
by: clusardi2k | last post by:
Hello, I have a shared drive on SGI, Linux, and Windows. A second call to fopen doesn't create the file if it has been deleted. I would like to use fopen for its pointer return value to...
7
by: Drew Berkemeyer | last post by:
I've encounted a pretty strange problem and I'm not quite sure what to make of it. I have a web service that consumes an XML file as well as a few other parameters. This web service works fine...
0
by: BBuff | last post by:
After running my site through the VS2005 RC Upgrade Wizard, I now have a ton of "Circular file references are not allowed" errors relating to my User Controls. Any idea on how to solve this as the...
23
by: Rogers | last post by:
I want to compare strings of numbers that have a circular boundary condition. This means that the string is arranged in a loop without an end-of-string. The comparaison of two strings now...
9
by: Anubhav Jain | last post by:
Hi, I am having few .net source files(.cs or .vb) and I want to dynamically generate the corresponding .net project file(.csproj or .vbproj) for them without using visual studio.So that I could...
2
by: CGatto | last post by:
Hi, We have just started getting the following error during compiles of our forms-based application. We are developing in VS2008, VB.Net, with Team Foundation Server-based source control. ...
0
by: =?Utf-8?B?QmVybnJkIE5vcm1pZXI=?= | last post by:
The code in question is very simple: PACL acl = 0; PACL newAcl = 0; PSECURITY_DESCRIPTOR sd = 0; DWORD res = GetNamedSecurityInfo(const_cast<char*>(path.c_str()), type,...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.