Hello there,
I downloaded the DynamicPDF Generator Community Edition and i want to use it in Visual Studio 2010. Im using the ceTe.DynamicPDF.40 from the bin folder and add a reference to it in VS 2010. But every time i build or start the solution it gives me the error that a reference is missing. So i re-add the reference again and i can use all the classes from the librairy but as soon as i build the error pops up again.
What could this be??
VS2010 Losing reference at build
Re: VS2010 Losing reference at build
Forum member · Feb 28, 2011Also i get these warnings:
The referenced assembly "ceTe.DynamicPDF.40" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 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 retargeting your project.
The referenced assembly "ceTe.DynamicPDF.40" 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 retargeting your project.
Could someone help me solve this.
Thanks,
Hendrik.
Re: VS2010 Losing reference at build
Support · Feb 28, 2011Hello Hendrik,
Based on the warning messages you are getting, it seems like the target framework for you project is not set to .NET Framework v4.0. Since you are using the DynamicPDF dll that is targeted for .NET framework v4.0, please make sure you set the target framework to .NET v4.0 in your project.
In the solution explorer, right click on the project and click on “Properties”. You will find the “Target Framework” setting in the application tab.
If you are targeting an older version of .NET framework you will need to use the appropriate DynamicPDF dll, for .NET v3.5 use ceTe.DynamicPDF.35.dll and .NET v2.0 use ceTe.DynamicPDF.20.dll.
Thanks,
ceTe Software Support Team.
Re: VS2010 Losing reference at build
Forum member · Mar 2, 2011Thank you!
Problem solved now.
I noticed that the target framework 4.0 Client Profile was selected instead of Framework 4.0.
Greets!
Re: VS2010 Losing reference at build
Forum member · Apr 25, 2012Thanks dude i was struggling 3 hours .now am able to work