Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi I used a control in vs 2008 without any problem,but now when i wanted to use it in vs 2010 a problem occured.I will have this error: Could not find a type for a name. The type name was ;FreeControls.PersianDate, Version=2.53.0.0, Culture=neutral, PublicKeyToken=null'Please help me!
Posted

1 solution

You've probably used a third party control that can't be found in your updated project. Try looking under "References" in the project tree in the Solution Explorer. One of the references will probably be marked with a yellow warning triangle, like THIS[^], .

That's because a reference is broken. If you click the missing reference, you can see in the property explorer what file it is it can't find.

You need to remove the broken reference and add a new one with the correct file path by right clicking the project node and selecting "Add reference".

After that, the project should build as usual.

Also, THIS[^] might be of help to you!
 
Share this answer
 
v4
Comments
Ehsan Mashkouty 27-Jun-13 5:14am    
thanks for your reply,but the control has been added by code,it's not dll or referenced to project.
Johnny J. 27-Jun-13 6:10am    
Then it's a little harder. There can be many reasons;

The dll containing the code doesn't build properly?
The control namespace has changed?
You're missing a using?

Or something completely different. You're the only one who can solve the problem because we can't see all your projects and all your code.

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