This is a migrated thread and some comments may be shown as answers.

[Solved] RadTreeNode null on postback

2 Answers 116 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 16 May 2008, 04:34 PM
OK,

I've developed an application, part of which is using a RadTreeView, together with RadAjaxManager and RadUpload to form a basic file manager.

Everything works fine on my local machine (VS2008 and Cassini).

When I upload to the production or staging server (Win 2003 / IIS 6) nothing works!

The first problem is the RadUpload control appears to upload files (ie. the Upload progress panel does its thing) but the uploaded file doesn't make it onto the server. No errors or anything shown though.

Secondly, The treeview has a context menu so right-clicking on a file allows the user to rename or delete. If I click on delete, I get a null reference exception when it tries to access (RadTreeViewContextMenuEventArgs) e.Node.Text in the server-side ContextMenuClick event. If I click on rename, the server-side NodeEdit method should ultimately fire, but doesn't appear to?

I've checked the NETWORK SERVICE account has permissions on everything; hell, to rule out permissions I even gave the "Everyone" full control :)

I've tried disabling AJAX on the AjaxManager, I've tried removing the AjaxManager all together and still no joy.

Any ideas?

Thanks

2 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 19 May 2008, 12:32 PM
Hello MattWorrall,

This case is too complex to be able find the causes of the problems judging by the description only.

Could you open a formal support ticket and send us a sample application which exhibits the issues when deployed on Win2003 Server / IIS 6.0. We will investigate it right away and will try to find a solution/workaround.

Regards,
Simon
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
John
Top achievements
Rank 1
answered on 20 May 2008, 09:36 AM
Well after sitting back, chilling out and going back to first principle, I fixed it :)

A stupid schoolboy error too. The virtual directory was inheriting enableViewState=false from the web.config of the parent site! Bizarrely it only seemed to be an issue on this part of the app, but there you go!
Tags
TreeView
Asked by
John
Top achievements
Rank 1
Answers by
Simon
Telerik team
John
Top achievements
Rank 1
Share this question
or