Crystal Reports & Framework 4 (Could not load file or assembly crdb_adoplus.dll)

If you upgrade your project to .NET Framework 4 or for any reason you get a mysterious error like the one below:

“Could not load file or assembly ‘file:///C:\Program Files\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\win32_x86\dotnet1\crdb_adoplus.dll’ or one of its dependencies. The system cannot find the file specified.”

Try inserting the code below at your app.config or web.config file:

<startup useLegacyV2RuntimeActivationPolicy="true">
        <supportedRuntime version="v4.0"/>
</startup>
It seems that microsoft changed the binding procedure and this setting changes that.




Leave a comment ?

231 Comments.

  1. thanks. it works

  2. thanks a ton :D you saved my life !

  3. Works perfect. That saved me a lot.

  4. Thanks!!! Perfect!!

  5. Marvellous! Thank you very much.

  6. Ho man!!! It’s wrok. thank a lot for you help.

  7. Thanks.. It Worked Fine.. Awesome Dude…. :)

  8. ok, muchas gracias

  9. Thanks u r the best

  10. Perfect, perfect!!!

  11. Only i can say thanks for a lot!!! This configuration works very fine :razz:

  12. Thanks !!!!!!

  13. Hi, Spyridon Spyriadis

    Thank you for the information but I have a problem: if Crystal report project isn’t the start project but the start project is another one that references the Crystal report project, the error persists. Can you tell me is you know why is it happened?

    Thank you in advance

  14. Excellent! Thanks

  15. you r god , im try fix this 40hr .thx very very very much

  16. Thank you – nice simple solution!

  17. Thank you… for the third time… looks like i forget every time… :lol:

  18. :wink: , Muchas gracias, ahora trabaja bien.
    Thank you, now work fine.

  19. Rogerio Sampaio

    Muito obrigado pela ajuda.
    Thank you.

  20. Perfect.
    Thank you.

  21. I am not so lucky; in my Windows app; entirely in VS 2010 with ,NET 4.0 the app.config contained already:

    I followed your advice, but the mysterious error remained.

  22. I overlooked the problem with the tags
    the startup section contained already:

  23. one more try:
    supportedRuntime version=”v4.0″ sku=”.NETFramework,Version=v4.0

  24. for VS 2010 with .NET 4.0 add attribute useLegacyV2RuntimeActivationPolicy=”true” to startup tag. for instance:

    2 Spyridon Spyriadis: Thanks a lot! How you find that solution!?

  25. Tnx, u solved me problem

  26. Many many Tanks for the solution of conversion earlier framework to framework4.

  27. gracias…. ;)

  28. Thanks, I was facing too much problem with this. Your help is perfect.

  29. Muchas gracias.

  30. Octávio Piramo

    Muito obrigado

  31. Thank ,, you make me smile ^^

  32. Juan Guillermo

    Muchas gracias!!! Spyriadis… he visto que ha sacado le lios mucha gente… lo felicito por tan grande solución. Gracias.

  33. Thanx alot man…it works.

  34. Thanks man ….. u hero

  35. Perfec man. eres grande, thank you , Muito obrigado.

  36. Gracias mis respetos idolo

  37. i have to thank u… thank you

  38. Thanx alot man

  39. Rohit Kesharwani

    Thanks genius..its working

  40. TOP!!!!

  41. Solução simples!!!
    Parabéns cara!

    Bahia-Brasil

  42. Thanks. Work ok.

  43. I had been battling with MS Report writer to create a master_detail report using subreport; when I couldn’t I tried Crystal Reports and ran into several probs and at last this issue. I couldn’t believe it that my prob disappeared just inserting the attribute to the startup element. Thanks a lot

  44. Thanks…….works fine

  45. Muito obrigado, perfeito… C# app.config…

  46. Hi I tried this, It worked well but after a days when I run my projects It prompts me to download .NetFramework 4.0 . I didn’t make any change in project’s configurations. I faced a very odd situation, I don’t know what should I do.

  47. thenkyou veeeeeeeeeeeeeeeeeery muck

  48. Gracias men!!

  49. Vb .net + crystal report campo di parametro - - MasterDrive.it - pingback on October 17, 2011 at 12:13 am
  50. Tank you very much!!!!

  51. Thanks,It Works..

  52. Thanks sooo much ,it works :)

  53. thank you very very much, I LOOOOOOOOVE UUUUUUU :-*

  54. thanks a lot..
    it’s work..

  55. Tank you very much, :)

  56. Muito Obrigado :)

  57. Your a man… kudos to you a simple but rocks…. its working

  58. thanks…its work for me :)

  59. That for Web application, how about Windows Application (WinForm? where I should specify that parameter?
    Thanks…

    • I don’t know … sorry! Maybe if you created an app.config file?

      • After created app.config file and inserting the code my project gives me 3 messages:
        Could not find schema information for these attributes: useLegacyV2RuntimeActivationPolicy, supportedRuntime,version. I just ignore those messages and the Reports now are running fine…!
        Thanks… ;o)

  60. Muchisimas gracias Spyridon Spyriadis, funcionó !!!! Saludos desde Bolivia.

  61. thanks, works great!

  62. I’ve put this in on other projects…not problem. I’ve added it to my current project and it works fine, but every once in a while after a complete it disappears and I have to go in and add again. Shouldn’t this stay permanent?

    • I haven’t had this problem exactly but instead sometimes my VS2010 installation losses event handlers when playing with the design mode of a windows form. The most propable explanation is a bug, but i cannot find when or why it happens!

      • Thank you for the response.

        I changed my project to use 3.5 instead of 4. I just don’t get it. I’ve got a couple other projects that are on 4 and I have crystal reports and it doesn’t happen to those projects.

        It seems like everything I change the report my config changes. And the weird thing is, it doesn’t update it to the current time, the modified date on the config file is from earlier in the day…like it’s cached some where.

  63. Excelente!! muchisimas gracias!!

  64. muchas gracias, me ha ayudado un buen..
    que dios te bendiga hermano

  65. si funcionó
    Gracias

    Al principio yo batallé para ubicar en donde ponia este nodo de supportedRuntime lo ponia en diferentes lugares y no jalaba …. finalmente lo puse al final del archivo app.config y SI FUNCIONÓ les dejo mi archivo config para que vean en que lugar puse el nodo .

    Saludos
    Halcón Divino
    Monterrey, Nuevo León
    México

  66. Thank you very much. Great help.

  67. you are my lifesaver

  68. thx alot, coool it work ,

  69. thnx Alooooooooooooot :D

  70. Thanks a lot… That´s work perfectly.

  71. Muchas gracias, funciona al 100%

  72. Thanks. SAP is the worst software company in the world and Crystal Report my worst nightmare.

  73. hi sir,
    i got this same problem . i m used ur code in my app.setting but i can’t got output..
    plz help me how to solve this problem
    i not think any idea

  74. thanks.

  75. Elói de Jesus

    Parabéns pelo post! deu certo !
    Brasil

    Congratulations for the post! it worked!
    Brazil

  76. Why can’t we find a solution in msdn website?!

    Thanks

  77. Thank you ^_^

  78. M Ziauddin Tanvir

    tHANKS bROTHER

  79. Thank you very very much, mate. It really helped.

  80. YOU ARE SIMPLY THE BEST!

  81. THANKS!GREAT!!! You saved my life as well!

  82. thank u very Much Spyridon…!!! :)

  83. very very very tank you.you’re survivor

  84. HI there,
    I m facing same error when i trying to tun a .rdl file in crystal reports 9 with the plateform of windows 7 professional.
    Can anybody help me to troubleshoot that problem.
    Thanks in advance.

  85. Hi guy, thanks a lot for the code.
    you saved my life…

  86. Thanks a lot!:)

  87. thanks a lot of.
    very nice..

  88. thanlllllllllllllllll

  89. coooooooool,thanks man

  90. tanx very nice

  91. Thanks a lot

  92. Thank you
    It was great.

  93. You thx lot Tom you are star

  94. Per Malmstedt

    :smile: Works like a charm. Thanx

  95. Ashish Sontakke

    :razz:Thanks u a lot

  96. thanks you. it very great

  97. :razz: Thanks a million!! You rescued me. I was desperate!

  98. thank you very much..!

  99. Ashish Kumar Gupta

    Thanks Spyriadis Newtork

    its very great.

  100. Ashish Kumar Gupta

    Thank you very much.

  101. It is lead me to other problem. CR Engine throw InitializationException. VB.net Windows7 VS2010 CR2010. Thanks

  102. thnxx yar
    :razz: :smile: :grin: :mrgreen:
    it’s help me lot,.. doing good work keep going :arrow:

  103. thak u soooooo much.. very useful

  104. Thank u verry much!! :razz:

  105. Thank u Verryyyyyyyyy Much

  106. Wowww perfect!!! it worked a lot… :razz: :razz: :razz:

  107. THANK U SOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO MUCH!!!

  108. thank you

  109. thanks a lot it works

  110. Luiz Bildzinkas

    It Worked!

    Thanks!

  111. Hardik C, Patel

    Works fine… :smile: :shock: :eek: :eek:

  112. Thank You Very Much.
    You are the BEST :razz: :razz: :grin: :mrgreen:

  113. Thanks a lot sir.. :razz:

  114. Say “thanks” you for your parents that they gave you the planet

  115. Thanks a lot
    :razz: :razz: :razz:

  116. works perfectly…..thanks a lot

  117. works perfectly … thanks a lot!

  118. It works for me too..Thanks man. :lol:

  119. Fuck auto shop, it’s time to get this weekend started!

  120. thx alot.it worked… :grin:

  121. Many Thanks your hidden magic just worked fine and saved my day!
    Cheers

  122. it’s wonder.

  123. Thanks a lot, great man!

  124. thank you Very much :razz: :razz: :razz:

  125. conoce,, me salvó la vida

  126. Thanks
    your code good word :lol: :lol: :lol:

  127. Thanks you

  128. THank u man

  129. hi i’m new in vb.net2010 with crystal reports
    im receiving this messages… ive followed same steps in order for the crystal reports to run in my vs2010 but this messages gets on my nerve…

    i run windows 7 ultimate 64bit OS and i configured the x64 and x86 but still

    and im using sql server 2008 with vs2010

    please help me…

    i will be in your debt.. please help.. thanks in advance

    –Could not find schema information for the attribute ‘useLegacyV2RuntimeActivationPolicy’.
    –Could not find schema information for the element ‘supportedRuntime’.
    –Could not find schema information for the attribute ‘version’.

  130. Thanks man …. worked for me …. this is the type of undocumented crap that I hate about working on MS/CR projects.

  131. Arigato mosaimase :grin:

  132. I got this error, but in a WinForms app I originally wrote in .NET 2.0 / VS 2005. After upgrading it, my App.Config file has the following:

     <startup>
    <supportedRuntime version=”v4.0″ sku=”.NETFramework,Version=v4.0″/>
    </startup>

    I’m wondering if the sku attribute in the supportedRuntime tag is the same as what you’ve done, spyriadi?

  133. thank a lotttttttt :))))))))))))))))) :grin: :grin: :grin: :grin: :grin:

  134. :grin: thanks machaaaaaaa

  135. Thank you.

    Muchas gracias!!

  136. Thanks a ton buddy !! :razz:

  137. You are my hero! :lol:

  138. thanks very very very very much……….

  139. Thanks man, you are really great guy

  140. Erick Rodriguez

    :razz: Thanks a lot!!!!

  141. very very very tanx, it’s really worked

  142. It works. Thx!!

  143. :razz: mil gracias

  144. Nitish Xavier Tirkey

    Thanks…..

  145. Thank u very much… it works… tried a lot.. at last sorted it by ur help…

  146. :razz: Thanks friendly!!! it works….

  147. thanks a lot you saved my life :P

  148. Bhes ku Chara ITs Working..:-) :roll: :roll: :roll:

  149. Its really works. :grin:

  150. :razz: barbaro!!!!!!!!!!!!!!!!!!!!

  151. thnx for the help….but i am still having a problem my report is displayed but the data is not displayed in the report only the headers are displayed….please help me :sad:

  152. Very very very helpful.

    Many thanks.

  153. Thank you very much. You save my final project.

    • Breakfast with Santa! Saturday, December 1st from 9-11AMOssian United Methodist Church201 W. Mill Street in Ossian, In 46777Come have pancakes, dcoeiilus egg casseroles, smoky links, cereal, donuts, dutch crunch dessert, Coffee, milk and juice something for everyoneHave your children’s picture taken with Santa and then they can shop in the Elf Store for their family members. Elves will be available to help them shop so they can keep it a surprise! All gifts are $2 and gift wrapping is included. This is a fun, holiday event sponsored by the Norwell High School Show ChoirSee you there!

  154. thanks very very much!!!!

  155. Thks very much for the help!!!

  156. It worked… thanx man..

  157. :razz: Thanks OK roi !

  158. thank you very much

  159. Gracias!! eres un exito!

  160. I did add

    to my WCF service app.config file, but still get the error message when setting the datasource of my report :

    myReport.SetDataSource(myData); <– FAILS !!! :cry:

  161. thankss dude

  162. thank it worked
    you saved my life thank :grin: :grin: :grin: :grin: :grin:

  163. Hello, i study your website every now and then and i own a identical one and i was just thinking if you get a lot of junk comments? If so how do you quit it, any plug-in or anything you can recommend? I get so much lately it’s generating me insane so any assistance is very much valued.

  164. Two days wasted looking for a solution and it was here all along! Many thanks

  165. Harly Davidson

    Yow thanks a lot . its worked!!!

  166. :razz: Thank so must

  167. :razz: Muchas gracias distinguido buen aporte
    felicidades

  168. thnx a lot mate…..

  169. how its work in desktop application

  170. thanks.. You gave the solution to my headache

  171. Thanks a lot for help me
    I liked connect to you

  172. Thank you!
    Saved a lot of time

  173. muchas gracias!!! Thanks .

  174. Thanks! From Venezuela!

  175. Thnx a lot …
    U save my life . :razz: :razz:

  176. You the man!

  177. Thank you very much :oops:

  178. Thanks! it works!

  179. Thank you So Much …… :-)

  180. FUNCIONO GRCIAS

  181. hi im a bigginer in vb.net i have also a problem on adoplus.dll is not found .

    can i ask where app.config or web.config locate or can give more specific steps for to paste the code..

    i’ll just wait 4 ur reply…tanx

  182. thanx alot frnd..

  183. It works perfect thanks

  184. Thanks.. it works ..

  185. Thanks a lot :)

  186. Grazie!
    I would have never get out of it without your help.

  187. Thanks a lot

  188. Funciona! muchas gracias

  189. :grin: thx for help me

  190. I’m in same boat as Sigmund – added to WCF app.config, but still getting the error.

    Any ideas ?

  191. Thanksssssssssssssssssssssssss

  192. I have to tell you that it’s hard to find your posts in google, i found
    this one on 18 spot, you should build some quality backlinks in order to rank your site, i know how to
    help you, just type in google – k2 seo tips and tricks

  193. thank youuuuuuuuuuuuuuuuuuu :razz: :razz: :razz: :razz: :razz:

  194. Thanks you saved my time.

  195. muchas gracias!!!!! :D

  196. :razz: अरे भावा तू जिंकलास….!!!!!!!!!!!!!!

  197. thanks and God bless u

  198. Valeu Cara!

  199. Thanks, it works!

  200. Very Nice, Thanks for the solution.

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>