[Mono-dev] Difference on reference search between source and VM

APS dev.malst at apsystems.it
Thu Nov 19 06:45:58 EST 2009


I checked better and I found that is not a Crystal related problem.
I created a simple web project with an unused 
reference, I deployed it on a machine with Mono 
2.4.2.3 built from source and it runs correctly, 
I deployed it on the Mono 2.4.2.3 virtual machine 
and it gives the 
System.Reflection.ReflectionTypeLoadException 
with the warning for missing reference in debug 
output. If I copy the referenced dll it works.
Some hint about this different behavior?

At 17.46 16/11/2009, you wrote:
>I agree with you, I already replaced Crystal but
>some legacy module still reference it. I don't
>use it on Mono, and I don't distribute it, it's
>only referenced in some assembly (and by now I can't remove the reference).
>What is strange is that Mono 2.4.2.3 rebuilt from
>source on a CentOS machine doesn't complain about
>the reference, it emits a warning on debug output
>and keeps on loading the application, Mono
>2.4.2.3 on the vmware machine downloaded from
>mono website emits a warning and also the error
>reported without starting the application.
>There's some option that influence this behavior?
>
>At 17.39 16/11/2009, you wrote:
> >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
> > >
> > >
> >
> >--
> >Il messaggio e' stato analizzato alla ricerca di virus o
> >contenuti pericolosi da MailScanner, ed e'
> >risultato non infetto.
>
>
>_______________________________________________
>Mono-devel-list mailing list
>Mono-devel-list at lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>--
>Il messaggio e' stato analizzato alla ricerca di virus o
>contenuti pericolosi da MailScanner, ed e'
>risultato non infetto.




More information about the Mono-devel-list mailing list