views:

1434

answers:

4

I've got trouble getting Intellisense to work in ASP.NET source view.

For example, I register the Telerik RadControls DLL with a tag prefix, as it says in the samples:

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

But when typing <telerik: no intellisense appears.

Also, after adding a couple of controls, they get highlighted with the error "Unrecognized tag prefix or device filter 'telerik'". This is pretty annoying and I can't seem to find a solution.

Btw, the webpage itself works - its just the Intellisense that doesn't.

A: 

Does your entire project compile? Intellisense often breaks if there are compile errors elsewhere (even compile errors in other pages).

Martin Peck
Yes, the solution builds and runs just fine...
JacobE
A: 

ctrl + space is a shortcut to trigger it ...

probably won't help but at least you will know that the problem is probably with intellisense not being able to find its data.

do you get intellisense for other classes still?

John Nicholas
A: 

Intellisense may fail for various reasons so I am going to ask you a few questions:

  1. Does design time work as expected?Sometimes if the design-time assembly is not loaded intellisense may fail.
  2. Do you work on a remote drive by any chance? We have found issues with that as well. The remote drive needs to be added as a trusted location for assemblies.
  3. If you are using an older version of RadControls you need to add reference to Telerik.Charting.dll as well. Which version do you use?
  4. Finally we have found that upgrading to Visual Studio 2008 SP1 solves lots of problems. I strongly recommend you upgrade if not already.
korchev
A: 

I noticed a general problem with intellisense in VS2008 (with SP1). As they started supporting JS intellisense a lot of things became slower - or not working sometimes.

I know the describe problem - not only with telerik controls, I also know it from other (and my own) control libraries. Most of the time a rebuild - close of all pages, and restart of VS solves the problems for me.

My special problem (I guess it matters) is that I use a German release of VS2008. But also other things rule (from my experiences): The size of the project (somewhere above 50 pages things become worse). The time I had to kill an app while debuging :) General the time (in a session) I work on a project.

A last tip (which may help) I feel less problems when I add a ref to the controls directly in web.config. Additionally it frees me from havin the register directive on every page.

It looks like this:

<controls>
<add assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagPrefix="telerik" />
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions,

HTH

Manfred

ManniAT