[Mono-aspnet-list] ReflectionTypeLoadException - Flag to avoid missing reference?
APS
dev.malst at apsystems.it
Fri Nov 20 10:38:06 EST 2009
Hi,
I'm experiencing a strange behavior. I already posted it on
mono-devel-list but after some check I found that is aspnet related
so I post also here before entering a bug report.
I've downloaded Mono 2.4.2.3 VmWare machine and I deployed a test
application. At first access to the app I got an error cause an
assembly reference is missing and I can't use it. It happens only for
libraries referenced inside the <%@ Register @%> directive inside
.aspx files, missing libraries referenced only in project doesn't
have this issue. Even removing aspx files, but without rebuilding the
app, the error continue to be raised.
The error is:
System.Reflection.ReflectionTypeLoadException: The classes in the
module cannot be loaded.
and in debug output I see
** (/usr/lib/mono/2.0/mod-mono-server2.exe:7319): WARNING **: The
following assembly referenced from
/tmp/wwwrun-temp-aspnet-0/a51044c2/assembly/shadow/135511eb/4ab54322_59e052c9_00000001/testmono.dll
could not be loaded:
Assembly: myLib (assemblyref_index=4)
Version: 9.2.0.57
Public Key: (none)
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/a51044c2/assembly/shadow/135511eb/4ab54322_59e052c9_00000001/).
The weird thing is that in a CentOS machine where I rebuilt Mono
2.4.2.3 from source it doesn't happen.
So I would like to know if there's some build configuration that
enables this lock or if you have an idea about how solve the problem.
I can't remove unused reference by now.
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20091120/6c7b8d28/attachment.html
More information about the Mono-aspnet-list
mailing list