Rank: Advanced Member Groups: Member
Joined: 2/27/2010 Posts: 69
|
Hi,
First, let me thank and commend you guys for your prompt response to the issues I've raised. Very much appreciated.
I have found another unusual error when viewing the FileExplorer in design view. It displays just fine when editing the template, and the page runs correctly. It just gives the following error in design view:
FileExplorer1 An error occurred while rendering the control: EO.Web.ToolBarItemCollection must have items of type 'EO.Web.ToolBarItem'. 'EO.Web.ToolBarItem' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'.
I'm getting this on the page I had created and upgraded from EO.Web 2009, and also on the demo Explorer.aspx which came with the 2011 upgrade.
All other controls seem to be working correctly.
Thanks.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, You will have this error if you have ToolBarItem (or anything else not starting with "eo:") instead of eo:ToolBarItem in your ASPX. For example, the following is valid:
Code: HTML/ASPX
<eo:ToolBar ....>
....
<Items>
....
<eo:ToolBarItem .... />
....
</Items>
....
</eo:ToolBar>
The following is invalid:
Code: HTML/ASPX
<eo:ToolBar ....>
....
<Items>
....
<ToolBarItem .... />
....
</Items>
....
</eo:ToolBar>
Note in the invalid version ToolBarItem does not start with "eo:". Any other regular HTML will cause this error as well. For example:
Code: HTML/ASPX
<eo:ToolBar ....>
....
<Items>
....
<h>anything</h>
....
</Items>
....
</eo:ToolBar>
Remove the invalid markup should correct the error for you. Thanks
|
Rank: Advanced Member Groups: Member
Joined: 2/27/2010 Posts: 69
|
Thanks for that info, but a close review indicated that was not the problem.
What I have discovered, however, it that for many controls I MUST include an explicit version reference.
This will not work: <%@ Register assembly="EO.Web" namespace="EO.Web" tagprefix="eo" %>
It must be this: <%@ Register assembly="EO.Web, Version=9.0.15.2, Culture=neutral, PublicKeyToken=e92353a6bf73fffc" namespace="EO.Web" tagprefix="eo" %>
In fact, if I just drag your control onto a page that does not have an EO.Web reference, it adds the second reference, not the first. I've now seen this with both the FileExplorer and the Grid controls.
It would be nice to be able to use the first reference as it would certainly make it easier to update. I've checked my GAC, bin folder, project references, etc. and all point to the current version.
Any ideas as to how I can get the generic reference to work?
Thanks.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
That's actually an interesting observation. We do not know why Visual Studio will insert the exact reference to your page. We have never seen it happening and we do not know how to switch it back. You might want to try to reset Visual Studio settings and see if that helps. If you have an active MS support contract, you may want to ask them as well. We cannot think of anything on the control side that would affect this behavior. If you find out anything please let us know!
Thanks!
|