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.




234 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. Thanks….

  11. Perfect, perfect!!!

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

  13. Thanks !!!!!!

  14. 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

    • I think that you might have to make the same change on the other project as well… since the change you make is only effecting the runtime.

      • hi did as you did..
        still not working :sad:

    • Did you ever resolve this issue i am having the same problem but the executing application is a VB6 application utilizing COM interop.

  15. Excellent! Thanks

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

  17. Thank you – nice simple solution!

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

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

  20. Muito obrigado pela ajuda.
    Thank you.

  21. Perfect.
    Thank you.

  22. 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.

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

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

  25. 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!?

    • :razz:

      Thanx
      You are great !….
      YOU ARE A TYPICAL PROGRAMMER.

      by
      jeanscircuits@gmail.com

    • I dont understand this solution . Can you explain widely? I use VS 2010 and .net 4.0 . Problem insistently is going on .

  26. Tnx, u solved me problem

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

  28. gracias…. ;)

  29. thx :)

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

  31. Muchas gracias.

  32. Muito obrigado

  33. Thank ,, you make me smile ^^

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

  35. Thanx alot man…it works.

  36. Thanks man ….. u hero

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

  38. Gracias mis respetos idolo

  39. i have to thank u… thank you

  40. Thanx alot man

  41. Thanks genius..its working

  42. very good

  43. TOP!!!!

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

    Bahia-Brasil

  45. Thanks. Work ok.

  46. 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

  47. Thanks…….works fine

  48. Thanks……….

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

  50. 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.

    • I don’t think that this has anything to do with this change… it’s most likely comming because of some update on your system (Windows Update). I never had such a behaviour myself!

  51. thenkyou veeeeeeeeeeeeeeeeeery muck

    • Articles like these put the consumer in the drveir seat-very important.

  52. Gracias men!!

  53. Tank you very much!!!!

  54. Thanks,It Works..

  55. Thanks sooo much ,it works :)

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

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

  58. Tank you very much, :)

  59. Muito Obrigado :)

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

  61. thanks…its work for me :)

  62. 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)

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

  64. thanks, works great!

  65. 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.

  66. Excelente!! muchisimas gracias!!

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

  68. 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

  69. Thank you very much. Great help.

  70. you are my lifesaver

  71. thx alot, coool it work ,

  72. thnx Alooooooooooooot :D

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

  74. Muchas gracias, funciona al 100%

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

  76. thanks

  77. 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

  78. thanks.

  79. Parabéns pelo post! deu certo !
    Brasil

    Congratulations for the post! it worked!
    Brazil

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

    Thanks

  81. Thank you ^_^

  82. Thanks bro

  83. tHANKS bROTHER

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

  85. YOU ARE SIMPLY THE BEST!

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

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

  88. very very very tank you.you’re survivor

  89. 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.

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

  91. Thanks a lot!:)

  92. thanks a lot of.
    very nice..

  93. thanlllllllllllllllll

  94. coooooooool,thanks man

  95. tanx very nice

  96. Thanks a lot

  97. Thank you
    It was great.

  98. You thx lot Tom you are star

  99. :smile: Works like a charm. Thanx

  100. :razz:Thanks u a lot

  101. thanks you. it very great

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

  103. thank you very much..!

  104. Thanks Spyriadis Newtork

    its very great.

  105. Thank you very much.

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

  107. thk

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

  109. thak u soooooo much.. very useful

  110. Thank u verry much!! :razz:

  111. Thank u Verryyyyyyyyy Much

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

  113. THANK U SOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO MUCH!!!

  114. thank you

  115. THank u :razz: :razz:

  116. thanks a lot it works

  117. It Worked!

    Thanks!

  118. Works fine… :smile: :shock: :eek: :eek:

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

  120. Thanks a lot sir.. :razz:

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

  122. Thanks a lot
    :razz: :razz: :razz:

  123. works perfectly…..thanks a lot

  124. works perfectly … thanks a lot!

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

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

  127. thx alot.it worked… :grin:

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

  129. it’s wonder.

  130. Thanks a lot, great man!

  131. thank you Very much :razz: :razz: :razz:

  132. conoce,, me salvó la vida

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

  134. Thanks you

  135. THank u man

  136. 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’.

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

  138. Arigato mosaimase :grin:

  139. 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?

  140. thank a lotttttttt :))))))))))))))))) :grin: :grin: :grin: :grin: :grin:

  141. :grin: thanks machaaaaaaa

  142. Thanks :razz: :razz: :razz: :-))

  143. Thank you.

    Muchas gracias!!

  144. Thanks a ton buddy !! :razz:

  145. You are my hero! :lol:

  146. thanks very very very very much……….

  147. Thanks man, you are really great guy

  148. :razz: Thanks a lot!!!!

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

  150. It works. Thx!!

  151. :razz: mil gracias

  152. Thanks…..

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

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

  155. thanks a lot you saved my life :P

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

  157. many thanks :grin:

  158. Its really works. :grin:

  159. :razz: barbaro!!!!!!!!!!!!!!!!!!!!

  160. 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:

  161. Very very very helpful.

    Many thanks.

  162. 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!

  163. thanks very very much!!!!

  164. Thks very much for the help!!!

  165. It worked… thanx man..

  166. :razz: Thanks OK roi !

  167. thank you very much

  168. Gracias!! eres un exito!

  169. 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:

  170. thankss dude

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

  172. 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.

    • I use Akismet plugin and works just great!!! You should give it a try…

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

  174. Yow thanks a lot . its worked!!!

  175. :razz: Thank so must

  176. :razz: Muchas gracias distinguido buen aporte
    felicidades

  177. thnx a lot mate…..

  178. how its work in desktop application

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

  180. thanks :razz:

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

  182. Thank you!
    Saved a lot of time

  183. muchas gracias!!! Thanks .

  184. Thanks! From Venezuela!

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

  186. You the man!

  187. Thank you very much :oops:

  188. Thanks! it works!

  189. tks u . u’r awesome . I <3 u
    From : BR
    http://www.etep.edu.br/http://www.etep.edu.br/

  190. Thank you So Much …… :-)

  191. FUNCIONO GRCIAS

  192. 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

  193. thanx alot frnd..

  194. good !!
    thank you.

  195. It works perfect thanks

  196. Thanks.. it works ..

  197. Thanks a lot :)

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

  199. Thanks a lot

  200. Ridiculous story there. Whatt happened after?
    Thanks!

  201. :razz: :razz: :razz:
    thanks grate

  202. Funciona! muchas gracias

  203. :grin: thx for help me

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

    Any ideas ?

  205. Thanks.

  206. Merci

  207. Thanksssssssssssssssssssssssss

  208. 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

  209. thank youuuuuuuuuuuuuuuuuuu :razz: :razz: :razz: :razz: :razz:

  210. Thanks you saved my time.

  211. muchas gracias!!!!! :D

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

  213. thanks and God bless u

  214. Valeu Cara!

  215. Thanks, it works!

  216. Very Nice, Thanks for the solution.

  217. nasıl uygulanacağını biri tarif edebilir mi acaba

  218. Very Godddd, Thanks for the solution.

  219. Thank you for>>>>>> Very best code “”” Thailand “”””

    ขอบคุณหลายๆ เด้อ.. :grin: :grin: :grin: :razz: :wink: :roll:

Leave a Reply

Your email address will not be published. Required fields are marked *

You may 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>