[Mono-dev] Difference on reference search between mono 2.4.2 and mono 2.4.3
APS
dev.malst at apsystems.it
Mon Nov 16 06:09:52 EST 2009
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/).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20091116/dee4776f/attachment.html
More information about the Mono-devel-list
mailing list