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

Hmm ... General Stuff

7 Answers 74 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
James Green
Top achievements
Rank 1
James Green asked on 06 Sep 2010, 11:02 AM
I've just installed JustCode, I've gotten rid of one of the initial problems and now my (fully working) solution is producing over 80 errors ...

"The type string is defined in an assembly that is not referenced"
"The type int is defined in an assembly that is not referenced"
"The type bool is defined in an assembly that is not referenced"

These 'problems' are in ASP.NET pages and controls which I have told JustCode not to analyse ... so far I'm really NOT liking JustCode ...

How do I 'fix' these non-problems? And actually get JustCode to start helping rather than being a hinderence?

Thanks in advance,

James.

7 Answers, 1 is accepted

Sort by
0
Tsviatko Yovtchev
Telerik team
answered on 10 Sep 2010, 09:03 AM
Hi James,

 Sorry to hear about your trouble. That's not how JustCode normally behaves. As a matter of fact that is probably the first time we hear about such a problem. 

We'll need some more information to be able to help you. First, I am not quite sure I fully understand your setup. You excluded some files from analysis and you are still getting errors in them. Is that right? 

We are really after fixing issues like these. Rather unfortunately, I could not reproduce it locally. So you must be doing something different than what I do. Could you send over a small sample project that demonstrates this behavior? If that's not possible a couple of screenshots of your JustCode exclude file filter and the error window entries would be of some help, too.

Once again, sorry about your trouble. We'd definitely like to fix any issue you might have encountered.

Kind regards,
Tsviatko Yovtchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Seth Morecraft
Top achievements
Rank 1
answered on 24 Sep 2010, 04:11 PM
Hi Tsviatko,
  I have seen a similar issue the first time today actually.  I have been using JustCode under VS2010 for a while now and it has been running fine.  Now today I opened up a solution and I am getting the exact errors that James has below.  Let me explain the differences to see if it helps at all:

- Using .NET 3.5 MVC2 projects, I get no problems, ever.

- Todays project was a .NET 4.0 MVC2 project and now I have over 1000 errors such as:
The type string is defined in an assembly that is not referenced
string, object, long, bool, int (you get the idea, all primitives)

So, I tried adding the System namespace to my web.config to try and make it happy, but no such luck.  The errors all come from .aspx files, not actual code files, so I am guessing it is something with the asp.net parse engine in JustCode when using .NET 4.0.  I can't give you this sample example, but I will try and reproduce it with a smaller project and let you know.  Maybe this will help you find the problem- thanks!
Seth
0
Tsviatko Yovtchev
Telerik team
answered on 27 Sep 2010, 01:20 PM
Hello Seth Morecraft,

 Thanks for getting back to us on that issue.

It'd be really nice if you come up with that sample project. Meanwhile we'd be more than happy to have a look at your project, solution and web.config files. Is that gonna be possible? You could just start a ticket and attach these there so that they are not available to the general public.

Kind regards,
Tsviatko Yovtchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Seth Morecraft
Top achievements
Rank 1
answered on 28 Sep 2010, 03:59 PM
Hi Tsviatko,
  Yes, I cannot seem to reproduce the issue once I strip the project down, so I am not sure what exactly is causing this to happen.  It must be some reference that is causing it and I will keep looking.  I will probably open a ticket with my project so you can see what is going on if it would help.  I'll let you know- thanks!
Seth
0
Seth Morecraft
Top achievements
Rank 1
answered on 28 Sep 2010, 05:51 PM
Actually, I just installed the 9/27/10 internal build release and the problems are gone, so something in that fix too care of this is seems.  Thanks!
0
SSDApplications
Top achievements
Rank 2
answered on 22 Oct 2010, 05:06 PM
I'm using the current version of JustCode (2010.2.826.2) and I'm getting the same thing in a standard asp.net 4.0 web application.  I get this error ('[object] is defined in an assembly that is not referenced') every time I reference any code behind in an aspx or Master page.  For example, I use this code for my loading panel (which I believe came right out of your sample code):
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"
        Width="75px" Visible="false">
        <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="margin-top:1px;margin-left:-120px;border:0;" />
    </telerik:RadAjaxLoadingPanel>

JustCode gives me this error, and red-lines the reference "Page":

"C#: The type 'System.Web.UI.Page' is defined in an assembly that is not referenced."

I get a lot of those type of errors, and none of them are valid... 

I don't know that I have time to build a sample solution, I can't upload the web app I'm working on.  It would be nice if it just worked.  I can go back to Resharper is necessary, but I'd prefer to use JustCode if you can work out some of these issues...

Thanks!
0
Tsviatko Yovtchev
Telerik team
answered on 26 Oct 2010, 12:56 PM
Hello Eddie,

 Could you try out the 9/27/10 internal build, too? Or even better the latest internal build. The chances are this problem has already been fixed. 

We aer also due to release an official version in two weeks so you might check that one out, too if you prefer not to install internal builds.

Greetings,
Tsviatko Yovtchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
James Green
Top achievements
Rank 1
Answers by
Tsviatko Yovtchev
Telerik team
Seth Morecraft
Top achievements
Rank 1
SSDApplications
Top achievements
Rank 2
Share this question
or