473,761 Members | 9,480 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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******@newsg roups.nospamwro te in message
news:C3******** *************** ***********@mic rosoft.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 2924
Thanks for letting us know, Paul.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
"Paul Hale" <Pa******@newsg roups.nospamwro te in message
news:07******** *************** ***********@mic rosoft.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******@newsg roups.nospamwro te in message
news:C3******** *************** ***********@mic rosoft.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******@newsg roups.nospamwro te in message
news:07******** *************** ***********@mic rosoft.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******@newsg roups.nospamwro te in message
news:C3******** *************** ***********@mic rosoft.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******@newsg roups.nospamwro te in message news:09******** *************** ***********@mic rosoft.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******@newsg roups.nospamwro te in message
news:07******* *************** ************@mi crosoft.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******@newsg roups.nospamwro te in message
news:C3******** *************** ***********@mic rosoft.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
2119
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 create a file if the file has been deleted. I would like to use fopen for its pointer return value to solve this.
2
2798
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 and use sorting, but the problem is that i will have new data enqueued very often, and the sorting will not simulate the CIRCULAR Queue. Can any one suggest a way of doing it with query, VB, or SQL?
7
3373
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 solve this. What is the best way to fix this problem?
7
2674
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 if I use the web test interface. It also works fine if I call it from an ASP.NET page that has a text box where the XML is pasted and then passed on. However, I get an exception if I use an <input type="file"> control on the ASP page that allows...
0
1352
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 circular reference isn't obvious at all? Thanks in advance, Brian
23
2100
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 becomes a different operation than with regular strings because the circular string can be "rotated", like this: 1 2 3 4 5 2 3 4 5 1 3 4 5 1 2 4 5 1 2 3
9
5449
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 be able to generate and compile the project on the enviroments where Visual Studio.Net is not installed. Thanks and Regards, Anubhav Jain MTS Persistent Systems Pvt. Ltd. Ph:+91 712 2226900(Off) Extn: 2431 Mob : 094231 07471
2
6008
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. Full error message is: "Unable to copy file "obj\Debug\OurProjectName.xml" to "bin\Debug\OurProjectName.xml". Access to the path 'obj\Debug\OurProjectName.xml' is denied."
0
1600
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, DACL_SECURITY_INFORMATION, 0, 0, &acl, 0, &sd); if(res != ERROR_SUCCESS) {
0
9531
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
9905
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9775
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8780
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7332
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5373
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3881
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3456
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2752
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.