[Mono-dev] Difference on reference search between mono 2.4.2 and mono 2.4.3

Rafael Teixeira monoman at gmail.com
Mon Nov 16 11:39:43 EST 2009


AFAIK, CrystalDecisions.CrystalReports.Engine is only added to an
ASP.NET project if you add a Report to it. If you don't use reports
yank it out of the project.

Mono doesn't implement the report engine that MS sublicensed from
Crystal Decisions (now part of SAP) to distribute with Visual Studio.

Trying to use the report engine library in Mono brings even more trouble:
1) It depends in many other libs at least used to have many
dependencies on windows-native DLLs, so it has very little chance of
running on Linux.
2) It may be illegal as I think it is distributed under the same
license as the rest of Visual Studio-provided components that allows
you to deploy it only on Windows.

You may try ReportManager an open-source project that hopes to become
a substitute: http://sourceforge.net/projects/reportman/

Hope it helps,

Rafael "Monoman" Teixeira
---------------------------------------
"To be creative means to be in love with life. You can be creative
only if you love life enough that you want to enhance its beauty, you
want to bring a little more music to it, a little more poetry to it, a
little more dance to it."
Osho



On Mon, Nov 16, 2009 at 9:09 AM, APS <dev.malst at apsystems.it> wrote:
> Hi,
>
> I was using with success a web application on Centos with mono 2.4.2
> compiled from source.
> To try the new version I downloaded the Mono 2.4.3 Virtual machine, I copied
> my web application to the new server and it gives an error cause Crystal
> Reports dll are missing.
> Those dll are referenced inside other assemblies but not used.
> It sounds strange to me that 2.4.2 doesn't complain about that and 2.4.3
> gives an error.
>
> As I cannot remove the reference, where is the difference between the two
> machines? It's due to mono version or to some different configuration or
> compilation option?
>
> The error displayed is:
>
> System.Reflection.ReflectionTypeLoadException: The classes in the
> module cannot be loaded.
>   at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes
> (bool)
>   at System.Reflection.Assembly.GetTypes () [0x00000]
>   at System.Web.UI.TemplateParser.FindNamespaceInAssembly
> (System.Reflection.Assembly asm, System.String namesp) [0x00000]
>   at System.Web.UI.TemplateParser.AddAssemblyForNamespace
> (System.String namesp) [0x00000]
>   at System.Web.UI.TemplateParser.AddImport (System.String namesp)
> [0x00000]
>   at System.Web.UI.TemplateParser.RegisterNamespace (System.String
> tagPrefix, System.String ns, System.String assembly) [0x00000]
>   at System.Web.UI.TemplateControlParser.AddDirective (System.String
> directive, System.Collections.Hashtable atts) [0x00000]
>   at System.Web.Compilation.AspGenerator.TagParsed (ILocation
> location, TagType tagtype, System.String tagid,
> System.Web.Compilation.TagAttributes attributes) [0x00000]
>   at System.Web.Compilation.AspParser.OnTagParsed (TagType tagtype,
> System.String id, System.Web.Compilation.TagAttributes attributes)
> [0x00000]
>   at System.Web.Compilation.AspParser.Parse () [0x00000]
>   at System.Web.Compilation.AspGenerator.Parse (System.IO.TextReader
> reader, System.String filename, Boolean doInitParser) [0x00000]
>   at System.Web.Compilation.GenericBuildProvider`1[TParser].Parse ()
> [0x00000]
>   at
> System.Web.Compilation.GenericBuildProvider`1[TParser].get_CodeCompilerType
> () [0x00000]
>   at System.Web.Compilation.BuildManager.GetCodeDomProviderType
> (System.Web.Compilation.BuildProvider provider) [0x00000]
>   at System.Web.Compilation.BuildManager+BuildItem..ctor
> (System.Web.Compilation.BuildProvider provider) [0x00000]
>   at System.Web.Compilation.BuildManager.LoadBuildProviders
> (System.Web.VirtualPath virtualPath, System.String virtualDir,
> System.Collections.Generic.Dictionary`2 vpCache,
> System.Web.Compilation.BuildKind& kind, System.String&
> assemblyBaseName) [0x00000]
>   at System.Web.Compilation.BuildManager.BuildAssembly
> (System.Web.VirtualPath virtualPath) [0x00000]
>   at System.Web.Compilation.BuildManager.GetCompiledType
> (System.String virtualPath) [0x00000]
>   at
> System.Web.Compilation.AspComponentFoundry+TagNameFoundry.LoadType ()
> [0x00000]
>   at
> System.Web.Compilation.AspComponentFoundry+TagNameFoundry.GetType
> (System.String componentName, System.String& source,
> System.String& ns) [0x00000]
>   at System.Web.Compilation.AspComponentFoundry.CreateComponent
> (System.Web.Compilation.Foundry foundry, System.String tagName,
> System.String prefix, System.String tag) [0x00000]
>   at System.Web.Compilation.AspComponentFoundry.GetComponent
> (System.String tagName) [0x00000]
>
> but in mod_mono debug output there are those warnings:
> ** (/usr/lib/mono/2.0/mod-mono-server2.exe:23950): WARNING **: The following
> assembly referenced from
> /tmp/wwwrun-temp-aspnet-0/6638e880/assembly/shadow/36583fc2/558f91da_63d7ae18_00000001/MyLib.dll
> could not be loaded:
>      Assembly:   CrystalDecisions.CrystalReports.Engine
> (assemblyref_index=3)
>      Version:    9.1.5000.0
>      Public Key: 692fbea5521e1304
> The assembly was not found in the Global Assembly Cache, a path listed in
> the MONO_PATH environment variable, or in the location of the executing
> assembly
> (/tmp/wwwrun-temp-aspnet-0/6638e880/assembly/shadow/36583fc2/558f91da_63d7ae18_00000001/).
>
>
>
>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>


More information about the Mono-devel-list mailing list