After adding a user control I was getting the error that the user control is not a known element.
Tag is: [CODE=asp] <%@ Register TagPrefix="uc" TagName="uc_nam e" Src="~/folder/filename.ascx" %> [/CODE]
Added in code as: [CODE=asp] <uc:uc_name ID="userControl 1" runat="server" /> [/CODE]
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\ReflectedSche mas. I hit Crtl-A and then Delete.
As always, delete files at your own risk. I hope this helps.
Tag is: [CODE=asp] <%@ Register TagPrefix="uc" TagName="uc_nam e" Src="~/folder/filename.ascx" %> [/CODE]
Added in code as: [CODE=asp] <uc:uc_name ID="userControl 1" runat="server" /> [/CODE]
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\ReflectedSche mas. I hit Crtl-A and then Delete.
As always, delete files at your own risk. I hope this helps.