Click here to Skip to main content
15,893,266 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
After debugging my code i get this error:

Could not load file or assembly 'Facebook.Web' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

Can any one help me to solve this.
Thanks in advance
Posted
Comments
DominicZA 25-Jul-11 3:34am    
Where are you getting the Facebook.Web assembly from? Is it an assembly you have made or is it one that you downloaded elsewhere?
sahabiswarup 25-Jul-11 8:44am    
i download it from net

You are trying to reference an assembly that was build for a runtime this is newer than the one your project uses. For example, if the referred assembly is build using .NET 4.0 and your project is using .NET 3.5, you'll see this error. You'll have to upgrade your project to the Framework version that matches the referred assembly's Framework version.
 
Share this answer
 
Comments
Uday P.Singh 25-Jul-11 4:24am    
correct answer my 5!
Change .Net Framework Version.
 
Share this answer
 
Comments
sahabiswarup 25-Jul-11 4:31am    
how can i change that version?

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