CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML





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: 11/16/2007 7:26:48 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 5 Views: 5 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
6 Items, 1 Pages 1 |< << Go >> >|
EDUStreet
Asp.Net User
Circular References issue11/16/2007 7:26:48 AM

0/0

Hi,

 After I migrate from from ASP.NET 1.0 to 2.0, I get this error mesage in all the code behind file where inherit this file "InheritPage"

Code Behind:
Public MustInherit Class AssignUserGroup
Inherits InheritPage  <--- Error Message : Type 'Inherit Page' is not defined.

In fact, it is  all of the code-behind file is references to this file. So, with all the aspx file header contain the below code also get error

<%@ Reference Page="~/commonpage/inheritpage.aspx" %>  <--- Error Message : 'Context' is not member of 'xxx'

I have refer to this website
http://msdn2.microsoft.com/en-us/library/aa479312.aspx , known this should be the "Circular Reference Issue", but i cannot solve the problem. Anyone could give the solution will be very appreciate!!

Calvin

scott@elbandit.
Asp.Net User
Re: Circular References issue11/16/2007 12:26:34 PM

0/0

try chaning your code to:

Public MustInherit Class AssignUserGroup
                                   Inherits CommonPage_InheritPage 

Visual Studio prefixes the page class name with the folder name. If you have a look in the code behind for commonpage/inheritpage.aspx see what the actual name of the class is.

let me know if this solves your problem.


--------------------------------------------------------
Don't forget to click "Mark as Answer" on the post(s) that helped you.

Scott ASP.net blog

EDUStreet
Asp.Net User
Re: Circular References issue11/19/2007 1:57:16 AM

0/0

The problem still exists, I try to upload capture screen to more clear, but seen this forum have difficulties to upload.

Zhao Ji Ma - MS
Asp.Net User
Re: Circular References issue11/20/2007 6:29:39 AM

0/0

Hi, 

You can upload the image to an image hosting server and add the link here.

 


Zhao Ji Ma
Sincerely,
Microsoft Online Community Support

?Please remember to click ?Mark as Answer? on the post that helps you, and to click ?Unmark as Answer? if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ?
EDUStreet
Asp.Net User
Re: Circular References issue11/21/2007 1:26:33 AM

0/0

REPLY FROM SCOTT:

If you just want to inherit some functionality you could create a BaseCommonPage that inherits from System.Web.UI.Page and store it in the App_Code folder. This would then be available to all other pages that inherit from it.

App_Code/CommonBasePage.vb:

Imports Microsoft.VisualBasic

Public
Class CommonBasePage
         
Inherits System.Web.UI.Page           Public Function myMethod() As String
                  
Return "MyName"
         
End Function

End Class

Then you web pages could inherit from it:

Partial Class CommonPage_MyCommonpage
                  
Inherits CommonBasePage

                  Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
                            Response.Write(
MyBase.myMethod)
                 
End Sub
End
Class

 

 

Thank you very much to Scott YesParty!!!

scott@elbandit.
Asp.Net User
Re: Circular References issue11/21/2007 11:22:31 AM

0/0

There is a good article by Scott Mitchell on this http://aspnet.4guysfromrolla.com/articles/041305-1.aspx. It may be of some use.


--------------------------------------------------------
Don't forget to click "Mark as Answer" on the post(s) that helped you.

Scott ASP.net blog

6 Items, 1 Pages 1 |< << Go >> >|



Search This Site:


Meet Our Sponsors:



Other Resources:

build website... may as well go for coffee! - ng.asp-net-forum ... ... sound like you might be running into an issue we call "dueling references" ... Library, etc, but are very careful to not create circular references, have one ...
MMM Month format - ibm.software.db2.udb - Web Programming Newsgroups report designer issue. vs & sql server 2005 free at launch event ... "circular file references are not allowed" after running the upgrade wizard ...
Common Web Project Conversion Issues and Solutions Issue 1: Code-behind class file (CB-CB) references. Issue 2: Stand-alone class file (SA–CB) references. Issue 3: Circular references ... Issue 3: Circular references ...
Kirk Marple : Interesting XmlSerializer issue with "circular reference" System.InvalidOperationException: A circular reference was detected while ... serializer uses Object.Equals to find circular references in any object graph. ...
CircularReferences - jabsorb wiki Issues. Svn. MailingLists. Download. FAQ. Docs. Main. CircularReferences ... Circular ... if this is true, circular references in the object graph are fixed ...
PHPDeveloper.org: Derick Rethans' Blog: Circular References Circular-references has been a long outstanding issue with PHP. ... what's so bad about circular references - issues not only with referencing the ...
Circular References Here is a short explanation of circular references. ... The term circular reference (AKA catch-22 or ... A circle is created with no one resolving the issue. ...
Circular References (JL Comp) This site is authored by Jonathan Lewis and devoted to the ... be a side-effect of the business use of data, not an implicit issue of b-trees. Reference 2: ...
www.omg.org/issues/issue1401.txt Issue 1401: Circular References in CosStream and CosCompoundExternalization ... has been known for a while, although we've somehow never filed an issue on it. ...



 
All Times Are GMT