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?
>