[Mono-aspnet-list] Mono 2.4 Switching ASP.Net 2.0 to 3.5 System.Reflection.ReflectionTypeLoadException

Patrick epstone2 at gmail.com
Wed Aug 18 06:20:35 EDT 2010


Hello,

I'm running debian lenny using the 2.4 backport:
aptitude -t lenny-backports install libapache2-mod-mono
I had the latest stable 1.9 version before.

If I create a new web application with VS 2010 and switch it to ASP.NET 2.0
it runs fine.
Turning it into an 3.5 application leads to the following errors and
warnings.
Is something installed incorrectly or have I forgotten to update something?

Compilation Error

   Description: Error compiling a resource required to service this request.
Review your source file and modify it to fix this error.

   Compiler Error Message: : ** (/usr/lib/mono/2.0/gmcs.exe:2847): WARNING
**: The following assembly referenced from
  
/usr/lib/mono/gac/System.Web.Extensions/3.5.0.0__31bf3856ad364e35/System.Web.Extensions.dll
could not be loaded:
   ~/Global.asax

   Show Detailed Compiler Output:

gmcs /target:library /lib:"/var/www/bin" /debug+ /optimize- /warn:4
/out:"/tmp/www-data-temp-aspnet-0/b913d349/App_global.asax.5933b3e1.dll"
/r:"/usr/lib/mono/gac/System/2.0.0.0__b77a5c561934e089/System.dll"
/r:"/usr/lib/mono/gac/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/Syste
m.Configuration.dll"
/r:"/usr/lib/mono/gac/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll"
/r:"/usr/lib/mono/gac/System.Drawing/2.0.0.
0__b03f5f7f11d50a3a/System.Drawing.dll"
/r:"/usr/lib/mono/gac/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll"
/r:"/usr/lib/mono/gac/Syst
em.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll"
/r:"/usr/lib/mono/gac/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll"

/r:"/usr/lib/mono/gac/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll"
/r:"/usr/lib/mono/gac/System.Web.Extensions/3.5.0.0__31bf3856ad
364e35/System.Web.Extensions.dll"
/r:"/usr/lib/mono/gac/System.Xml.Linq/3.5.0.0__b77a5c561934e089/System.Xml.Linq.dll"
/r:"/var/www/bin/WebAp
plication1.dll"
/r:"/usr/lib/mono/gac/System/2.0.0.0__b77a5c561934e089/System.dll"
/r:"/usr/lib/mono/gac/System.Configuration/2.0.0.0__b03f5f
7f11d50a3a/System.Configuration.dll"
/r:"/usr/lib/mono/gac/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll"
/r:"/usr/lib/mono/gac/Syste
m.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll"
/r:"/usr/lib/mono/gac/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll"
/r:"/usr/l
ib/mono/gac/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll"
/r:"/usr/lib/mono/gac/System.Xml/2.0.0.0__b77a5c561934e089
/System.Xml.dll"
/r:"/usr/lib/mono/gac/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll"
/r:"/usr/lib/mono/gac/System.Web.Extensions/3.5
.0.0__31bf3856ad364e35/System.Web.Extensions.dll"
/r:"/usr/lib/mono/gac/System.Xml.Linq/3.5.0.0__b77a5c561934e089/System.Xml.Linq.dll"
/r:"/v
ar/www/bin/WebApplication1.dll"  /nowarn:0169  --
"/tmp/www-data-temp-aspnet-0/b913d349/App_global.asax.405627da_0.cs"


** (/usr/lib/mono/2.0/gmcs.exe:2847): WARNING **: The following assembly
referenced from /usr/lib/mono/gac/System.Web.Extensions/3.5.0.0__31b
f3856ad364e35/System.Web.Extensions.dll could not be loaded:
     Assembly:   System.Data.Linq    (assemblyref_index=6)
     Version:    3.5.0.0
     Public Key: b77a5c561934e089
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 execu
ting assembly
(/usr/lib/mono/gac/System.Web.Extensions/3.5.0.0__31bf3856ad364e35/).


** (/usr/lib/mono/2.0/gmcs.exe:2847): WARNING **: Could not load file or
assembly 'System.Data.Linq, Version=3.5.0.0, Culture=neutral, Public
KeyToken=b77a5c561934e089' or one of its dependencies.

Unhandled Exception: 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 Mono.CSharp.RootNamespace.ComputeNamespaces (System.Reflection.Assembly
assembly) [0x00000]
  at Mono.CSharp.RootNamespace.ComputeNamespaces () [0x00000]
  at Mono.CSharp.Driver.LoadReferences () [0x00000]
  at Mono.CSharp.Driver.Compile () [0x00000]
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000]

Thanks and best regards
Patrick
-- 
View this message in context: http://mono.1490590.n4.nabble.com/Mono-2-4-Switching-ASP-Net-2-0-to-3-5-System-Reflection-ReflectionTypeLoadException-tp2329593p2329593.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.


More information about the Mono-aspnet-list mailing list