[Mono-list] xsp 2.6.1 failing: Couldn't bind to method 'SetHostingEnvironment'.

Ben Joldersma ben at skullsquad.com
Thu Dec 31 13:51:04 EST 2009


Hey folks!

hope you're having a great end of year / beginning of new one.  I'm trying
to get 2.6 running with our code, mainly so I can try out the new soft
debugger in MD.  I'm getting this exception:

[mono] ~/workspaces/mono/current/mono-2.6.1 @ MONO_OPTIONS=--debug xsp2
Handling exception type TargetInvocationException
Message is Exception has been thrown by the target of an invocation.
IsTerminating is set to True
System.Reflection.TargetInvocationException: Exception has been thrown by
the target of an invocation.

Server stack trace:
  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x0012c] in
/home/ben/workspaces/mono/2.6/mono-2.6.1/mcs/class/corlib/System.Reflection/MonoMethod.cs:506
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[]
parameters) [0x00000] in
/home/ben/workspaces/mono/2.6/mono-2.6.1/mcs/class/corlib/System.Reflection/MethodBase.cs:113
  at System.Runtime.Serialization.ObjectRecord.LoadData
(System.Runtime.Serialization.ObjectManager manager, ISurrogateSelector
selector, StreamingContext context) [0x000d7] in
/home/ben/workspaces/mono/2.6/mono-2.6.1/mcs/class/corlib/System.Runtime.Serialization/ObjectManager.cs:578
  at System.Runtime.Serialization.ObjectManager.DoFixups () [0x00066] in
/home/ben/workspaces/mono/2.6/mono-2.6.1/mcs/class/corlib/System.Runtime.Serialization/ObjectManager.cs:84
  at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ReadNextObject
(System.IO.BinaryReader reader) [0x0000f] in
/home/ben/workspaces/mono/2.6/mono-2.6.1/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:145
  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)
[0x0003f] in
/home/ben/workspaces/mono/2.6/mono-2.6.1/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/ObjectReader.cs:110
  at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.NoCheckDeserialize
(System.IO.Stream serializationStream,
System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00078] in
/home/ben/workspaces/mono/2.6/mono-2.6.1/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/BinaryFormatter.cs:177
  at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize
(System.IO.Stream serializationStream) [0x00000] in
/home/ben/workspaces/mono/2.6/mono-2.6.1/mcs/class/corlib/System.Runtime.Serialization.Formatters.Binary/BinaryFormatter.cs:134
  at System.Runtime.Remoting.RemotingServices.DeserializeCallData
(System.Byte[] array) [0x0000f] in
/home/ben/workspaces/mono/2.6/mono-2.6.1/mcs/class/corlib/System.Runtime.Remoting/RemotingServices.cs:793
  at (wrapper xdomain-dispatch) System.AppDomain:DoCallBack
(object,byte[]&,byte[]&)

Exception rethrown at [0]:
 ---> System.ArgumentException: Couldn't bind to method
'SetHostingEnvironment'.
  at System.Delegate.GetCandidateMethod (System.Type type, System.Type
target, System.String method, BindingFlags bflags, Boolean ignoreCase,
Boolean throwOnBindFailure) [0x00112] in
/home/ben/workspaces/mono/2.6/mono-2.6.1/mcs/class/corlib/System/Delegate.cs:357
  at System.Delegate.CreateDelegate (System.Type type, System.Type target,
System.String method, Boolean ignoreCase, Boolean throwOnBindFailure)
[0x00011] in
/home/ben/workspaces/mono/2.6/mono-2.6.1/mcs/class/corlib/System/Delegate.cs:369
  at System.Delegate.CreateDelegate (System.Type type, System.Type target,
System.String method) [0x00000] in
/home/ben/workspaces/mono/2.6/mono-2.6.1/mcs/class/corlib/System/Delegate.cs:378
  at System.DelegateSerializationHolder+DelegateEntry.DeserializeDelegate
(System.Runtime.Serialization.SerializationInfo info) [0x000b6] in
/home/ben/workspaces/mono/2.6/mono-2.6.1/mcs/class/corlib/System/DelegateSerializationHolder.cs:92
  at System.DelegateSerializationHolder..ctor
(System.Runtime.Serialization.SerializationInfo info, StreamingContext ctx)
[0x00042] in
/home/ben/workspaces/mono/2.6/mono-2.6.1/mcs/class/corlib/System/DelegateSerializationHolder.cs:119
  at (wrapper managed-to-native)
System.Reflection.MonoCMethod:InternalInvoke
(object,object[],System.Exception&)
  at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags
invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.CultureInfo culture) [0x00119] in
/home/ben/workspaces/mono/2.6/mono-2.6.1/mcs/class/corlib/System.Reflection/MonoMethod.cs:500
  --- End of inner exception stack trace ---
  at (wrapper xdomain-invoke) System.AppDomain:DoCallBack
(System.CrossAppDomainDelegate)
  at (wrapper remoting-invoke-with-check) System.AppDomain:DoCallBack
(System.CrossAppDomainDelegate)
  at System.Web.Hosting.ApplicationHost.CreateApplicationHost (System.Type
hostType, System.String virtualDir, System.String physicalDir) [0x002da] in
/home/ben/workspaces/mono/2.6/mono-2.6.1/mcs/class/System.Web/System.Web.Hosting/ApplicationHost.cs:270
  at Mono.WebServer.VPathToHost.CreateHost (Mono.WebServer.ApplicationServer
server, Mono.WebServer.WebSource webSource) [0x00037] in
/home/ben/workspaces/mono/trunk/xsp-142707/src/Mono.WebServer/VPathToHost.cs:150
  at Mono.WebServer.XSP.Server.RealMain (System.String[] args, Boolean root,
IApplicationHost ext_apphost, Boolean quiet) [0x0066d] in
/home/ben/workspaces/mono/trunk/xsp-142707/src/Mono.WebServer.XSP/main.cs:445
  at (wrapper remoting-invoke-with-check) Mono.WebServer.XSP.Server:RealMain
(string[],bool,Mono.WebServer.IApplicationHost,bool)
  at Mono.WebServer.XSP.Server.Main (System.String[] args) [0x00018] in
/home/ben/workspaces/mono/trunk/xsp-142707/src/Mono.WebServer.XSP/main.cs:264

Any thoughts?

--
ben joldersma
craftsman
http://skullsquad.com
[o]: 206.973.8003
[c]: 206.349.2852
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20091231/8e1c5ed4/attachment.html 


More information about the Mono-list mailing list