Click here to Skip to main content
15,894,907 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends......

I have added a reference of a System.Windows.Forms.Ribbon.dll.
but when i build or Execute code then reference is removed
and compiler shows error Are you missing assembly reference.

When i check in Solution Explorer its reference is shown there.
but it is showing this problem.

When i delete this Reference and again add then it remove errors from error list.
but, again when i run it is again showing same Problem.
Posted

Quite similar problem here http://stackoverflow.com/questions/8791606/when-compiling-app-it-removes-references[^] perhaps the same solution helps in your case.
 
Share this answer
 
Comments
VJ Reddy 17-May-12 8:18am    
Good reference. 5!
Wendelius 17-May-12 8:35am    
Thanks
When I've seen this type of problem in the past, it's normally down to project configuration, specifically, targetting the wrong version of the .NET runtime. Make sure that you have set the target framework to .NET Framework 4 or .NET Framework 4 Client Profile.
 
Share this answer
 
Comments
VJ Reddy 17-May-12 8:18am    
Good answer. 5!
Pete O'Hanlon 17-May-12 8:29am    
Thanks. I was hit with this one once when someone on my team decided to move the project from .NET 4 to .NET 3.5.

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