on 09-25-2008 2:36 PM
I'm working with the sample application VB_Web_CRVObjMod_FilteringData which works fine locally using the ASP.net Website admin tool
After publishing to our server, it came up with the error...
'Could not load file or assembly 'CrystalDecisions.Web, Version=12.0.2000.0...'
where I installed 'CRRuntime_12_0_mlb.msi' on the server
Now when I attempt to open the default.aspx, I'm getting this error...
Could not load file or assembly 'CrystalDecisions.CrystalReports.TemplateEngine, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
Should the CRRuntime_12_0_mlb.msi install all the necessary assemblies?
The actual path of the .dll's on the development pc is
C:\Program Files\Common Files\Business Objects\3.0
while on the server it's
C:\Program Files\Common Files\Business Objects\2.7
Listed in the Add or Remove Programs on the Server
Crystal Reports 2008 Runtime
Crystal Reports for .NET framework 2.0 (x86)
Server Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
Microsoft Visual Studio 2005
Version 8.0.50727.42 (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727 SP1
Installed Edition: Standard
Crystal Reports 2008
CR Developer
Version 12.0.0.683
Product Type: Evaluation
I also have Crystal Reports XI on the development pc
CR Professional
11.0.0.2495
A bit confusing since you installed 'CRRuntime_12_0_mlb.msi' on the server.
The CRRuntime_12_0_mlb.msi should install all the necessary assemblies as long as the framework is there.
Here is the confusing part. You say:
"The actual path of the .dll's on the development pc is
C:\Program Files\Common Files\Business Objects\3.0
while on the server it's
C:\Program Files\Common Files\Business Objects\2.7";
Well, CR 2008 (12.0.x) in installed at C:\Program Files\Business Objects\Business Objects Enterprise 12.0\win32_x86 directory - both on deployed systems and on develpment system. (...3.0\bin is from CR XI release 1, which does not have assemblies for .NET 2005. And, ...\2.7\bin is for CR 10.2 which is a .NET 2005 bundle)
Now, going by the error ('Could not load file or assembly 'CrystalDecisions.Web, Version=12.0.2000.0...') the app obviously wants CR 2008 assemblies... So, can you check both the dev and server boxes and see if that directory exists? Also, check the GAC for version 12.0.2000 CR assemblies.
Ludek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My development pc has this directory for CR 2008
C:\Program Files\Business Objects\2008\BusinessObjects Enterprise 12.0\win32_x86
The \2008\ directory is my doing to prevent the 2008 install from overwriting the XI install. Was this a bad idea?
Server directory
C:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86
On the development pc
Sort C:\WINDOWS\assembly by Version,
I can find CrystalDecisions.CrystalReports.Template Engine 12.0.1100.0
version 11.0.3300.0 also exists
On the server in C:\windows\assembly
CrystalDecisions.CrystalReports.Template Engine is not found
Other CrystalDecisions... assemblies version 12.0.1100.0 are present
My development pc has this directory for CR 2008
C:\Program Files\Business Objects\2008\BusinessObjects Enterprise 12.0\win32_x86
The \2008\ directory is my doing to prevent the 2008 install from overwriting the XI install. Was this a bad idea?
- Absolutely the worst idea I could think of. Crystal reports is side by side compliant since version 9. You do not need to, should not do any modifications at all. I have no idea what this has done to the system or even how this works as is...
On the development pc
Sort C:\WINDOWS\assembly by Version,
I can find CrystalDecisions.CrystalReports.Template Engine 12.0.1100.0
version 11.0.3300.0 also exists
On the server in C:\windows\assembly
CrystalDecisions.CrystalReports.Template Engine is not found
Other CrystalDecisions... assemblies version 12.0.1100.0 are present
In the original post you mention that you are using .NET 2005. Yet, you only see CR assemblies of version 12.0.1100. These assemblies can not be used in .NET 2005. The really confusing part is that the error is telling me the app is looking for assemblies of version 12.0.2000.
Look in the .NET project for the CR assemblies. What version of the assemblies are you referencing?
Ludek
I got the report to display as expected
Just for fun, I re-installed CRRuntime_12_0_mlb.msi on the server which made no difference.
Next in the web.config I simply commented out the line which was where the error was occuring
'add assembly="CrystalDecisions.CrystalReports.TemplateEngine,..'
The report works fine. I comes up in a browser as expected
But still,it begs the question why this particular assembly wouldn't install with the CRRuntime_12_0_mlb.msi. Even though this particular issue is solved, I'm hoping future reports won't need the TemplateEngine assembly.
There must be a valid reason why it didn't install. How do we tell if all assemblies are correctly installed short of waiting for an error to occur.
In the original post you mention that you are using .NET 2005. Yet, you only see CR assemblies of version 12.0.1100. These assemblies can not be used in .NET 2005. The really confusing part is that the error is telling me the app is looking for assemblies of version 12.0.2000.
I checked again and there exists version 12.0.2000.0 assemblies on dev pc. For the .TemplateEngine assembly only version 12.0.1100.0 and 11.0.3300.0 exist. There is no 12.0.200.0 version of TemplateEngine.
So, does the 'CRRuntime_12_0_mlb.msi' only install 12.0.200.0 assemblies?
Is there a 12.0.200.0 version of.TemplateEngine in CRRuntime_12_0_mlb.msi?
I checked again and there exists version 12.0.2000.0 assemblies on dev pc. For the .TemplateEngine assembly only version 12.0.1100.0 and 11.0.3300.0 exist. There is no 12.0.200.0 version of TemplateEngine.
- That is fine.
So, does the 'CRRuntime_12_0_mlb.msi' only install 12.0.200.0 assemblies?
Is there a 12.0.200.0 version of.TemplateEngine in CRRuntime_12_0_mlb.msi?
- the 'CRRuntime_12_0_mlb.msi' installs 12.0.2000.0 assemblies and 12.0.1100.0 assemblies (12.0.2000.0 assemblies if framework 2.0 is detected, and 12.0.1100.0 if framework 1.1 is detected).
What is the OS you are installing the MSI on?
Can you try to do a repair onthe framework, then try the msi again?
Ludek
Windows Server 2003 R2 sp2
That may be the problem about .NET 2.0. Even though .NET framework 2.0 shows up under Add / Remove Programs and an earlier message mentions the .NET 2.0 version; there is no configuration app/form under Administrative Tools as occurs with .NET 1.1.
So I have no way to configure or rebuild NET 2.0 short of re-running the 'NetFx20SP1_x86.exe' install exe. Would you recommend I re-run this exe?
So I'm currently downloading and installing the .NET Framework 2.0 Software Development Kit (SDK) (x86) which I'm lead to believe will give me the snap-in to configure .NET 2.0.
I installed on the Server
.NET Framework 2.0 Configuration
Microsoft Corporation
Version: 2.0.50727.42
Went to Add/Remove Programs and re-installed the .NET Framwework 2.0 SDK
Also re-installed .NET framework 2.0 SP1
re-booted server
Re-installed 'CRRuntime_12_0_mlb.msi'
In .NET Framework 2.0 Configuration under Assembly Cache,
CrystalDecisions.CrystalReports.TemplateEngine
is not found
Look in C:\WINDOWS\assembly and TemplateEngine isn't found here either.
Solution: Don't include the referecne in your app, not required and is not being decomissioned. It's one of those dependencies that are used but should not be required to distribute. It's only used when designing reports. The build team are still going over the required files to verify if it should be included, in the mean time remove the dll from your references and re-build, if you do need it distribute it manually in your build.
Marking the post as resolved
I have a similar issue with a slightly different error message:
Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=11.0.3300.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
hope someone has seen this and can help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Totaly different issue. Please create a new thread. Also provide more info. See the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]
Step 2 Asking Your Question; Provide Enough Information
Ludek
Follow us on Twitter
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.