Click here to Skip to main content
14,695,609 members
Please Sign up or sign in to vote.
3.00/5 (8 votes)
See more:
Could not load file or assembly 'file:///C:\Program Files\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. The system cannot find the file specified. how can solve this error in windows application
Posted
Updated 14-Dec-19 6:03am
Comments
[no name] 4-Aug-13 9:33am
   
Is crystal reports installed on the computer?
krishna97 4-Aug-13 9:35am
   
yes sir
this error given run time
[no name] 4-Aug-13 9:59am
   
Is that the correct path for that dll? Did you see if any of the dependencies are missing? file:/// is an unusual item for a winform application.
krishna97 4-Aug-13 10:02am
   
ok this code
con.Open();
OleDbCommand cmd = new OleDbCommand("Select * from kkp", con);
OleDbDataAdapter sdt = new OleDbDataAdapter(cmd);
DataTable ds = new DataTable();
sdt.Fill(ds);
CrystalReport2 crp = new CrystalReport2();
crp.SetDataSource(ds);
crystalReportViewer1.ReportSource = crp;
crystalReportViewer1.Refresh();
con.Close();
Member 11050074 5-Mar-19 9:21am
   
hahaha
Member 13379238 5-Sep-17 9:53am
   
Thanks
Status BreakPoint 4-Aug-13 10:22am
   
similar question is here. Please check it.

http://stackoverflow.com/questions/6601741/solution-to-the-problem-of-file-crdb-adoplus-dll
krishna97 4-Aug-13 10:24am
   
ok i am check...
krishna97 4-Aug-13 10:25am
   
same error

See Crystel Report Error in VS2010[^]
A solved question

linking to the following suggestion:

when u received this kind of error:
"Could not load file or assembly 'file:///C:\Program Files\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. The system cannot find the file specified."
try to add this to your .config file (usually app.config)
< startup useLegacyV2RuntimeActivationPolicy="true">
< supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
< /startup>


Good luck,
Edo
   
Comments
krishna97 4-Aug-13 12:10pm
   
i am used this code also but same error given
Joezer BH 4-Aug-13 12:14pm
   
Have a look at solution 1 in this thread, there is another suggestion you might as well try it out:
CP previous same question thread
Member 13391365 3-Sep-17 13:14pm
   
i am used this code also its work for me , thanks.
votch18_x3m 30-Oct-13 22:43pm
   
Thanks men! it works for me...
Joezer BH 30-Dec-13 1:49am
   
Glad it helped :)
Yousef Jwad 26-Mar-16 15:50pm
   
oh my god!! really you are jenious man thaaaaaanks a looooooooot bro <3
Onudipto 1-Oct-18 1:08am
   
can you suggest me which working?... I am not finding any solution.
Member 10486869 28-Dec-13 0:55am
   
thanks
Joezer BH 30-Dec-13 1:49am
   
You're welcome
Doan Vu 6-Jan-14 21:52pm
   
tks a lot
Joezer BH 7-Jan-14 1:52am
   
You are most welcome
Member 10696600 30-Mar-14 2:46am
   
amazing.....................
thaks buddy it workzzzzzzzzzzzzzzzzzzzzzzz
i can buy an ice cream for you...................
Joezer BH 30-Mar-14 3:22am
   
You are most welcome.

As for the freezer, I'd be delightful.
Any Kwality Wall's branch near by?

;)
Member 8619103 12-Apr-14 2:53am
   
thanx alot for the solution you save my 120000 Rs
khurram ali lashari 25-Apr-14 2:27am
   
Thanks alot ......Its Worked for me
Joezer BH 27-Apr-14 2:34am
   
You're welcome,
glad to hear it helped
anandsomaiya 8-May-14 1:58am
   
Thanks a lot...
sv sathish 15-May-14 2:45am
   
thank you...
Joezer BH 15-May-14 3:06am
   
Glad it helped
Eduardo Mass 16-May-14 9:38am
   
Genio!
Joezer BH 18-May-14 2:52am
   
Grazie, contento che ha aiutato :)
ricardo 30 16-Jun-14 4:11am
   
i have same problem too , but it's not work on me .. i have tried to find the app.config but it's too much file with the same name ... can u help me ??
HariOmThapa 19-Aug-14 7:58am
   
i have VS 2012 and my error is gone, thanx
Member 10888452 21-Aug-14 4:32am
   
yesss,, it works :) thanks
Habib Sumon 26-Aug-14 2:15am
   
Excellent working.
Arteen2020 28-Sep-14 3:23am
   
hi my friend
thanks for your help, it works great.
with respect
mehdi
muhammed yasir 1-Nov-14 4:33am
   
thank you.
Pratham4950 3-Dec-14 6:19am
   
