CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > migration_to_asp.net.migrating_from_asp.net_1.x_to_asp.net_2.0 Tags:
Item Type: NewsGroup Date Entered: 9/26/2005 12:07:30 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 33 Views: 69 Favorited: 0 Favorite
34 Items, 2 Pages 1 2 |< << Go >> >|
BBuff
Asp.Net User
"Circular file references are not allowed" after running RC Upgrade Wizard9/26/2005 12:07:30 PM

0

It seems as though I posted this in the wrong forum (VS 2005) yesterday, so here it is in the correct one.

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
mbund
Asp.Net User
Re: "Circular file references are not allowed" after running RC Upgrade Wizard10/7/2005 1:06:01 AM

0

A circular reference can be introduced when adding the Reference directive to tell the compiler where to find another page's class. For example, you could have Control1 refer to Control2, Control2 refer to Control3, and then Control3 refers back to Control1.

The only way to break a circular reference is to take one of the controls and use the Abstract Base Class design pattern (see the Common Migration Issues and Solutions white paper as http://msdn.microsoft.com/asp.net/migration/upgrade/default.aspx for more detail).

The migration wizard should be smart enough to detect this situation, but obviously it did not work on your code. We would love to take a look at your project and see if we can fix the wizard in a post-Whidbey release. If you are willing, please send your web app to 
m b u n d @ m i c r o s o f t . c o m  and we'll take a look.

Thanks,
-Mike-

Baiju
Asp.Net User
Re: "Circular file references are not allowed" after running RC Upgrade Wizard10/14/2005 5:26:11 PM

0

If you do not see any obvious circular reference, please try to add  batch=false in the compilation tag of web.config.

"This posting is provided "AS IS" with no warranties, and confers no rights"
mbund
Asp.Net User
Re: "Circular file references are not allowed" after running RC Upgrade Wizard10/14/2005 6:49:07 PM

0

One additional note on batch=false -- this tells the ASP.NET compiler to not batch assemblies, and create an assembly for each web form and user control. When it is set to true, then the compiler will batch assemblies (in a non-deterministic way, but usually one per folder) which may hide broken references, including circular references. We recommend during development you run with batch=false, but for deployment set batch=true. This flag is set web.config, e.g.

<system.web>
    <compilation defaultLanguage="c#" debug="true" batch="false">
    </compilation>
</system.web>
-Mike-

mike123
Asp.Net User
Re: "Circular file references are not allowed" after running RC Upgrade Wizard11/7/2005 6:22:39 AM

0

I am getting this error too FYI


mike123
mbund
Asp.Net User
Re: "Circular file references are not allowed" after running RC Upgrade Wizard11/7/2005 7:45:19 AM

0

Are you getting it when batch=false?


-Mike-

mike123
Asp.Net User
Re: "Circular file references are not allowed" after running RC Upgrade Wizard11/8/2005 12:33:04 AM

0

I took this setting off and its ok, however I want to set this for deployment ... Where can I read how to fix this ?
Baiju
Asp.Net User
Re: "Circular file references are not allowed" after running RC Upgrade Wizard11/8/2005 6:04:45 PM

0

For deploy ment you cando two things to fix this.
1. If you precompiling you should be OK

2. Identfy where the circular reference is coming from, normally when a file in Folder1 referring to a file in folder2 and totally different file in folder2 referring back to another file in folder1 you may see this. This is because by default all files in a folders tends to get built into single assembly. You can split some files into another folder to avoid this.



"This posting is provided "AS IS" with no warranties, and confers no rights"
mike123
Asp.Net User
Re: "Circular file references are not allowed" after running RC Upgrade Wizard11/9/2005 4:32:07 AM

0


Forgive me but I am not sure what you mean by pre-compilling ? 

It's building without errors when "batch=false" is on ..... However its riddled with errors otherwise.  Am I ok to use "batch=false" for a live website?  I don't exactly understand what this is doing.

Thanks!
mike123
Baiju
Asp.Net User
Re: "Circular file references are not allowed" after running RC Upgrade Wizard11/9/2005 7:59:09 PM

0

During compilation asp.net compiler try to batch some pages together to prduce a single assembly, By default all pages in a folder is built into a single assembly. so if  file1 in folder1 refer to another file2 in folder2 and  file1 in folder2 referring to file2 in folder1 can cause circular refernce issue.

There are couple of way you can deploy the web to production server.
1. Source deployment, you can copy your entire site to the production machine.
2. Precompile, Use menu build->Publish website built assemblies are deployed in this case.

If you have batch=false build process will be slower. Thats why if you use second method in this case.


"This posting is provided "AS IS" with no warranties, and confers no rights"
mbund
Asp.Net User
Re: "Circular file references are not allowed" after running RC Upgrade Wizard11/9/2005 10:36:25 PM

0

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.

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.

-Mike-

sjd0103
Asp.Net User
Re: "Circular file references are not allowed" after running RC Upgrade Wizard11/29/2005 10:22:10 PM

0

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.

ANY help would be great!!
Rippo
Asp.Net User
Re: "Circular file references are not allowed" after running RC Upgrade Wizard12/14/2005 7:48:40 AM

0

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

sjd0103
Asp.Net User
Re: "Circular file references are not allowed" after running RC Upgrade Wizard12/14/2005 1:39:46 PM

0

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.
mbund
Asp.Net User
Re: "Circular file references are not allowed" after running RC Upgrade Wizard12/14/2005 5:02:58 PM

0

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!


-Mike-

tinghaoy
Asp.Net User
Re: "Circular file references are not allowed" after running RC Upgrade Wizard12/14/2005 6:22:16 PM

0

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.
sjd0103
Asp.Net User
Re: "Circular file references are not allowed" after running RC Upgrade Wizard12/15/2005 2:49:43 PM

0

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
Asp.Net User
Re: "Circular file references are not allowed" after running RC Upgrade Wizard12/15/2005 6:12:17 PM

0

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,


-Mike-

Rippo
Asp.Net User
Re: "Circular file references are not allowed" after running RC Upgrade Wizard12/16/2005 11:42:14 AM

0

Have submitted my solution to MSDN Online FDBK42439

Circular file references are not allowed" when using deploying using VS2005 Web Deployment Projects BETA

Thanks

mbund
Asp.Net User
Re: "Circular file references are not allowed" after running RC Upgrade Wizard12/17/2005 12:44:10 AM

0

Thanks! I found it and we will look at it.
-Mike-

34 Items, 2 Pages 1 2 |< << Go >> >|


Free Download:


Web:
"Circular file references are not allowed" after running RC ... 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 ...
"Circular file references are not allowed" after running RC ... "Circular file references are not allowed" after running RC Upgrade Wizard. Last post 12-10-2007 12:46 PM by skuli. 33 replies. Sort Posts: ...
Circular file references are not allowed - ng.asp-net-forum ... "Circular file references are not allowed" after running RC ... After running my site through the VS2005 RC Upgrade Wizard, I now have a ton of "Circular ...
MySQL :: MySQL 5.1.24-rc has been released Apr 16, 2008 ... involved in circular replication would cause the slave to run .... DEFAULT 0 was not allowed for the YEAR data type. ...
ORA-24777: use of non-migratable database link not allowed - SQL ... Service pack and Copy Database Wizard Check this for SP2 ... I am running into a null reference exception on replication with SQL Server 2005 Compact ...
Data Dynamics 35767, DataField expressions sometimes throw a Circular Field Reference error ..... bound fields OrderID and OrderDate in Page Header, which is not allowed. ...
fatal error CVT1100: duplicate resource. type:ICON, name:1, langua .rc files and inserting a new version resource to your second .rc file, ..... Strong name assignment to a circular reference ...
Import Wizard Version 9 Upgrade Notes. q. Import Wizard 9 uses a new model file format. ...... Evaluation occurs in a single pass so that circular references are not ...
MySQL Lists: packagers: MySQL 5.1.24-rc has been released (part 1 ... Apr 16, 2008 ... This occurred even if the trigger did not reference any tables. .... that was involved in circular replication would cause the slave to run ...
How to use Project Analyzer v9 After running Auto-fix, there is a chance that your newly generated clean project might ...... File dependency analysis finds circular file dependencies, ...






how to control the client script position generated by menu control?

access masterpage from a class

link in a menu

duplicate text from masterpage?

sitemap custom attribute use

classic .asp site in content page - can it be done?

content placeholder position

get more themes?

problem with ~/ in master page path.

treeview in masterpage

slant header using css or javascript

menu control - vb.net (how to make disappear one of the menu items when the user is authenticated)

remove arrow from menu

entering a target into a sitemap

how to override master events?

treeview find selected node

navigation control to display directories and files from windows.

master page contents disappearing

access to control stepnextbutton in stepnavigationtemplate

using a database with menu control

copy web site & themes

skins don't seem to work if the aspx file is in a different directory from the master page

web.sitemap top level links still seen with securitytrimmingenabled="true"

bolding the current item in a sitemap

sitemappath bound to web.sitemap

asp.net menu or tree view with checkboxes

site map different for each user using sitemap provider.

move portion of asp:menu to right

the control with id 'upnlclientorders' requires a scriptmanager on the page

storing a var in the master page

   
  Privacy | Contact Us
All Times Are GMT