Why is JustCode reporting an Error with this code?

Thread is closed for posting
2 posts, 0 answers
  1. Robert
    Robert avatar
    253 posts
    Member since:
    Aug 2007

    Posted 13 Sep 2014 Link to this post

    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?


  2. Svetlozar
    Svetlozar avatar
    294 posts

    Posted 17 Sep 2014 Link to this post


    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!


    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.

Back to Top