cancel
Showing results for 
Search instead for 
Did you mean: 

Doubt: System.IO.FileNotFoundException was unhandled

Former Member
0 Kudos

good morning all,

i have a visual studio 2010 deployment project with .net4.0. the crystal reports are working in development machine but, not working in end user machines. im getting below exception

System.IO.FileNotFoundException was unhandled

  Message=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. The system cannot find the file specified.

  Source=mscorlib

  FileName=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

  FusionLog=WRN: Assembly binding logging is turned OFF.

To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.

Note: There is some performance penalty associated with assembly bind failure logging.

To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

  StackTrace:

       at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

       at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

       at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)

       at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark)

       at System.Reflection.Assembly.LoadFrom(String assemblyFile)

       at CrystalDecisions.ReportAppServer.DataSetConversion.DataSetConverter.DataSetProcessingDelegate(IntPtr arg)

  InnerException:

i search on google , everybody saying below solutions

1.

<startup useLegacyV2RuntimeActivationPolicy=”true”>

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

</startup>


2. Change target framework of deployment project into .net 4.0 instead of .net 4.0 Client Profile


i did both changes but, still not working. Experts please help me.

Accepted Solutions (1)

Accepted Solutions (1)

János_at_SAP
Advisor
Advisor
0 Kudos

HI,

Try to check the following thread: it is similar to you case:  http://scn.sap.com/thread/1802638

Also please check the followings:

1. is the file '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' exists on the client machines?

Is the runtime redistributable of CR is installed on the client mahcine where the error orrurs?

You can check for donwload the following site: http://scn.sap.com/docs/DOC-7824?rid=/webcontent/uuid/d01fdad8-44e5-2d10-61ad-9d2d4158f3a8

2. What is your target CPU when you compile the project? x86 or x64?  x86 platform is referenced in the dll files

Thanks

János

Former Member
0 Kudos

Janos thank you for your response.

1. this 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" is not exist.

2. Target is 'Any CPU'

János_at_SAP
Advisor
Advisor
0 Kudos

Hi,

1. Set CPU target cpu to x86  and recompile your project

2. Install CR runtime files on the client machine where error occurs

Use this site to download the runtime files

http://scn.sap.com/docs/DOC-7824?rid=/webcontent/uuid/d01fdad8-44e5-2d10-61ad-9d2d4158f3a8

32 bit version of course.

Thanks,

János

Former Member
0 Kudos

hi Janos

1. From configuration Manager i set 'Active Solution Configuration to x86' then tried to change 'Active Solution Platform to 'x86' but, whenever i click New option then no dialog is appearing to change it.

then i build solution and installed but raised same error.

2. Installed CR Run time in client machine but raised same error.

im totally confused what to do next.

Former Member
0 Kudos

i did change the 'Target Solution Platform' to x86 then also no luck. please help me.

Former Member
0 Kudos

above link resolved my issue

Answers (0)