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

Why is JustCode reporting an Error with this code?

1 Answer 50 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.
Robert
Top achievements
Rank 1
Robert asked on 13 Sep 2014, 11:23 PM
I have a particular module in my ASP.NET 4.0 Web Forms app that is stored with this folder structure:
  - root
      - DataEntry
          - dataEntry.aspx
              - UserControls (folder)
                  - GeneralInfo.ascx
                  - GeneralInfo.ascx.cs

The first line of of the GeneralInfo layout code page is this:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="GeneralInfo.ascx.cs" Inherits="DataEntry.UserControls.GeneralInfo" %>

And the namespace in the C# code file has this namespace:
namespace DataEntry.UserControls

JustCode is giving me this error: C#: Unknown type 'UserControls' of 'dataEntry'

I don't see what's wrong with what I've done but I even changed the code to nested namespaces, "DataEntry" & "UserControls".  That did not remove the JustCode error.

So why is JustCode reporting this as an error and what would be Telerik's recommendation for how I restructure it to avoid the error?

Robert


1 Answer, 1 is accepted

Sort by
0
Svetlozar
Telerik team
answered on 17 Sep 2014, 04:00 PM
Hello,

Thank you for your feedback!


We couldn't reproduce the issue on our side. We will really appreciate it if you could isolate the problem in a sample solution and send it over. You can open a support ticket and attach the project.

Thank you in advance for your assistance!

Regards,
Svetlozar
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Code Analysis
Asked by
Robert
Top achievements
Rank 1
Answers by
Svetlozar
Telerik team
Share this question
or