﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WebForms (How do I?)  » Listview error in 1.65 web app</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Fri, 22 May 2026 19:32:22 GMT</lastBuildDate><ttl>20</ttl><item><title>Listview error in 1.65 web app</title><link>http://forum.strataframe.net/FindPost14392.aspx</link><description>&amp;nbsp;Hello - &lt;P&gt;I'm just starting a web app in 1.65 and was doing some 'fooling around'.&amp;nbsp; Inserted a listview into a page, and after setting the population settings using a registered BO, received a design time error message that "an unhandled exception has occurred.&amp;nbsp; MicroFour.StrataFrame.UI.Web.WebListViewPopulationColumnCollection must have items of type MicroFour.StrataFrame.UI.Web.WebListViewPopulationColumn."&amp;nbsp; There was more, but in essense it was saying that instead of getting the type it was expecting, it was getting a populationcolumn of type System.Web.UI.HtmlControls.HtmlGenericControl.&lt;/P&gt;&lt;P&gt;The project built successfully, but yield the following error at runtime:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;I&gt;Parser Error&lt;/I&gt; &lt;/P&gt;&lt;P&gt;&lt;/SPAN&gt;&lt;FONT face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;B&gt;Description: &lt;/B&gt;An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. &lt;BR&gt;&lt;BR&gt;&lt;B&gt;Parser Error Message: &lt;/B&gt;MicroFour.StrataFrame.UI.Web.WebListViewPopulationColumnCollection must have items of type 'MicroFour.StrataFrame.UI.Web.WebListViewPopulationColumn'. 'microfour.strataframe.ui.web.weblistviewpopulationcolumn' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'.&lt;BR&gt;&lt;BR&gt;&lt;B&gt;Source Error:&lt;/B&gt; &lt;BR&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;POPULATIONDATASOURCESETTINGS BusinessObjectType="Fam.Satellite.Business.SatSiteBO" DisplayFieldNames="cSiteName|" MethodToExecute="FillAll;"&gt;&lt;TABLE width="100%" bgColor=#ffffcc&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;Line 33:DisplayFieldNames="cSiteName|" MethodToExecute="FillAll;"&amp;gt;&lt;/PRE&gt;&lt;PRE&gt;Line 34:&amp;lt;FormatColumns&amp;gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;FONT color=red&gt;Line 35:&amp;lt;microfour.strataframe.ui.web.weblistviewpopulationcolumn columnalignment="Left" &lt;/FONT&gt;&lt;/PRE&gt;&lt;PRE&gt;Line 36:columnheader="Site Name" columnwidth="120pc" formatstring="{0}" &lt;/PRE&gt;&lt;PRE&gt;Line 37: headeralignment="Left" populationtype="FormattedString"&amp;gt;&amp;lt;/microfour.strataframe.ui.web.weblistviewpopulationcolumn&amp;gt;&lt;/PRE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;Thanks in advance ....</description><pubDate>Fri, 15 Feb 2008 16:54:05 GMT</pubDate><dc:creator>Mark Dowlearn</dc:creator></item><item><title>RE: Listview error in 1.65 web app</title><link>http://forum.strataframe.net/FindPost14412.aspx</link><description>[quote]Also, the standard Gridview indicates that the WebBusinessBindingSource does not support paging.&amp;nbsp; Is this correct?[/quote]&lt;/P&gt;&lt;P&gt;Correct.&amp;nbsp; If you want paging, do this through the BO by creating a Fill method that pages through the records.&amp;nbsp; For example, you could create a Fill method called FillNext100 and have it take into account the primary key or whichever root value you want to use.&amp;nbsp; This is how we use paging...having this automated is probably not going to happen any time soon as this will require a significant implementation to support all of these different controls.&amp;nbsp; But you can do it manually right now.</description><pubDate>Fri, 15 Feb 2008 16:54:05 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Listview error in 1.65 web app</title><link>http://forum.strataframe.net/FindPost14411.aspx</link><description>Trent -&lt;/P&gt;&lt;P&gt;FYI, on further testing, it looks like the problem with the devExpress ASPxGridView (and the standard GridView, for that matter) is with GUIDs.&amp;nbsp; Also, the standard Gridview indicates that the WebBusinessBindingSource does not support paging.&amp;nbsp; Is this correct?&lt;/P&gt;&lt;P&gt;Mark</description><pubDate>Fri, 15 Feb 2008 16:24:39 GMT</pubDate><dc:creator>Mark Dowlearn</dc:creator></item><item><title>RE: Listview error in 1.65 web app</title><link>http://forum.strataframe.net/FindPost14410.aspx</link><description>Trent -&lt;/P&gt;&lt;P&gt;Your suggestions are on the mark and I'm up and running.&amp;nbsp; One note -- the pipe after the field name is still being generated by the PopulationDataSourceSettings designer, but it doesnt' appear to impede anything.&amp;nbsp; So it's not the culprit ....&lt;/P&gt;&lt;P&gt;I did see where my earlier web.config had the PrefixTag entries in it and the new one didn't.&amp;nbsp; So that was definitely the problem.&lt;/P&gt;&lt;P&gt;The devExpress ASPxGridView generates an error ("Error Rendering Control"), but the ASPxDataView seems to work ok thus far.&amp;nbsp; I understand this is something you have addressed yet -- just thought you might like to know ....&lt;/P&gt;&lt;P&gt;Thanks again for your help!&lt;/P&gt;&lt;P&gt;Gratefully,&lt;/P&gt;&lt;P&gt;m</description><pubDate>Fri, 15 Feb 2008 15:18:17 GMT</pubDate><dc:creator>Mark Dowlearn</dc:creator></item><item><title>RE: Listview error in 1.65 web app</title><link>http://forum.strataframe.net/FindPost14406.aspx</link><description>[quote]&lt;LI&gt;SF TagPrefixes not registered on projects created earlier&lt;/LI&gt;&lt;P&gt;[/quote]&lt;/P&gt;&lt;P&gt;Hmmm....I am not sure about this.&amp;nbsp; All previous projects that I had setup seem to have them.&amp;nbsp; There could be something else going on here.&amp;nbsp; I will have to look into this some more.&lt;/P&gt;&lt;P&gt;[quote]inability to bind to WebBusinessBindingSource when using some (not all) devExpress list controls.[/quote]&lt;/P&gt;&lt;P&gt;Yeah, we already know about this.&amp;nbsp; Generally this relates to some of their grid type controls and it depends on what you are trying to do.&amp;nbsp; I have a note to look at this before the 1.6.5 final build, but I haven't setup a sample or scenario yet in which this fails.&amp;nbsp; You are welcome to create a sample using the StrataFrameSample database (or whatever works best for you) to reproduce the issue so that we can better understand what you are running into.&lt;/P&gt;&lt;P&gt;[quote]Also -- where is the global.asax file?&amp;nbsp; I tried opening a previous project that was created as a "web site", and it has the global.asax file where I set the DataSource settings.&amp;nbsp; [/quote]&lt;/P&gt;&lt;P&gt;Apparently this template has always left this out.&amp;nbsp; I will add it to the template for the next update, but the reason it was probably never reported as there really isn't much that needs to be done.&amp;nbsp; Just manually create a new "Global Application Class."&amp;nbsp; Once added, open it up and add your data source connections in the Application_Start method:&lt;/P&gt;&lt;P&gt;[codesnippet]MicroFour.StrataFrame.Data.Databasics.DataSources.Add(New SqlDataSourceItem("","My Connection String"))[/codesnippet]&lt;/P&gt;&lt;P&gt;[quote]Help, I'm confused and under a deadline![/quote]&lt;/P&gt;&lt;P&gt;I think that this is just the nature of development....I have two separate project deadlines I am trying to hit as also.&amp;nbsp; I am sure that you live the 7 day a week 10+ hour days life as well :)&lt;/P&gt;&lt;P&gt;[quote]&lt;TABLE cellSpacing=0 cellPadding=0 width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class=smalltxt vAlign=top&gt;&lt;SPAN id=ctl02_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl07_lblFullMessage&gt;Here's a screenshot of the design time error I'm getting on the listview control ....&lt;/SPAN&gt; &lt;FONT size=1&gt;&lt;BR&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;[/quote]&lt;/P&gt;&lt;P&gt;This looks like another applicaiton template issue.&amp;nbsp; You can fix this by either adding a Register tag at the top of each page....or adding the below code in the web.config file.&amp;nbsp; You will want to add this to the &amp;lt;pages&amp;gt;&amp;lt;/pages&amp;gt; section:&lt;/P&gt;&lt;P&gt;[codesnippet]&amp;lt;controls&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add tagPrefix="SFWeb" namespace="MicroFour.StrataFrame.UI.Web" assembly="MicroFour StrataFrame UI, Version=1.6.0.0, Culture=neutral, PublicKeyToken=99fe9917f71608a7"/&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add tagPrefix="SFWeb" namespace="MicroFour.StrataFrame.UI.Web" assembly="MicroFour StrataFrame Business, Version=1.6.0.0, Culture=neutral, PublicKeyToken=99fe9917f71608a7"/&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add tagPrefix="SFWeb" namespace="MicroFour.StrataFrame.UI.Web" assembly="MicroFour StrataFrame Base, Version=1.6.0.0, Culture=neutral, PublicKeyToken=99fe9917f71608a7"/&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/controls&amp;gt;[/codesnippet]&lt;/P&gt;&lt;P&gt;You will then want to delete the tag in your aspx page that probably has a definition of MicroFour.StrataFrame.UI.Web and a tag prefix of cc1, otherwise it will try to "double-dip" when creating the columns and give you an error.&amp;nbsp; I reproduced this and will fix the template.&amp;nbsp; But just add these tags to your web.config file and it should get you going.</description><pubDate>Fri, 15 Feb 2008 13:54:16 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Listview error in 1.65 web app</title><link>http://forum.strataframe.net/FindPost14397.aspx</link><description>Here's a screenshot of the design time error I'm getting on the listview control ....</description><pubDate>Fri, 15 Feb 2008 10:10:23 GMT</pubDate><dc:creator>Mark Dowlearn</dc:creator></item><item><title>RE: Listview error in 1.65 web app</title><link>http://forum.strataframe.net/FindPost14396.aspx</link><description>Trent -&lt;P&gt;You're right -- there does appear to be a pipe there.&amp;nbsp; However,&amp;nbsp;this is not something I added -- looks like it's being automatically generated when using the PopulationDataSourceSettings during design time. &lt;/P&gt;&lt;P&gt;In any case, I took it out manually, and I still have the same error.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;In addition, I'm experiencing some anomalies when I try to open previous solutions -&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;SF TagPrefixes not registered on projects created earlier&lt;/LI&gt;&lt;LI&gt;inability to bind to WebBusinessBindingSource when using some (not all) devExpress list controls.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Also -- where is the global.asax file?&amp;nbsp; I tried opening a previous project that was created as a "web site", and it has the global.asax file where I set the DataSource settings.&amp;nbsp; &lt;/P&gt;&lt;P&gt;When I created this newest project, it was done as a web application -- and there's no global.asax file in it.&lt;/P&gt;&lt;P&gt;Help, I'm confused and under a deadline!&amp;nbsp; :w00t:&lt;/P&gt;&lt;P&gt;m</description><pubDate>Fri, 15 Feb 2008 09:59:57 GMT</pubDate><dc:creator>Mark Dowlearn</dc:creator></item><item><title>RE: Listview error in 1.65 web app</title><link>http://forum.strataframe.net/FindPost14394.aspx</link><description>Mark,&lt;/P&gt;&lt;P&gt;It appears that there is a pipe sign after the DisplayFieldNames, which should not be there.&amp;nbsp; You might check your display member settings as well as the values supplied for each column.&amp;nbsp; I know that the 1.6.5 beta ListView works as I created one in the past few days (though there could always be something that manifests itself under certain circumstances).&amp;nbsp; Check your display column values and if it still doesn't work, then we can dig a little deeper.</description><pubDate>Fri, 15 Feb 2008 09:09:30 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>