"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
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.
Tsviatko Yovtchev
the Telerik team
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
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.
Tsviatko Yovtchev
the Telerik team
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
<
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!
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.
Tsviatko Yovtchev
the Telerik team