Click here to Skip to main content
15,887,175 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am using crystal report for visual studio 2010 and using windows 7 64 bit.when i run the project ...following error comes


Could not load file or assembly 'file:///C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll' or one of its dependencies.

i serached in google and performed following steps


XML
1.First, set your framework to 4.0 full, not the client. CR requires access to the full framework.
 2.Then add this to your app.config:
   <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
  </startup>





butgetting the same error.pls tell as i need to add report urgently
regards
Posted
Updated 29-Apr-13 20:32pm
v2

try this....
XML
<startup useLegacyV2RuntimeActivationPolicy="true">
        <supportedRuntime version="v4.0"/>
</startup
 
Share this answer
 
Have you installed the 32bit runtime? And is your program set to compile to "Any CPU" or have you chosen a specific one? If you haven't chosen one, try setting it to x86.
 
Share this answer
 
Comments
shivani 2013 30-Apr-13 4:14am    
pls tell where to set compile to "any CPU" or X86.There is Build -> platform target .i have set it to X86
Pheonyx 30-Apr-13 4:29am    
That is where. By the way, if you browse to C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\ I'm assuming the file crdb_adoplus.dll is actually there yes?

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