on 01-28-2013 1:28 PM
I'm Using VS 2012 with CR for VS SP5 (2012) on my Development Machine with Win 7 64 Bit with MS Access ADO .Net Connection to Access 2007 DB File
Development and all is working fine and had also installed 64 bit CR on my Machine
On Executing the Application the following Err. is occuring
System.IO.FileNotFoundException was unhandled
HResult=-2147024894
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\win64_x64\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\win64_x64\dotnet1\crdb_adoplus.dll
FusionLog==== Pre-bind state information ===
LOG: User = SGAI\Amit
LOG: Where-ref bind. Location = C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\dotnet1\crdb_adoplus.dll
LOG: Appbase =******************************************
LOG: Initial PrivatePath = NULL
Calling assembly : (Unknown).
===
LOG: This bind starts in LoadFrom load context.
WRN: Native image will not be probed in LoadFrom context. Native image will only be probed in default load context, like with Assembly.Load().
LOG: No application configuration file found.
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/SAP BusinessObjects/Crystal Reports for .NET Framework 4.0/Common/SAP BusinessObjects Enterprise XI 4.0/win64_x64/dotnet1/crdb_adoplus.dll.
StackTrace:
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, 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:
For Conferming That 64bit CR is installed properly I just created a simple app with CR Viewer and an Blank CR which is working fine.
Please Help
Hello Amit
How did you deploy the 64 bit CR runtime?
Did you look to see if the dll is installed? It should be in the following directory:
C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64
- Ludek
Follow us on Twitter
Got Enhancement ideas? Try the SAP Idea Place
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have downloaded & installed CR from following link on my development machine
SAP Crystal Reports, developer version for Microsoft Visual Studio SP5
After compling the project everything goes well till the CR is loaded in CRV and at that time said err. occures
Also I have checked for the dll at said loacation and it does not exists there, not only dll but the said folder dotnet1 also does not exists
Message was edited by: Amit Saraf The Said File crdb_adoplus.dll exists in C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64
Hello Amit
You mention:
have downloaded & installed CR from following link on my development machine
SAP Crystal Reports, developer version for Microsoft Visual Studio SP5
but there is no link.
I want you to confirm that you downloaded and ran the file CRforVS2010_13_0_5.exe from this link:
http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_5.exe
If yo have not, uninstall what ever you installed, then download the above file and install.
- Ludek
Ya the same link
http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_5.exe
I forgot to copy paste the URL and just coppied the text
File crdb_adoplus.dll
is in
C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64
and Not in
C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win64_x64\dotnet1
Hi Amit,
If you had searched first you would have found a lot of discussions about this message.
Please add this to your app.config file for your project. If you don't have the file create one and make sure you include it in you deployment package:
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
Also, CR now only supports ODBC to Access tables, there was an issue where MS did not ship a 64 bit native DAO client dll so we only could support ODBC. I believe MS now supports 64 native DAO to Access in WDAC but CR doesn't. Convert your reports to use ODBC as the data source and create a System DSN to your access table.
Don
Ok Now CR is Loading properly
Now the Err. is
An attempt has been made to free an RCW that is in use This is occuring only when the form with CR viewer is being loaded or Shown
Also, CR now only supports ODBC to Access tables, there was an issue where MS did not ship a 64 bit native DAO client dll so we only could support ODBC. I believe MS now supports 64 native DAO to Access in WDAC but CR doesn't. Convert your reports to use ODBC as the data source and create a System DSN to your access table.
My application is Loading Data using DataSet. I dont know how to use ODBC and in case i have to do so then I will have to rewrite all reports (app 35 reports)
any help on it
Hi Amit,
Great, not a problem then if using a DS. More of an FYI.
How have you declared and defined RCW?
To view it should be simply a 1 or 2 line routine.
Maybe easier if you create a new test app, Open a report without any data, just a "Hello World" text box in the report header and see what happens.
Something like this:
// Engine to load the report
CrystalDecisions.CrystalReports.Engine.ReportDocument rpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
//RAS is modifying the report
CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument rptClientDoc;
rpt.Load(rptName.ToString(), OpenReportMethod.OpenReportByTempCopy);
//now set the report object to the viewer source and run the app.
crystalReportViewer1.ReportSource = rpt;
Still get the same error?
Don
What is the name of the file you ran to install CR on the dev computer? What is the link to the file?
See if Process Monitor tells you what's happening when the app tries to load the dll.
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter
Dear Friends
I am developing a desktop application using VB.NET and Microsoft Access Database.
In my App.config file i write the following code.
"
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
"
I follow the below link and i have resolved my issue.
http://www.codeproject.com/Questions/631537/Could-not-load-file-or-assembly-file-C-Program-Fil
May be it helps you.
Thanks and regards
Hasnain Ahmad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can also search SAP SCN, this forum, for the same info:
SAP Note 1817187 -
Addin For Crystal Reports 2011 built for .NET framework 4.0 fails to load
SAP Note 1832353 -
System.IO.FileLoadException when printing a report in a VS .NET application
SAP Note 1877219 -
How to use .Net 4.0 DLL as a data source in Crystal Reports 2011?
Don
Try em app.config
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.