Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Simple Demo Grid won't build

Last post 07-03-2008 17:59 by notspecial. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 06-30-2008 17:18

    Simple Demo Grid won't build

    Hi All,

     Just installed everything and the webgrid won't build. Followed the instructions for setting up the web.config, etc... but I still get the following error when I try to build the solution.

     Error 49 Literal content ('</header>  </infragistics.webui.ultrawebgrid.ultragridcolumn>          </Columns>              </addnewrow>  </infragistics.webui.ultrawebgrid.ultragridband>') is not allowed within a 'Infragistics.WebUI.UltraWebGrid.BandsCollection'. F:\WebSites\SSI.CRMWeb\SecuredUsers\HorzPhone.ascx 45 

    Here's the code for it (all generated from the designer)

     <igtbl:UltraWebGrid ID="UltraWebGrid1" runat="server" Height="200px"

    Width="325px">

    <bands>

    <infragistics.webui.ultrawebgrid.ultragridband key="DataBand"><Columns>

    <infragistics.webui.ultrawebgrid.ultragridcolumn basecolumnname="PhoneNumber"

    key="PhoneNumber">

    <header caption="Phone Number" title="" titlemode="Always"></header>

    </infragistics.webui.ultrawebgrid.ultragridcolumn>

    </Columns>

     

    <addnewrow view="NotSet" visible="NotSet"></addnewrow>

    </infragistics.webui.ultrawebgrid.ultragridband>

    </bands>

    <displaylayout allowcolsizingdefault="Free" allowcolumnmovingdefault="OnServer"

    allowdeletedefault="Yes" allowsortingdefault="OnClient"

    allowupdatedefault="Yes" bordercollapsedefault="Separate"

    headerclickactiondefault="SortMulti" name="ctl00xUltraWebGrid1"

    rowheightdefault="20px" rowselectorsdefault="No"

    selecttyperowdefault="Extended" stationarymargins="Header"

    stationarymarginsoutlookgroupby="True" tablelayout="Fixed" version="4.00"

    viewtype="OutlookGroupBy">

    <framestyle backcolor="Window" bordercolor="InactiveCaption"

    borderstyle="Solid" borderwidth="1px" font-names="Microsoft Sans Serif"

    font-size="8.25pt" height="200px" width="325px">

    </framestyle>

    <pager minimumpagesfordisplay="2">

    <PagerStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px">

    <borderdetails colorleft="White" colortop="White" widthleft="1px"

    widthtop="1px" />

    </PagerStyle>

    </pager>

    <editcellstyledefault borderstyle="None" borderwidth="0px">

    </editcellstyledefault>

    <footerstyledefault backcolor="LightGray" borderstyle="Solid" borderwidth="1px">

    <borderdetails colorleft="White" colortop="White" widthleft="1px"

    widthtop="1px" />

    </footerstyledefault>

    <headerstyledefault backcolor="LightGray" borderstyle="Solid"

    horizontalalign="Left">

    <borderdetails colorleft="White" colortop="White" widthleft="1px"

    widthtop="1px" />

    </headerstyledefault>

    <rowstyledefault backcolor="Window" bordercolor="Silver" borderstyle="Solid"

    borderwidth="1px" font-names="Microsoft Sans Serif" font-size="8.25pt">

    <padding left="3px" />

    <borderdetails colorleft="Window" colortop="Window" />

    </rowstyledefault>

    <groupbyrowstyledefault backcolor="Control" bordercolor="Window">

    </groupbyrowstyledefault>

    <groupbybox>

    <boxstyle backcolor="ActiveBorder" bordercolor="Window">

    </boxstyle>

    </groupbybox>

    <addnewbox hidden="False">

    <boxstyle backcolor="Window" bordercolor="InactiveCaption" borderstyle="Solid"

    borderwidth="1px">

    <borderdetails colorleft="White" colortop="White" widthleft="1px"

    widthtop="1px" />

    </boxstyle>

    </addnewbox>

    <activationobject bordercolor="" borderwidth="">

    </activationobject>

    <filteroptionsdefault>

    <filterdropdownstyle backcolor="White" bordercolor="Silver" borderstyle="Solid"

    borderwidth="1px" customrules="overflow:auto;"

    font-names="Verdana,Arial,Helvetica,sans-serif" font-size="11px" height="300px"

    width="200px">

    <padding left="2px" />

    </filterdropdownstyle>

    <filterhighlightrowstyle backcolor="#151C55" forecolor="White">

    </filterhighlightrowstyle>

    <filteroperanddropdownstyle backcolor="White" bordercolor="Silver"

    borderstyle="Solid" borderwidth="1px" customrules="overflow:auto;"

    font-names="Verdana,Arial,Helvetica,sans-serif" font-size="11px">

    <padding left="2px" />

    </filteroperanddropdownstyle>

    </filteroptionsdefault>

    </displaylayout>

    </igtbl:UltraWebGrid>

    Any ideas?

     Thanks

     

    • Post Points: 35
  • 07-01-2008 9:33 In reply to

    Re: Simple Demo Grid won't build

    Subsitute

    notspecial:
    infragistics.webui.ultrawebgrid.

     

    with

    igtbl:

    in the ultragridband and ultragridcolumn definition and it should build.  I forget what causes that to occur but it may be when dlls are in the bin or something along those lines.

    • Post Points: 5
  • 07-01-2008 10:32 In reply to

    • WombatEd
    • Top 10 Contributor
    • Joined on 10-30-2007
    • Culver City, CA
    • Points 6,925

    Re: Simple Demo Grid won't build

    Instead of: <infragistics.webui.ultrawebgrid.ultragridband key="DataBand">
    Use:           <igtbl:ultragridband key="DataBand">

    Instead of: <infragistics.webui.ultrawebgrid.ultragridcolumn ...>
    Use:           <igtbl:ultragridcolumn ...>

    Let me know if my post is a "hit" or a "miss" - use the "Answer" button and the star ratings.

    Edward McCarroll
    Applications Developer
    (Available for Hire - Contact Me)

    • Post Points: 20
  • 07-02-2008 15:23 In reply to

    Re: Simple Demo Grid won't build

    Tried both of the suggestons and now I get this; 

    Infragistics.WebUI.UltraWebGrid.BandsCollection must have items of type 'Infragistics.WebUI.UltraWebGrid.UltraGridBand'. 'igtbl.ultragridband' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'. 

    Infragistics.WebUI.UltraWebGrid.BandsCollection must have items of type 'Infragistics.WebUI.UltraWebGrid.UltraGridBand'. 'addnewrow' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'. 

    Literal content ('</addnewrow>  </igtbl.ultragridband>') is not allowed within a 'Infragistics.WebUI.UltraWebGrid.BandsCollection'. 

    The wierd (or annoying part) is that the "<infragistics.webui.ultrawebgrid.ultragridband " is put in there by default when you drag the control onto the page.  Is there something I'm missing but shouldn't the control handle that automatically?

    I've setup the web.config as per the installtion instructions. Yet regardless of whether or not I register the assembly within the page it still appears that it does not "know" where the assembly is.  I'm thinking this because if I type "<igtbl:" intellisense doesn't find anything for it.  I've referenced it. Any ideas?

    Also one other strange thing I noticed from the sintallation instructions. The assembly entry in the web.config is;

    <add assembly="Infragistics35.WebUI.UltraWebGrid.v8.2, Version=8.2.20082.1000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"/>

    But it also has a runtime binding entry of;

    <assemblyIdentity name="Infragistics2.WebUI.UltraWebGrid.v7.1"

    publicKeyToken="7dd5c3163f2cd0cb"/>

    <bindingRedirect oldVersion="7.1.20071.1-7.1.20071.31"

    newVersion="7.1.20071.31"/>

     

    Thanks again for the suggestions, while they didn't fix it completely it does look like they got me closer.

     

    • Post Points: 35
  • 07-02-2008 17:38 In reply to

    • WombatEd
    • Top 10 Contributor
    • Joined on 10-30-2007
    • Culver City, CA
    • Points 6,925

    Re: Simple Demo Grid won't build

    You have periods where you should have colons:

    Wrong: <igtbl.ultragridband>
    Right:   <igtbl:ultragridband>

    Let me know if my post is a "hit" or a "miss" - use the "Answer" button and the star ratings.

    Edward McCarroll
    Applications Developer
    (Available for Hire - Contact Me)

    • Post Points: 5
  • 07-03-2008 3:16 In reply to

    Re: Simple Demo Grid won't build

    This problem sometimes happens when the design time assembly of any Infragistics product is not referenced from GAC. This may be related to the binding redirect sections you have for mapping 7.1 versions... I am not sure. Maybe you need to map the design time assembly as well.

    Please, make sure the design time assembly for the 8.2 version of the grid is in GAC (c:\windows\assembly) and not in the /bin folder of the website you are working on, this should probabably address the issue.

    Best Regards,
    Rumen Stankov (MCSD.NET)
    The Infragistics ASP.NET Team
    • Post Points: 5
  • 07-03-2008 3:27 In reply to

    Re: Simple Demo Grid won't build

    Just a quick follow-up - I found this in an internal discussion in the devteam mailing list, it appears the if you have the design time assemblies in both /bin folder and in GAC (our installer places them in GAC automatically), you are likely to get these types of problems. Deleting the design time assembly from /bin (or wherever else it might be referenced from) should address the problem. 

     <quote>

    I think you will not be able to work with the controls at design-time while the control assemblies are in your "bin" folder.  We have always accepted the fact that this breaks various things in Visual Studio, especially serialization. 

    I think the main cause for this is Visual Studio loading the assembly out of your GAC in addition to the one from your bin folder, resulting in confusion about which classes come from which assembly.

    </quote> 

    Best Regards,
    Rumen Stankov (MCSD.NET)
    The Infragistics ASP.NET Team
    • Post Points: 20
  • 07-03-2008 17:59 In reply to

    Re: Simple Demo Grid won't build

    Thanks all. 

    Re: the ":" instead of "." - Thanks, simple "doh" on my part.

    I still have to go in and change what the control creates when I drop it on a form - Not fun.  Removing the runtime bindings didn't help.

    The assemblys are not in the BIN folder.

    As I read the instructions by placing the proper entries in the web.config I would *not* have to place an assmebly tag in each page.  Am I incorrect in my understanding of that?

     Thanks 

     

    • Post Points: 5
Page 1 of 1 (8 items)
Powered by Community Server (Commercial Edition), by Telligent Systems