Friday, May 6, 2011

The referenced assembly could not be resolved because it has a dependency on System.Data.OracleClient

Received the following build error:
The referenced assembly "xxx" could not be resolved because it has a dependency on "System.Data.OracleClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider re-targeting your project.

This build error is caused by the project is targeting .NET Framework 4.0 Client Profile and references to an assembly, which has indirect reference on System.Data.OracleClient.dll that is not included in the .NET Framework 4 Client Profile.

To fix such errors, you can either remove the incorrect assembly reference from the project, or set the project to target to full .NET Framework version 4 instead of .NET Framework 4 Client Profile.

To change the target setting, go to “Project -> Project's Properties -> Application Tab”, and then change to appropriate Target Framework options.

8 comments:

Anonymous said...

Really good post!

Anonymous said...

Nice and thanks!

Ecommerce Templates on July 7, 2011 at 7:59 AM said...

thanks!!!

Anonymous said...

Pleasant Post. This record helped me in my school assignment. Thanks Alot

Satish on October 21, 2011 at 1:07 PM said...

Thank you very much dear that was a great help thank you .

Satish on October 21, 2011 at 1:08 PM said...

Thank you dear that was a great hep
Thank you

Raja said...

Thanks a lot.. works good.

Anonymous said...

thanks alooooooooot........

 

Get paid for your opinions! Click on the banner above to join Planet Pulse. Its totally free to sign up, and you can earn UNLIMITED. Find out more by visiting PLANET PULSE.
Sign up for PayPal and start accepting credit card payments instantly. http://www.emailcashpro.com
July Code Blog Copyright © 2010 Blogger Template Designed by Bie Blogger Template