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

RadTreeview Control not found in current context

1 Answer 123 Views
Installer and VS Extensions
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 27 Jan 2016, 07:10 PM

I recently upgraded my UI for ASP.NET AJAX using the Telerik control panel. After doing this, my project would no longer compile. My treeview control was "Not found in current context." I was able to view the control in design view and see that it was correctly recognized. Nothing had changed, and yet the error. I've seen this before where Visual Studio somehow gets confused linking the designer and the code behind, and to solve this I've always done the following: I browse Solution Explorer to the ASPX designer page. To be clear, I delete the [My Page].aspx.designer.cs file. Then using Visual Studio, I convert the page to a web application. In Visual studio 2012, you did this by simply right clicking the ASPX file in Solution Explorer and "Convert to Web Application." In Visual Studio 2013, this option moved under the Project menu. But in Visual Studio 2015, although it remains in the same location as VS 2013, it doesn't do anything.

To resolve my "not found in current context" issue, I opened Visual Studio 2012, deleted the aspx.designer.cs file and converted the page to a web application. The new designer file popped right up. I compiled. The project built fine. Next, I opened it in VS 2015. Again I compiled it. And again it worked fine. There is a bug in VS 2015. It won't correctly build the designer file. Hopefully you won't waste hours on this like I did!

1 Answer, 1 is accepted

Sort by
0
Momchil
Telerik team
answered on 28 Jan 2016, 11:18 AM
Hi Kevin,

The Control Panel just installs the selected versions of the products, so it should not modify your projects otherwise. Could you please give more information and describe the exact steps which lead to this behavior and how did you upgrade your project to use the latest UI for ASP.NET version?

Regards,
Momchil
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Installer and VS Extensions
Asked by
Kevin
Top achievements
Rank 1
Answers by
Momchil
Telerik team
Share this question
or