473,465 Members | 1,960 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

one possible solution to error: [UserControl] is not a known element

denny1824
32 New Member
After adding a user control I was getting the error that the user control is not a known element.

Tag is:
Expand|Select|Wrap|Line Numbers
  1.  <%@ Register TagPrefix="uc" TagName="uc_name" Src="~/folder/filename.ascx"  %> 
Added in code as:
Expand|Select|Wrap|Line Numbers
  1.  <uc:uc_name ID="userControl1" runat="server" /> 
The user control shows on the page as expected, but the IDE intellesence marks the TagName in the code as being not a known element.

While searching for an answer, I found a lot people with this same problem but no solutions.

My solution was to clear the intellesence cache. I have windows XP. I went to:
c:\Document and Settings\[myUserName]\Application Data\Microsoft\VisualStudio\8.0\ReflectedSchemas. I hit Crtl-A and then Delete.

As always, delete files at your own risk. I hope this helps.
May 5 '08 #1
0 1359

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Tim Mulholland | last post by:
Hopefully someone can point out what is going on here. I'll give a short explanation first, then a more detailed one at the bottom if anyone wants to dig into it more. I have a strongly-typed...
4
by: wtsnet | last post by:
I've got a usercontrol created on the fly using XSLT: <%@ Control Language='vb' AutoEventWireup='false' Codebehind='DynamicContent.ascx.vb' Inherits='System.Web.UI.UserControl'...
18
by: Microsoft | last post by:
When I try this in my code I alwas get an errormessage: "Object reference not set to an instance of an object" Dim g As System.Drawing.Graphics g.DrawString("Test", New Font("Arial", 12,...
41
by: JohnR | last post by:
In it's simplest form, assume that I have created a usercontrol, WSToolBarButton that contains a button. I would like to eventually create copies of WSToolBarButton dynamically at run time based...
2
by: Kym | last post by:
I have an application which dynamically inserts a UserControls at run time. When I instansiate the UserControl I need to pass it an object however I am getting errors like... 'Value of type...
3
by: M Noreen | last post by:
I'm unable to build a web project that has a custom .NET control that I downloaded (from: http://blogs.msdn.com/dmitryr/archive/2006/03/26/561200.aspx) I'm running VS 2005, ASP.NET 2.0 on my...
5
by: patrin | last post by:
Hi All, given the source document: <?xml version="1.0" encoding="UTF-8"?> <root> <child> <test id="1" name="first child"/> </child> <child>
0
by: hirebrian | last post by:
If you run accross the error message: "Element '%' is not a known element. This can occur if there is a compilation error in the Web site" where '%' is the value of the tagName attribute on a...
0
by: Arthur Milfait | last post by:
hey there, i'd like to do some wild thing like this: imagine a simple page with a navigation menu and an iframe. clicking on links in the menu loads the according page in the iframe. the menu...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.