Click here to Skip to main content
15,891,316 members
Please Sign up or sign in to vote.
1.67/5 (2 votes)
See more: , +
Hi,
So I was working on a big old project, already containing UserControls working just fine,
in the middle of working on a new form I added, one of the times I tried to build my application I got the following error !!

Warning	1	Could not find type 'Task.DateSelector'.  Please make sure that the assembly that contains this type is referenced.  If this type is a part of your development project, make sure that the project has been successfully built using settings for your current platform or Any CPU.		0	0	


I'm using VS2010 .Net Framework4, target CPU x86 (I already tried to change these 2 options but it wasn't a solution for this case).

I assure you I didn't do anything with the control class, it's still the same as I took it, and the project was running all day, I don't know what caused this at all. I can take the original copy of the project and redo my work, easy, but I hope someone has a solution for this, it BUGS me!

Thx in advance
Posted
Updated 11-Nov-13 5:46am
v2
Comments
AJ_Smit 11-Nov-13 10:45am    
Ok so uhm can you post a part of the code including the Imports part?
Sergey Alexandrovich Kryukov 11-Nov-13 11:07am    
You certainly changed something and you don't know what. Not enough information.
Here is the lesson to learn: you should not do any development without the use of some Revision Control System.
You should commit each and every essential step, to be able to trace your steps back in case of any problem.
Before you do it, you don't really own your code. :-)
—SA
saleem_deek 11-Nov-13 11:39am    
100% true

Not enough information. Please see my comment to the question.

All I can advice is: stop doing what you are doing and start using some Revision Control System right away. It could be open-source, free of charge, extremely light weight, unobtrusive and reliable. Please see my past answers:
Revision control systems, which to choose from?[^],
Needs some words of wisedom to set up and/or use a server[^],
Make an unclickable form[^],
How can i structured to arrange source code when i create a new solution[^],
Reviews at Apache Subversion[^],
The associated source control plug-in is not installed or could not be intiialized[^],
problem using svn command[^],
Best way to manage different software editions?[^].

Again, if you don't have a tool to trace all your steps back, you don't really own your software, can screw it up at any moment of time.

—SA
 
Share this answer
 
Comments
saleem_deek 12-Nov-13 1:45am    
Please check what is the cause of the error in my solution, and let me know if you have an idea why was it happening! Thx :)
I can think of two reasons for this.

First, if the control is in a different assembly, make sure that it is referenced. It must be included in the list of references, and then included either globally (on the same project tab where you included the reference) or locally, using the Include directive.

First and a half, if you have made updates to the assembly containing a control, you may need to dereference it and re-add it.

Second, if the control is in the same assembly, it may be in a different namespace. If that is the case, make sure you include that namespace.
 
Share this answer
 
Ok this is, as expected, my curiosity fault!
I have added earlier in my project a rdlc report,
and in this report I have to group my data, when I clicked on the main field,
I noticed in its property "HideDuplicates" an added option "Details", although
I don't have a group named Details, but I selected it to see what would happen.
And this is my mistake !!!

I selected None for HideDuplicates and rebuilt my project, and it's working again now.

It's still weird that this error in this rdlc report is causing my usercontrol not to be loaded and my project not to be built :S

I hope this would help someone curious one day.
Thx
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900