[Mono-aspnet-list] XSP4 Handling exception type TypeLoadException, Message is Could not load type 'mscorlib, Version=4.0.0.0, Culture=neutral,

Stanislav O Chernykh stanislav.chernykh90 at gmail.com
Sun Apr 28 22:14:32 UTC 2013


Hi, I'm unable to run xsp4 while debugging asp.net 4 mvc application 
within monodevelop

xsp2 runs just fine

$ xsp2

xsp2
Listening on address: 0.0.0.0
Root directory: /home/pandarun
Listening on port: 8080 (non-secure)
Hit Return to stop the server.


$ xsp4

Handling exception type TypeLoadException
Message is Could not load type 'mscorlib, Version=4.0.0.0, 
Culture=neutral, PublicKeyToken=b77a5c561934e089'.
IsTerminating is set to True
System.TypeLoadException: Could not load type 'mscorlib, 
Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
   at (wrapper managed-to-native) System.Type:internal_from_name 
(string,bool,bool)
   at System.Type.GetType (System.String typeName, Boolean throwOnError) 
[0x00000] in <filename unknown>:0
   at 
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadTypeMetadata 
(System.IO.BinaryReader reader, Boolean isRuntimeObject, Boolean 
hasTypeInfo) [0x00000] in <filename unknown>:0
   at 
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectInstance 
(System.IO.BinaryReader reader, Boolean isRuntimeObject, Boolean 
hasTypeInfo, System.Int64& objectId, System.Object& value, 
System.Runtime.Serialization.SerializationInfo& info) [0x00000] in 
<filename unknown>:0
   at 
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObject 
(BinaryElement element, System.IO.BinaryReader reader, System.Int64& 
objectId, System.Object& value, 
System.Runtime.Serialization.SerializationInfo& info) [0x00000] in 
<filename unknown>:0
   at 
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadNextObject 
(BinaryElement element, System.IO.BinaryReader reader) [0x00000] in 
<filename unknown>:0
   at 
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectGraph 
(BinaryElement elem, System.IO.BinaryReader reader, Boolean readHeaders, 
System.Object& result, System.Runtime.Remoting.Messaging.Header[]& 
headers) [0x00000] in <filename unknown>:0
   at 
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.NoCheckDeserialize 
(System.IO.Stream serializationStream, 
System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00000] in 
<filename unknown>:0
   at 
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize 
(System.IO.Stream serializationStream) [0x00000] in <filename unknown>:0
   at System.Runtime.Remoting.Channels.CADSerializer.DeserializeObject 
(System.IO.MemoryStream mem) [0x00000] in <filename unknown>:0
   at System.Runtime.Remoting.RemotingServices.GetDomainProxy 
(System.AppDomain domain) [0x00000] in <filename unknown>:0
   at System.AppDomain.CreateDomain (System.String friendlyName, 
System.Security.Policy.Evidence securityInfo, System.AppDomainSetup 
info) [0x00000] in <filename unknown>:0
   at System.Web.Hosting.ApplicationHost.CreateApplicationHost 
(System.Type hostType, System.String virtualDir, System.String 
physicalDir) [0x00000] in <filename unknown>:0
   at Mono.WebServer.VPathToHost.CreateHost 
(Mono.WebServer.ApplicationServer server, Mono.WebServer.WebSource 
webSource) [0x00000] in <filename unknown>:0
   at Mono.WebServer.XSP.Server.RealMain (System.String[] args, Boolean 
root, IApplicationHost ext_apphost, Boolean quiet) [0x00000] in 
<filename unknown>:0
   at Mono.WebServer.XSP.Server.Main (System.String[] args) [0x00000] in 
<filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not 
load type 'mscorlib, Version=4.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089'.
   at (wrapper managed-to-native) System.Type:internal_from_name 
(string,bool,bool)
   at System.Type.GetType (System.String typeName, Boolean throwOnError) 
