codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  circular file references are not allowed  babi at 08:34 on Friday, August 25, 2006
 

my solution is actually in Visual Studio.NET 2003, and i convert it in Visual Studio.NET 2005, and there're some error message like "circular references are not allowed" and when i double click on one of the error message, it appears <%@ Reference page="/forum//a.html" %> in b.ascx. these are the details :

i've got a structural file and (folder) like this :

<web project>
- a.aspx
- a.aspx.cs
-- (usercontrols)
-- b.ascx
-- b.ascx.cs

*in a.aspx.cs, said it like this :
namespace web {
public partial class a : System.Web.UI.Page {
public const string Mode = "Mode";
}
}

*in b.ascx, there's a syntax <%@ Reference page="/forum//a.html" %>

*in b.ascx.cs, said it like this :
namespace web.usercontrols {
public partial class b : System.Web.UI.UserControl {
Session[a.Mode] = "hoho"; // here class web.a is recognized, because of its reference in b.ascx
}
}

if i build web site, there's no error, but when i rebuild web site, the error is "circular file references are not allowed"

as in article that you post, the cause probably is "The application contains references to Web pages that are outside the current directory." (no. 2 of cause in the article)

if i remove the syntax <%@ Reference page="/forum//a.html" %> in b.ascx
and then in b.ascx.cs like this :
namespace web.usercontrols {
using web;
public partial class b : System.Web.UI.UserControl {
Session[a.Mode] = "hoho"; // class web.a is not recognized, i do not know why?
}
}

i've tried this too in b.ascx.cs, but it failed too :
namespace web.usercontrols {
using web;
public partial class b : System.Web.UI.UserControl {
Session[web.a.Mode] = "hoho"; // class web.a is not recognized, i do not know why?
}
}

could you tell me what i have to do with this?

i'll await for your reply.

  Re: circular file references are not allowed  amery buck at 06:10 on Friday, April 02, 2010
 

Nice post about not allowed. I like your blog very much because it has very interesting articles of different topics like 117-102 dumps, 156-915.65 dumps and 1Y0-264 dumps and their tips and tricks. I am a very big googler and search on different topics. Between searching i found your nice blog. Thanks for your this great blog.








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  FREE dating software worth over $350 for free
•  running a command in remote machine by using perl
•  converting JAVA code to JSP
•  image and form fieild upload problem
•  Multiplying currency
•  Java Garbage Collection Boot Camp
•  validations fo form fields
•  Setting page size at which scroll bars appear in browser window (javascript)
•  before executing a function


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2010