This line is not compiling
this.CrystalReport11 = new ExpenseReport.CrystalReport1();
I am on visual studio 2010 and am having this problem when adding a crystal report to my app. I have changed the framework from .net 4 client profile to just .net 4 and I have added this line
<startup useLegacyV2RuntimeActivationPolicy="true" >
to the app.config but still have the problem. This is not happening when I create a new app from scratch.
Any help would be appreciated. Thanks
I posted this on the SAP forum as well and they could not offer a solution either. The only way I found to fix this issue was to rebuild the application and changing it to full dotnet 4 framework from the start. It seems that working on the app and switching it from client profile later on is what caused the problem.
Solution: If you are going to use crystal reports change your framework before you start your app!