Weird -- the reply I made this morning is missing!
What I wrote is you should always deploy using batch=true. This will ensure your web app will work most efficiently when deployed, and will allow incremental compiling to work while in VS05.
However, you have a rare situation hwere batch=true is causing a circular reference. You need to use Baiju's suggestion of separating your web forms / user controls into different folders in order to break up the circular reference.
I've looked at the white papers and read the resolutions to what looked like legitimate circular references. My problem happens only when Publishing my Web project and it's only on user controls that reference the MasterPage.
So, if my user control contains:
<%@ Reference VirtualPath="~/MasterPage.master"%>
I will receive a circular reference error when I Publish...I've tried batch=false in my Web.config but that does not help. Also, the user controls are not in the same path as the MasterPage.master file.
I have got "circular file references are not allowed" when I try to deploy a project using the VS2005 Web Deployment Projects BETA. The webapp compiles fine in VS but when I depliy I get a this error message.
It sure would be nice if someone did post a "solution". Batch=false slows compile time so much that it's not a realistic solution for development. We've bypassed the issue by selecting "Use fixed naming and single page assemblies." and leaving batch=false when
publishing. I'm thinking there are a lot of people ignoring this issue.
This is puzzling. Could you please enter an MSDN feedback bug at
http://lab.msdn.microsoft.com/productfeedback/ and submit a zip containing your web site (if possible) or at least the master page and a page or two that uses it? This will allow us to officially track the issue internally.
sdj0103, where is your usercontrol defined? I think it's likely that you have some pages at application root that references this usercontrol in a separate folder, and that usercontrol references the masterpage in the root folder, therefore this causes the
circular reference.
If this is the reason, you should consider moving masterpage file to a different folder than the root or usercontrol. Thus the pages and usercontrol can both depend on the masterpage batch assemblies without the circular reference.
If this does not solve your problem, could you send me your repro files so I can investigate?
Thanks,
Ting
This posting is provided "AS IS" with no warranties, and confers no rights.
Our user controls are a couple of directories in (/xxxproj/UserControls/) from the root. The masterpage was in the root, but by your advice I moved it over to a new directory. I changed all references (563 occurrences) to the new location and still have
the same circular reference error when I build with batch=true. The error points to user controls with the directive:
Our project is enormous, so sending the solution isn't an option. There's probably something we're not seeing that has not been identified as an issue...we'll get there.
I still recommend you enter an MSDN feedback bug and include your current folder structure, a sample user control and the master page. This will allow us to review it with the whole team (including Ting) and track it officially.
mbund
Member
630 Points
126 Posts
Microsoft
Re: "Circular file references are not allowed" after running RC Upgrade Wizard
Nov 09, 2005 09:36 PM|LINK
What I wrote is you should always deploy using batch=true. This will ensure your web app will work most efficiently when deployed, and will allow incremental compiling to work while in VS05.
However, you have a rare situation hwere batch=true is causing a circular reference. You need to use Baiju's suggestion of separating your web forms / user controls into different folders in order to break up the circular reference.
This issue is described in "common conversion issues" white paper which can be found at http://msdn.microsoft.com/asp.net/reference/migration/upgrade/
The graphics there make it a bit easier to see what is happening, and the solution is listed there too.
sjd0103
Member
418 Points
86 Posts
Re: "Circular file references are not allowed" after running RC Upgrade Wizard
Nov 29, 2005 09:22 PM|LINK
So, if my user control contains:
<%@ Reference VirtualPath="~/MasterPage.master"%>
I will receive a circular reference error when I Publish...I've tried batch=false in my Web.config but that does not help. Also, the user controls are not in the same path as the MasterPage.master file.
ANY help would be great!!
Rippo
Member
111 Points
42 Posts
Re: "Circular file references are not allowed" after running RC Upgrade Wizard
Dec 14, 2005 06:48 AM|LINK
Did you ever find a solution?
I have got "circular file references are not allowed" when I try to deploy a project using the VS2005 Web Deployment Projects BETA. The webapp compiles fine in VS but when I depliy I get a this error message.
Thanks
Rippo
http://www.wildesoft.net
sjd0103
Member
418 Points
86 Posts
Re: "Circular file references are not allowed" after running RC Upgrade Wizard
Dec 14, 2005 12:39 PM|LINK
mbund
Member
630 Points
126 Posts
Microsoft
Re: "Circular file references are not allowed" after running RC Upgrade Wizard
Dec 14, 2005 04:02 PM|LINK
Hello,
This is puzzling. Could you please enter an MSDN feedback bug at http://lab.msdn.microsoft.com/productfeedback/ and submit a zip containing your web site (if possible) or at least the master page and a page or two that uses it? This will allow us to officially track the issue internally.
Thanks!
tinghaoy
Participant
1140 Points
228 Posts
Microsoft
Re: "Circular file references are not allowed" after running RC Upgrade Wizard
Dec 14, 2005 05:22 PM|LINK
sdj0103, where is your usercontrol defined? I think it's likely that you have some pages at application root that references this usercontrol in a separate folder, and that usercontrol references the masterpage in the root folder, therefore this causes the circular reference.
If this is the reason, you should consider moving masterpage file to a different folder than the root or usercontrol. Thus the pages and usercontrol can both depend on the masterpage batch assemblies without the circular reference.
If this does not solve your problem, could you send me your repro files so I can investigate?
Thanks,
Ting
sjd0103
Member
418 Points
86 Posts
Re: "Circular file references are not allowed" after running RC Upgrade Wizard
Dec 15, 2005 01:49 PM|LINK
Ting,
Our user controls are a couple of directories in (/xxxproj/UserControls/) from the root. The masterpage was in the root, but by your advice I moved it over to a new directory. I changed all references (563 occurrences) to the new location and still have the same circular reference error when I build with batch=true. The error points to user controls with the directive:
<%@ Reference VirtualPath="~/SystemFiles/MasterPages/MasterPage.master"%>
Our project is enormous, so sending the solution isn't an option. There's probably something we're not seeing that has not been identified as an issue...we'll get there.
Thanks!
mbund
Member
630 Points
126 Posts
Microsoft
Re: "Circular file references are not allowed" after running RC Upgrade Wizard
Dec 15, 2005 05:12 PM|LINK
I still recommend you enter an MSDN feedback bug and include your current folder structure, a sample user control and the master page. This will allow us to review it with the whole team (including Ting) and track it officially.
Thanks,
Rippo
Member
111 Points
42 Posts
Re: "Circular file references are not allowed" after running RC Upgrade Wizard
Dec 16, 2005 10:42 AM|LINK
Have submitted my solution to MSDN Online FDBK42439
Circular file references are not allowed" when using deploying using VS2005 Web Deployment Projects BETA
Thanks
Rippo
http://www.wildesoft.net
mbund
Member
630 Points
126 Posts
Microsoft
Re: "Circular file references are not allowed" after running RC Upgrade Wizard
Dec 16, 2005 11:44 PM|LINK