cancel
Showing results for 
Search instead for 
Did you mean: 

Could not load file or assembly

Former Member
0 Kudos

Hi,

I urgently require some advice regarding the deployment of Crystal Reports for Visual Studio .Net (ASP).

Development platform: Windows 7 Ultimate (32-bit), Visual Studio .Net 2010 Professional, Crystal Reports for Visual Studio .Net (32bit) 13.0.2, IIS7, .Net Framework 4.

Deployment platform: Windows 2008 Web Server R2 (64bit), IIS7, Crystal Reports for Visual Studio .Net (64bit) 13.0.1, .Net Framework 4.

Using the reporting section in my web site on the development platform (debug mode) all works perfectly.

After publishing to the deployment platform I get errors related to the following entries in the web.config:

<add assembly="CrystalDecisions.ReportSource, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

<add assembly="CrystalDecisions.ReportAppServer.Controllers, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

<add assembly="CrystalDecisions.ReportAppServer.DataDefModel, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

<add assembly="CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

<add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>

The above obviously prevents the web site from functioning and upon removal of the entries all appears to be working as per normal with the exception of the reports.

Many thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

Most probably you are missing the Crystal runtimes. Please see if the following article helps you. Also, do search the forum as similar issue(s) have been addressed before.

[1215826 - How to deploy an application that uses Crystal Reports and Visual Studio .NET?|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313335333833323336%7D.do]

Hope it helps.

Former Member
0 Kudos

Hi,

Thanks for the reply, but I already worked through the thread you referred me to. I am of the same suspicion that runtimeu2019s are to blame, but have downloaded the most recent runtime packages for both 32- and 64-bit platforms. After deployment and a re-build I still have exactly the same problem. I'll try it all again though.

Regards

former_member184995
Active Contributor
0 Kudos

Did you look in the GAC (windows/assembly) folder and see if the version 13 dlls for Crystal were there?

former_member183750
Active Contributor
0 Kudos

Things to review:

1) Is this a 32 bit or a 64 bit app?

If 32 bit app, make sure you use 32 bit runtime - even if deploying to a 64 bit OS

2) Do not compile your app as "Any CPU". Use 32 bit or 64 bit compile.

3) Make sure the CRVS2010 prerequisites are installed before the CR runtime. See KB [1544708 - What are the runtime dependencies for CRVS2010?|http://www.sdn.sap.com/irj/scn/advancedsearch?query=1544708]

- Ludek

Former Member
0 Kudos

Jason,

Runtime on the development platform: SAP Crystal Reports, version for Visual Studio 2010 - Version 13.0.0.99. The \windows\assembly folders reflect Crystal Reports version 13.0.2000.0.

Runtime on the deployment platform: SAP Crystal Reports runtime engine for .NET Framework 4 (64bit) - Version 13.0.1.220. The \windows\assembly folders reflect Crystal Reports version 13.0.2000.0.

Ludek,

1) The app was compiled using "Any CPU". Due to the fact that the development platform is a 64 bit OS Crystal Reports 64 bit runtime was deployed.

2) I tried a 64 bit compile which had even more errors to effect, in fact the app didn't even start. Subsequently I used a 32 bit compile. The app then worked just fine with the exception of the Crystal Reports. Considering the latter I shall now attempt to deploy the 32 bit runtime on the 64 bit OS.

3) I'm confident that the CRVS2010 prerequisites have been met, but will double check.

Thanks for your advice!

Edited by: yolandre on May 29, 2011 10:28 PM

0 Kudos

You are still using the original release when deploying.

Go to this page and get SP 1 runtime redist package also and re-deploy: http://www.sdn.sap.com/irj/boc/crystalreports-dotnet

Thank

Don

Former Member
0 Kudos

Thanks Don. Busy downloading the updates.

Former Member
0 Kudos

Ludek,

As suggested the app was recompiled for x86 and subsequently deployed on the x64 OS. So too was the x86 runtime for Crystal Reports installed. The app still worked with the exception of the Crystal Reports. Attempts to run reports resulted in errors related to Crystal Reports.

I also confirmed that all requirements are being adhered to. Various subsequent attempts to restart the deployment platform, re-compiles and re-deploys did not improve the matter.

Thanks for your assistance.

Former Member
0 Kudos

Don,

Finally some progress! I downloaded and deployed SP1 for the development and deployment platforms and after a re-compile and subsequent publish the app worked as per normal. Even though the Crystal Reports are still not working on the deployment platform at least it doesn't result in error messages. Now the report appears to process, but it is not displayed in the viewer.

Thanks so much for your assistance thus far!

former_member183750
Active Contributor
0 Kudos

Re. no reports in the viewer. See [this|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0437ea8-97d2-2b10-2795-c202a76a5e80] and [this|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50aa68c0-82dd-2b10-42bf-e5502b45cd3a] article. Look to see how to set up the viewer directories when you are using a custom app pool (an assumption on my part here). The article does not cover CRVS2010, but the general ideas still apply...

- Ludek

Former Member
0 Kudos

A huge thanks to all who contributed. The problem regarding the reports not displaying related to the "'bobj' is undifined" error. After some searches in the forum I managed to find a quick solution thanks to previous posts (copying the "aspnet_client" in the "Default Web Site" to the custom web site) by Don.

Thanks again!

Answers (0)