Welcome Guest Search | Active Topics | Sign In | Register

Getting started with TreeView Options
ron
Posted: Wednesday, December 2, 2009 12:31:50 PM
Rank: Member
Groups: Member

Joined: 12/2/2009
Posts: 23
I just downloaded and installed your controls. I added the TreeView to a page and this has caused problems.

VS2008 no longer updates the designer page when I make changes. This is a problem by itself and there is no definition for the treeview control, so I can not access it programically.

eo_support
Posted: Wednesday, December 2, 2009 12:39:37 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I do not think this is a TreeView problem, but you can follow these steps to get it back to normal:

1. Go to solution explorer;
2. Expand the page that has the TreeView. You should see a Designer.cs/.vb file. For example, if the page is Page1.aspx, you should see Page1.designer.cs/.vb;
3. Delete Designer.cs/.vb file;
4. Right click the page (Page1.aspx), then select "Convert to Web Application" from the context menu;

If it is successful, then it should re-generate the designer.cs/.vb file for you. If it fails, it should display you an error message, which usually would complain about something wrong in your page. You would then correct your page based on the error message and try again.

Thanks!
ron
Posted: Wednesday, December 2, 2009 12:55:18 PM
Rank: Member
Groups: Member

Joined: 12/2/2009
Posts: 23
This produces an error unknown server tag eo:TreeView

HTML:
<%@ Register assembly="EO.Web" namespace="EO.Web" tagprefix="eo" %>
<table class="TableBody">
<tr>
<td rowSpan="4">

<table class="TableBody" border="2">
<tr>
<td><asp:Panel ID="pnlCategories" runat="server" Height="450px" Width="450px" ScrollBars="Auto">
<eo:TreeView ID="tvCategories" runat="server" ControlSkinID="None" Height="250px"
Width="200px">
<LookNodes>
<eo:TreeNode CollapsedImageUrl="00030301"
DisabledStyle-CssText="background-color:transparent;border-bottom-style:none;border-left-style:none;border-right-style:none;border-top-style:none;color:Gray;padding-bottom:1px;padding-left:1px;padding-right:1px;padding-top:1px;"
ExpandedImageUrl="00030302" ImageUrl="00030301" ItemID="_Default"
NormalStyle-CssText="PADDING-RIGHT: 1px; PADDING-LEFT: 1px; PADDING-BOTTOM: 1px; COLOR: black; BORDER-TOP-STYLE: none; PADDING-TOP: 1px; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BACKGROUND-COLOR: transparent; BORDER-BOTTOM-STYLE: none"
SelectedStyle-CssText="background-color:#316ac5;border-bottom-color:#999999;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#999999;border-left-style:solid;border-left-width:1px;border-right-color:#999999;border-right-style:solid;border-right-width:1px;border-top-color:#999999;border-top-style:solid;border-top-width:1px;color:White;padding-bottom:0px;padding-left:0px;padding-right:0px;padding-top:0px;">
</eo:TreeNode>
</LookNodes>
<TopGroup Style-CssText="border-bottom-color:#999999;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#999999;border-left-style:solid;border-left-width:1px;border-right-color:#999999;border-right-style:solid;border-right-width:1px;border-top-color:#999999;border-top-style:solid;border-top-width:1px;color:black;cursor:hand;font-family:Tahoma;font-size:8pt;padding-bottom:2px;padding-left:2px;padding-right:2px;padding-top:2px;">
<Nodes>
<eo:TreeNode ItemID="-1" Text="Unassigned" Value="-1">
</eo:TreeNode>
<eo:TreeNode ItemID="0" Text="Categories Root" Value="0">
</eo:TreeNode>
</Nodes>
</TopGroup>
</eo:TreeView>
...
eo_support
Posted: Wednesday, December 2, 2009 1:02:48 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

That usually occurs when Visual Studio is not able to load EO.Web.dll due to permission issues. Please check:

1. Whether your project is on a network drive instead of a local drive;
2. Try to run the page and see if it gives you a detailed error or call stack;
3. Try to add EO.Web.dll into GAC and then update both your toolbox and project to reference the DLL from GAC. See here for more information about adding the DLL into GAC:

http://doc.essentialobjects.com/library/1/installationanddeployment/gac.aspx

Note you may need to install Microsoft .NET Framework SDK in order to have the "Microsoft .NET Framework 2.0 Configuration" tool.

Here for information about adding the DLL into Visual Studio's toolbox manually (you can deleting the existing one and then re-add them):

http://doc.essentialobjects.com/library/1/installationanddeployment/install.aspx

Please let us know if that resolves the issue.

Thanks!
ron
Posted: Wednesday, December 2, 2009 1:14:34 PM
Rank: Member
Groups: Member

Joined: 12/2/2009
Posts: 23
1. Project is on local drive
2. Running page gave license error. I applied the free template. Page now displays without error. I still can not convert to web app.
3. Due to our deployment scheme, the GAC is not an option.
4. the link to manually readd gives a blank screen below your banner.
eo_support
Posted: Wednesday, December 2, 2009 1:28:31 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

As to the issues:

1. How do you access your project? Through file system or through an Url? It appears that you are loading it through an Url and that will almost surely lock the permission down;

2. The license error message does not matter. It's just a message and nothing more. It should not affect how Visual Studio loads the DLL or how the TreeView behaves at runtime. In another word, all features should work without a license, except that it randomly displays a license warning message;

3. Adding GAC is only for you own development machine, not for production machine. It is purely to satisfy Visual Studio and it has nothing to do with deployment. Many component vendor's setup program automatically add the controls into GAC without asking when you install them. Our installer doesn't do that. But if you run into permission issues, you can do that manually. As it appears that you are loading your project through a Url, it's almost certain that the issue you are having is a permission issue and you will need to add the DLL into GAC on your development machine because DLLs in GAC automatically receives full trust permission;

4. The same help file is available on your local machine at Start -> Program Files -> EO.Web Controls 7.0 (2009) -> EO.Web for ASP.NET 2.0 & 3.5 -> Documentation.

Hope this helps.

Thanks!
ron
Posted: Wednesday, December 2, 2009 1:44:36 PM
Rank: Member
Groups: Member

Joined: 12/2/2009
Posts: 23
Re-installing treeview manually into the toolbox did the trick... VS is much happier now
eo_support
Posted: Wednesday, December 2, 2009 1:48:21 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Great. Glad that the issue is resolved. Thanks for the update!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.