cancel
Showing results for 
Search instead for 
Did you mean: 

Crystal Reports 2008 not working when compiled with Visual Studio 2010

Former Member
0 Kudos
60

Our application runs Crystal Reports in process. We have a C# interface which handles that data transfer to Crystal 2008. This has been working well for us when until we moved to the Visual Studio 2010 compiler. The calls to ReportDocument.OpenReport() work without any errors but when it gets to ReportDocument.SetDataSource(DataTable dataTable) it throws this exception.

Mixed mode assembly is built against version 'v1.1.4322' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.

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.?(IntPtr)

I have a runtime installation of Crystal Reports 2008 on a 32 bit Windows XP machine. Do we have to handle data differently when compiling with VS2010 or is there another version of the runtime that solves this problem?

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

Search the forums before posting...

Lots of info on CR 2008 not being supported with VS2010. Only CRVS2010 is supported with VS2010:

[CRVS2010 download|http://www.sdn.sap.com/irj/boc/support?rid=/webcontent/uuid/d01fdad8-44e5-2d10-61ad-9d2d4158f3a8] [original link is broken];

[More info|http://www.sdn.sap.com/irj/sdn/crystalreports-dotnet]

- Ludek

Answers (1)

Answers (1)

Former Member
0 Kudos

Following suggestions I found on this post I was able to get my reports working again.

Using a decompiler I found that crdb_adoplus.dll was built using .NET 2.0. Is there a set of DLLs available that is all built with .NET 4.0? Adding the config file did get the reports to work but it seems more like a work around.

former_member183750
Active Contributor
0 Kudos

Note that the solution you found is for crvs2010 - not CR 2008...

For anyone else following this thread now or later; CR 2008 (v.12.x) is not supported in VS2010. You are risking that this will not work, not work fully, etc., etc., etc. And - CRVS2010 is free from here:

http://www.sdn.sap.com/irj/sdn/crystalreports-dotnet

To answer the question;

Is there a set of DLLs available that is all built with .NET 4.0?

Not at this time (not for ADO .NET Datasets - crdb_adoplus.dll) - may never be. Lots of info on these forums as to why not. Other than that, all other CRVS2010 dlls work just fine with framework 4.0.

- Ludek