[0x00000] in <filename unknown>:0
   at 
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadTypeMetadata 
(System.IO.BinaryReader reader, Boolean isRuntimeObject, Boolean 
hasTypeInfo) [0x00000] in <filename unknown>:0
   at 
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectInstance 
(System.IO.BinaryReader reader, Boolean isRuntimeObject, Boolean 
hasTypeInfo, System.Int64& objectId, System.Object& value, 
System.Runtime.Serialization.SerializationInfo& info) [0x00000] in 
<filename unknown>:0
   at 
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObject 
(BinaryElement element, System.IO.BinaryReader reader, System.Int64& 
objectId, System.Object& value, 
System.Runtime.Serialization.SerializationInfo& info) [0x00000] in 
<filename unknown>:0
   at 
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadNextObject 
(BinaryElement element, System.IO.BinaryReader reader) [0x00000] in 
<filename unknown>:0
   at 
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadObjectGraph 
(BinaryElement elem, System.IO.BinaryReader reader, Boolean readHeaders, 
System.Object& result, System.Runtime.Remoting.Messaging.Header[]& 
headers) [0x00000] in <filename unknown>:0
   at 
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.NoCheckDeserialize 
(System.IO.Stream serializationStream, 
System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00000] in 
<filename unknown>:0
   at 
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize 
(System.IO.Stream serializationStream) [0x00000] in <filename unknown>:0
   at System.Runtime.Remoting.Channels.CADSerializer.DeserializeObject 
(System.IO.MemoryStream mem) [0x00000] in <filename unknown>:0
   at System.Runtime.Remoting.RemotingServices.GetDomainProxy 
(System.AppDomain domain) [0x00000] in <filename unknown>:0
   at System.AppDomain.CreateDomain (System.String friendlyName, 
System.Security.Policy.Evidence securityInfo, System.AppDomainSetup 
info) [0x00000] in <filename unknown>:0
   at System.Web.Hosting.ApplicationHost.CreateApplicationHost 
(System.Type hostType, System.String virtualDir, System.String 
physicalDir) [0x00000] in <filename unknown>:0
   at Mono.WebServer.VPathToHost.CreateHost 
(Mono.WebServer.ApplicationServer server, Mono.WebServer.WebSource 
webSource) [0x00000] in <filename unknown>:0
   at Mono.WebServer.XSP.Server.RealMain (System.String[] args, Boolean 
root, IApplicationHost ext_apphost, Boolean quiet) [0x00000] in 
<filename unknown>:0
   at Mono.WebServer.XSP.Server.Main (System.String[] args) [0x00000] in 
<filename unknown>:0



$ mono --version

Mono JIT compiler version 3.0.11 (master/2a0e2e6 Mon Apr 29 01:34:10 MSK 
2013)
Copyright (C) 2002-2012 Novell, Inc, Xamarin Inc and Contributors. 
www.mono-project.com
     TLS:           __thread
     SIGSEGV:       altstack
     Notifications: epoll
     Architecture:  amd64
     Disabled:      none
     Misc:          softdebug
     LLVM:          yes(3.2svn-mono)
     GC:            Included Boehm (with typed GC and Parallel Mark)


=== MonoDevelop ===

Version 4.0
Installation UUID: 75517fcf-71f6-4e5b-b74b-8d5ca5f4489d
Runtime:
     Mono 3.0.11 (master/2a0e2e6 Mon Apr 29 01:34:10 MSK 2013) (64-bit)
     GTK 2.24.10
     GTK# (2.12.0.0)

=== Build Information ===

Git revision: 7b28b8e4041130a649373e87c88c1987124a888f
Build date: 2013-04-28 16:26:43+0000

=== Operating System ===

Linux
Linux pandarun-pc 3.2.0-40-generic #64-Ubuntu SMP Mon Mar 25 21:22:10 
UTC 2013 x86_64 x86_64 x86_64 GNU/Linux






More information about the Mono-aspnet-list mailing list