Thank you very much..!
ChintanShah_Anvi 8-Jan-15 12:58pm
   
Thank You...!!!
sohail naseer 26-Jan-15 3:45am
   
Good
prince Daniel 3-Feb-15 11:58am
   
Thank you very much. This has ended my almost 3 months search for this solution. Gracias!
Joezer BH 4-Feb-15 5:07am
   
Glad it helped :)
amar_purehoney 4-Feb-15 13:16pm
   
Yeah its working ... thank u very much
Member 11434592 30-Apr-15 10:36am
   
hey dud still it not working
hansel14 29-Jun-15 22:18pm
   
thank you... it works.
Member 11859932 24-Jul-15 3:45am
   
Yes, It's working thanks so much
inam2001 24-Jul-15 8:28am
   
Thanx alot
mastermindinfo 14-Oct-15 8:26am
   
it has perfect solution, works fine.
Member 11679070 2-Nov-15 14:42pm
   
thanks... it works so fine ^.^
Joezer BH 4-Nov-15 2:57am
   
:) glad it helped
Yousef Jwad 26-Mar-16 15:50pm
   
oh my god!! really you are jenious thanks a lot bro <3
hansraj.sm 4-Apr-16 0:25am
   
So nice:)
Member 12482616 29-Apr-16 8:48am
   
Working...Thanks
Joezer BH 16-May-16 0:39am
   
You're welcome
Xerkot 12-May-16 13:06pm
   
Working... Many,many thanks !
Joezer BH 16-May-16 0:39am
   
Glad it helped
Rizal Adhietya 21-Jun-16 3:15am
   
Great!!!
Thanks a lot
mmm101 5-Aug-16 3:20am
   
thanks alot
Joezer BH 7-Aug-16 6:04am
   
You are most welcome :)
Member 12630374 8-Sep-16 3:50am
   
Thank you brother you are great great genius
apprabhu 15-Sep-16 9:45am
   
It helped, Thank-you.
george4986 26-Sep-16 1:06am
   
Working Code Thanks For Your Effort -> Joezer BH
Aarunya 26-Sep-16 3:21am
   
Very Nice Solution
Thank you very much. This has ended my almost 3 Days search for this solution.
It works for me in VS 2015
Joshua Magsino 6-Oct-16 20:39pm
   
Thank you so much! it helped my problem!
Utsav Kumar 26-Jan-17 8:42am
   
Thanks! keep doing this.
Member 10270623 19-Feb-17 2:56am
   
It solved my problem as thank you.....
Member 13037990 3-Apr-17 7:46am
   
thank u very much this is worked for me
Joezer BH 4-Apr-17 11:54am
   
Cheers,
Glad it helped
Prabin Siwakoti 6-Jun-17 6:37am
   
Thanks it helped for me.
Member 11211069 16-Jun-17 7:32am
   
Thank you its working fine
Joezer BH 18-Jun-17 7:41am
   
You are most welcome
Md. Saud 19-Jun-17 8:48am
   
Dear Joezer BH
Thanks. it was very helpful.
Member 12033251 27-Jun-17 10:56am
   
Great. Thank you.
Peter Chinh
Hussein Salih 24-Jul-17 11:03am
   
Thanks bro it's work for me>
Member 11211069 27-Aug-17 8:27am
   
Thank you great...............its working nice
Tech Code Freak 6-Sep-17 13:02pm
   
Oh thanks a lot!!!
You are my saviour
[no name] 22-Dec-17 20:01pm
   
hey buddy....u just nailed it...
Member 13698344 4-Mar-18 9:36am
   
Tnx a lot :)
KreativeKai 19-Mar-18 14:24pm
   
Worked for me too! Thanks!
shongho 16-Oct-18 1:17am
   
yey it works!
Member 14207397 4-May-19 1:21am
   
can anyone tell me..for window application(i got same error..how to solve)
evry1falls 11-Jul-19 18:34pm
   
Add the lines in the solution above to your app.config file. But what is your .net version because the above solution works only for .net4.
Add below script to "ApplicationConfiguration" file and rebuild your project

<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>

<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
   
Comments
CHill60 12-Jul-17 7:41am
   
Which is the accepted solution from nearly 4 years ago!
NiravPatel19081988 3-Aug-17 10:37am
   
Thanks a lot Sir
Chrisbabb 30-Aug-17 7:44am
   
I have been searching for a solution for weeks to dynamically set the database without success. I changed to use a dataset but got the file not found error so initially dismissed that method. Luckily I found this post, now very happy!!
thanks bro it working

< startup useLegacyV2RuntimeActivationPolicy="true">
< supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
< /startup>
   
Comments
CHill60 5-Mar-19 8:21am
   
Don't post comments as solutions. Use the "Have a question or comment" link next to the post and/or use the star voting system

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900