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

ASP.NET tags - False error

4 Answers 79 Views
Code Analysis
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dave
Top achievements
Rank 1
Dave asked on 09 Apr 2012, 02:33 PM
I am working with a project that has a bunch of user controls in it.  I recently merged this over to a new branch and since doing that the new branch is getting tons (1205) false positive errors.  The errors read "ASP.Net tags: File not found" and "ASP.Net tags: ASP.net tag uc:customcontol not registered" .  I have verified that the file does exist and it exists in the specified location.  Any ideas why I am now getting all these errors where I wasn't before?

4 Answers, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 12 Apr 2012, 01:50 PM
Hi,

Thank you for your feedback. We have seen a similar to the "File not found issue" when the file is a linked one. Is that your case as well?
As for the second one - we were not able to reproduce it. Could you send us a sample solution that reproduces this issue.
Another thing you could do is to refresh the code analysis from the JustCode menu to see whether the errors are still shown.
That way we will be able to find the reason and fix it as soon as possible.
Thank you for your help!

Kind regards,
Ivan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Andrew
Top achievements
Rank 1
answered on 01 Aug 2012, 01:34 PM
Hi,

I can confirm the reported problems (using Visual Studio 2010 with JustCode 2012.2.719.1)

We have the scenario that user controls are in a separate project than the actual web site.
All controls are registered via web.config file as described by ScottGu - http://weblogs.asp.net/scottgu/archive/2006/11/26/tip-trick-how-to-register-user-controls-and-custom-controls-in-web-config.aspx

web.config:
<add tagPrefix="uc" tagName="UIKeywordLocationSearch" src="~/UIComponents/UIKeywordLocationSearch.ascx"/>

*.aspx file:
<uc:UIKeywordLocationSearch ID="Search" runat="server"></uc:UIKeywordLocationSearch>

Gives me the following output in JustCode error window:
ASP.Net tags: ASP.net tag uc:UIKeywordLocationSearch not registered    *.aspx    Website    32    5    ASP.Net tags

Your suggestion to refresh the code analysis doesn't improve the situation and gives same amount of JustCode errors.


Regards
0
Ivan
Telerik team
answered on 09 Aug 2012, 07:28 AM
Hi,

Thank you for your feedback and sorry for the late reply. I tried to reproduce your issue, following the steps you gave me, but I was not able to.
Could I ask you to send me a sample solution that reproduces this issue?
Thank you for your help!

Kind regards,
Ivan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Mustafa
Top achievements
Rank 1
answered on 20 Oct 2013, 09:20 PM

All controls are registered via web.config.

i did it. i survive!

Tags
Code Analysis
Asked by
Dave
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Andrew
Top achievements
Rank 1
Mustafa
Top achievements
Rank 1
Share this question
or