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

Element '[xxx]' is not a known element?!

6 Answers 460 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ahrensberg
Top achievements
Rank 1
Ahrensberg asked on 26 Oct 2009, 12:21 PM
Hi guys,

I'm often get the "Element '[xxx]' is not a known element"-warning in VS 2008.

I have added the line beneath, the site built and all works fine, but there is just no intellisense.

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

I've found the thread which probably should be the same problem, but since it is recommend in another thread (which I can't found now) not to do it this way and I besides this doesn't know where to find my PublicKeyToken, I wan't to hear if there are any other ideas.

Some times the intellisens is there and some times it isn't.

6 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 26 Oct 2009, 01:46 PM
Hi Ahrensberg,

Does the Bin folder and the Telerik assembly resides locally on your machine?

The problem can occur if the files are on a shared network location. 

Kind regards,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Ahrensberg
Top achievements
Rank 1
answered on 26 Oct 2009, 01:52 PM
Hi Veselin,

Yes, both bin-folder and Telerik assembly resides locally...?

Best regards,
Kenneth
0
Veselin Vasilev
Telerik team
answered on 29 Oct 2009, 11:38 AM
Hi Ahrensberg,

Do you use 2009.2.826 version? Please make sure there are no references to any older versions.
Also, check for any references to the Telerik.Charting assembly - you do not need these. 

All the best,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
TonyG
Top achievements
Rank 1
answered on 01 Dec 2009, 08:46 AM
This seems to be a very common topic but the answers we see are always in terms of solutions to specific issues, without a definitive document somewhere stating "here is how Telerik Corp recommends the environment to be configured". Most web pages and forum postings here tell how to change from v1 to v2, and it's very difficult (impossible?) to filter out old and useless information on this site from that which is current and pertinent.  I wish we could include our version like "2009.3" in searches and just get results that apply to the current release, before we start to back-track through lots of pages of results of issues that don't apply to current releases anymore.

OK, back on topic:  I used to put Register tags in all of my pages, but of course upgrading that is a royal pain.  I uninstalled the 2009.2 trial when I bought 2009.3, removed all the Register tags, and use the Upgrade context menu option to upgrade my VS project.  I also have squiggly lines all over my ASPX markup now, and "not a known element" errors.  After install of 2009.3 I find Telerik.Web.UI 2009.2.701.20 is still in the GAC. The assembly reference in my project points to the install directory (Bin35), where the DLL is 2009.3.1103.35 .

Should I GAC the DLL to avoid explicit versioning in Register tags?
Why is the old version still in the GAC but the new version isn't?
Should web.config include explicit version information under system.web/pages/controls/tagPrefix="telerik"?
I can make guesses but I'd rather see this info in a page dedicated to proper configuration for the current product.

Thanks for your time.

(Edit: BTW, I did GAC my 2009.3.1103.35 DLL and provide full version info at tagPrefix="telerik"... and the sqigglies are gone and IntelliSense is back, etc) I just don't know if that's the right solution or why the environment doesn't set that up for us.
0
Schlurk
Top achievements
Rank 2
answered on 01 Dec 2009, 10:18 PM
I know that through most of my uninstalls/installs the GAC references tend to update, but there has been a few times where I had to use the steps outlined in this article in order to ensure that all references were pointing to the latest version. I think this GAC issue is something that occurs when the installer sees everything as OK from the GAC however the replacing step has messed up somehow. Like I said, I've only had to do this a handful of times and the rest of them have been taken care of through the installer.
0
Kevin
Top achievements
Rank 2
answered on 02 Dec 2009, 02:34 PM
I love and 2nd the idea - "I wish we could include our version like "2009.3" in searches and just get results that apply to the current release, "

I love the suggestion and I think it would take some time to get it up and running, but make it a priority for Q2 2010!!

--Kdc

Tags
General Discussions
Asked by
Ahrensberg
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Ahrensberg
Top achievements
Rank 1
TonyG
Top achievements
Rank 1
Schlurk
Top achievements
Rank 2
Kevin
Top achievements
Rank 2
Share this question
or