asp.net project not compiling after conversion

P

profnachos

I am still struggling to convert my .NET 1 project and running into all
sorts of issues.

At this point, the only thing that is saying is.

"/MyWebSite/permits_webgrid.ascx has a circular reference!

Do you have any suggestion on where to begin? It is not pointing to my
code, but rather to the ascx page. Can't really see what the issue is,
because that page has just one control. In this case it is a third
party control, but I tried to reproduce it by writing a stripped down
web application and converting it, but I cannot reproduce it.

Here is the content of the ascx file if you would like to delve in.

<%@ Reference Page="~/permit_viewedit.aspx" %>
<%@ Reference Control="~/uwebgrid_base.ascx" %>
<%@ Control Language="c#"
Inherits="Belshire.Petrotools.Web.permits_webgrid"
CodeFile="permits_webgrid.ascx.cs"
CodeFileBaseClass="Belshire.Petrotools.Web.uwebgrid_base" %>
<%@ Register TagPrefix="cc1"
Namespace="Infragistics.WebUI.UltraWebGrid.ExcelExport"
Assembly="Infragistics2.WebUI.UltraWebGrid.ExcelExport.v6.1,
Version=6.1.20061.28, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
%>
<%@ Register TagPrefix="igtbl"
Namespace="Infragistics.WebUI.UltraWebGrid"
Assembly="Infragistics2.WebUI.UltraWebGrid.v6.1, Version=6.1.20061.28,
Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb" %>
<table>
<tr id="trExcelRecordCountRow" runat="server">
<td align="right" width="50%">
<asp:ImageButton id="btnExcelExport"
runat="server"></asp:ImageButton></td>
<td width="50%">
<asp:Label id="lblRecordCount" runat="server"></asp:Label></td>
</tr>
<tr>
<td colspan="2">
<igtbl:UltraWebGrid id="wgPermits" runat="server">
<DisplayLayout RowHeightDefault="20px" Version="4.00"
BorderCollapseDefault="Separate" Name="xctl0UltraWebGrid1">
<AddNewBox>


<BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px"
ColorLeft="White">
</BorderDetails>

</Style>
</AddNewBox>
<Pager>

<BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px"
ColorLeft="White">
</BorderDetails>

</Style>
</Pager>
<HeaderStyleDefault BorderStyle="Solid" BackColor="LightGray">
<BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px"
ColorLeft="White"></BorderDetails>
</HeaderStyleDefault>
<FrameStyle Width="325px" BorderWidth="1px" Font-Size="8pt"
Font-Names="Verdana" BorderStyle="Solid"
Height="200px"></FrameStyle>
<FooterStyleDefault BorderWidth="1px" BorderStyle="Solid"
BackColor="LightGray">
<BorderDetails ColorTop="White" WidthLeft="1px" WidthTop="1px"
ColorLeft="White"></BorderDetails>
</FooterStyleDefault>
<EditCellStyleDefault BorderWidth="0px"
BorderStyle="None"></EditCellStyleDefault>
<RowStyleDefault BorderWidth="1px" BorderColor="Gray"
BorderStyle="Solid">
<Padding Left="3px"></Padding>
<BorderDetails WidthLeft="0px" WidthTop="0px"></BorderDetails>
</RowStyleDefault>
</DisplayLayout>
<Bands>
<igtbl:UltraGridBand></igtbl:UltraGridBand>
</Bands>
</igtbl:UltraWebGrid></td>
</tr>
</table>
<cc1:UltraWebGridExcelExporter id="excelExporter"
runat="server"></cc1:UltraWebGridExcelExporter>
 
S

Sean Chambers

The asp.net page model has changed in ASP.NET 2.0, as a result if
usercontrols have to reference each other, then you must go about it
another way, like passing interfaces around rather than add a reference
directive to each page, as that would give you the error message you
are receiving

I could go into detail, but I am tired so I will refer you to a page on
MSDN that describes common ASP.NET 2.0 conversion problems, the link
sends you right to the portion on circular references:

http://msdn2.microsoft.com/en-us/library/aa479312.aspx#issue3

I would take the time to read through the whole thing, because when you
get your circular references out of the way, you'll probably run into
some of the other problems they mention in there.

Hope that helps!

Sean
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top