Quantcast

xsp2 crashes with missing method exception

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

xsp2 crashes with missing method exception

kobruleht
I tried to use xsp2 in windows but got missing method exception below.

How to use xsp2 in windows ?

Andrus.

C:\myapp\web>mono xsp2.exe

** (xsp2.exe:4756): WARNING **: Missing method
Mono.WebServer.XSPWebSource::.ctor(IPAddress,int,SecurityProtocolType,X509Certificate,PrivateKeySelectionCal
lback,bool,bool,bool) in assembly
C:\PROGRA~1\MONO-2~1.1\lib\mono\gac\Mono.WebServer2\0.2.0.0__0738eb9f132ed756\Mono.WebServer2.dll,
referenced in assembly
 C:\PROGRA~1\MONO-2~1.1\lib\mono\gac\xsp2\2.6.0.0__0738eb9f132ed756\xsp2.exe
Handling exception type MissingMethodException
Message is Method not found: 'Mono.WebServer.XSPWebSource..ctor'.
IsTerminating is set to True
System.MissingMethodException: Method not found:
'Mono.WebServer.XSPWebSource..ctor'.

Server stack trace:
  at (wrapper managed-to-native)
System.Runtime.Remoting.RemotingServices:InternalExecute
(System.Reflection.MethodBase,object,object[],object[]&)
  at System.Runtime.Remoting.RemotingServices.InternalExecuteMessage
(System.MarshalByRefObject target, IMethodCallMessage reqMsg) [0x00000] in
<filename u
nknown>:0

Exception rethrown at [0]:

  at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke
(System.Runtime.Remoting.Proxies.RealProxy rp, IMessage msg,
System.Exception& exc, System.Obj
ect[]& out_args) [0x00000] in <filename unknown>:0

_______________________________________________
Mono-list maillist  -  [hidden email]
http://lists.ximian.com/mailman/listinfo/mono-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: xsp2 crashes with missing method exception

Robert Jordan
On 23.03.2010 21:57, Andrus wrote:
> I tried to use xsp2 in windows but got missing method exception below.
>
> How to use xsp2 in windows ?
>
> Andrus.
>
> C:\myapp\web>mono xsp2.exe

You seem to be calling your own xsp version that probably doesn't
match the version installed in the GAC.

Robert

>
> ** (xsp2.exe:4756): WARNING **: Missing method
> Mono.WebServer.XSPWebSource::.ctor(IPAddress,int,SecurityProtocolType,X509Certificate,PrivateKeySelectionCal
> lback,bool,bool,bool) in assembly
> C:\PROGRA~1\MONO-2~1.1\lib\mono\gac\Mono.WebServer2\0.2.0.0__0738eb9f132ed756\Mono.WebServer2.dll,
> referenced in assembly
>   C:\PROGRA~1\MONO-2~1.1\lib\mono\gac\xsp2\2.6.0.0__0738eb9f132ed756\xsp2.exe
> Handling exception type MissingMethodException
> Message is Method not found: 'Mono.WebServer.XSPWebSource..ctor'.
> IsTerminating is set to True
> System.MissingMethodException: Method not found:
> 'Mono.WebServer.XSPWebSource..ctor'.
>
> Server stack trace:
>    at (wrapper managed-to-native)
> System.Runtime.Remoting.RemotingServices:InternalExecute
> (System.Reflection.MethodBase,object,object[],object[]&)
>    at System.Runtime.Remoting.RemotingServices.InternalExecuteMessage
> (System.MarshalByRefObject target, IMethodCallMessage reqMsg) [0x00000] in
> <filename u
> nknown>:0
>
> Exception rethrown at [0]:
>
>    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke
> (System.Runtime.Remoting.Proxies.RealProxy rp, IMessage msg,
> System.Exception&  exc, System.Obj
> ect[]&  out_args) [0x00000] in<filename unknown>:0
>
> _______________________________________________
> Mono-list maillist  -  [hidden email]
> http://lists.ximian.com/mailman/listinfo/mono-list
>


_______________________________________________
Mono-list maillist  -  [hidden email]
http://lists.ximian.com/mailman/listinfo/mono-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: xsp2 crashes with missing method exception

kobruleht
> You seem to be calling your own xsp version that probably doesn't
> match the version installed in the GAC.

I copied xsp2.exe from directory created by mono setup:
C:\Program Files\Mono-2.6.1\lib\mono\2.0\winhack

to my appl directory.
So I'm calling xsp2 from 2.6 distribution.

I tried also:

mono "C:\Program Files\Mono-2.6.1\lib\mono\2.0\winhack\xsp2.exe"

but got exactly the same exception.


mono "C:\Program Files\Mono-2.6.1\lib\mono\2.0\winhack\xsp2.exe" --version

returns:

xsp2.exe 2.6.0.0
(c) (c) 2002-2007 Novell, Inc.
Minimalistic web server for testing System.Web


How to try xsp2 in Windows Vista ?

Andrus.
_______________________________________________
Mono-list maillist  -  [hidden email]
http://lists.ximian.com/mailman/listinfo/mono-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: xsp2 crashes with missing method exception

GonzaloP
On Tue, 2010-03-23 at 23:44 +0200, Andrus wrote:
> > You seem to be calling your own xsp version that probably doesn't
> > match the version installed in the GAC.
>
> I copied xsp2.exe from directory created by mono setup:
> C:\Program Files\Mono-2.6.1\lib\mono\2.0\winhack
>
> to my appl directory.
> So I'm calling xsp2 from 2.6 distribution.

You also need to copy Mono.WebServer2.dll and Mono.Security.dll

-Gonzalo


_______________________________________________
Mono-list maillist  -  [hidden email]
http://lists.ximian.com/mailman/listinfo/mono-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: xsp2 crashes with missing method exception

kobruleht
> You also need to copy Mono.WebServer2.dll and Mono.Security.dll

Thank you.
This allows xsp2.exe to start.
If browser window is closed in middle of load, xsp2 crashes with screenshot
below.

How to allow xsp2 to continue servicing ?

Andrus.

Peer unexpectedly closed the connection on write. Closing our end.
System.IO.IOException: Write failure --->
System.Net.Sockets.SocketException: Olemasoleva ³henduse sulges kaughost.

  at System.Net.Sockets.Socket.Send (System.Byte[] buf, Int32 offset, Int32
size, SocketFlags flags) [0x00000] in <filename unknown>:0
  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32
offset, Int32 size) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32
offset, Int32 size) [0x00000] in <filename unknown>:0
  at Mono.WebServer.XSPWorker.Write (System.Byte[] buffer, Int32 position,
Int32 size) [0x00000] in <filename unknown>:0
Peer unexpectedly closed the connection on write. Closing our end.
System.ObjectDisposedException: The object was used after being disposed.
  at System.Net.Sockets.NetworkStream.CheckDisposed () [0x00000] in
<filename unknown>:0
  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32
offset, Int32 size) [0x00000] in <filename unknown>:0
  at Mono.WebServer.XSPWorker.Write (System.Byte[] buffer, Int32 position,
Int32 size) [0x00000] in <filename unknown>:0
Peer unexpectedly closed the connection on write. Closing our end.
System.IO.IOException: Write failure --->
System.Net.Sockets.SocketException: Olemasoleva ³henduse sulges kaughost.

  at System.Net.Sockets.Socket.Send (System.Byte[] buf, Int32 offset, Int32
size, SocketFlags flags) [0x00000] in <filename unknown>:0
  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32
offset, Int32 size) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32
offset, Int32 size) [0x00000] in <filename unknown>:0
  at Mono.WebServer.XSPWorker.Write (System.Byte[] buffer, Int32 position,
Int32 size) [0x00000] in <filename unknown>:0
Peer unexpectedly closed the connection on write. Closing our end.
System.ObjectDisposedException: The object was used after being disposed.
  at System.Net.Sockets.NetworkStream.CheckDisposed () [0x00000] in
<filename unknown>:0
  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32
offset, Int32 size) [0x00000] in <filename unknown>:0
  at Mono.WebServer.XSPWorker.Write (System.Byte[] buffer, Int32 position,
Int32 size) [0x00000] in <filename unknown>:0
Peer unexpectedly closed the connection on write. Closing our end.
System.IO.IOException: Write failure --->
System.Net.Sockets.SocketException: Olemasoleva ³henduse sulges kaughost.

  at System.Net.Sockets.Socket.Send (System.Byte[] buf, Int32 offset, Int32
size, SocketFlags flags) [0x00000] in <filename unknown>:0
  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32
offset, Int32 size) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32
offset, Int32 size) [0x00000] in <filename unknown>:0
  at Mono.WebServer.XSPWorker.Write (System.Byte[] buffer, Int32 position,
Int32 size) [0x00000] in <filename unknown>:0
Peer unexpectedly closed the connection on write. Closing our end.
System.IO.IOException: Write failure --->
System.Net.Sockets.SocketException: Olemasoleva ³henduse sulges kaughost.

  at System.Net.Sockets.Socket.Send (System.Byte[] buf, Int32 offset, Int32
size, SocketFlags flags) [0x00000] in <filename unknown>:0
  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32
offset, Int32 size) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32
offset, Int32 size) [0x00000] in <filename unknown>:0
  at Mono.WebServer.XSPWorker.Write (System.Byte[] buffer, Int32 position,
Int32 size) [0x00000] in <filename unknown>:0
Peer unexpectedly closed the connection on write. Closing our end.
System.ObjectDisposedException: The object was used after being disposed.
  at System.Net.Sockets.NetworkStream.CheckDisposed () [0x00000] in
<filename unknown>:0
  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32
offset, Int32 size) [0x00000] in <filename unknown>:0
  at Mono.WebServer.XSPWorker.Write (System.Byte[] buffer, Int32 position,
Int32 size) [0x00000] in <filename unknown>:0
Peer unexpectedly closed the connection on write. Closing our end.
System.IO.IOException: Write failure --->
System.Net.Sockets.SocketException: Olemasoleva ³henduse sulges kaughost.

  at System.Net.Sockets.Socket.Send (System.Byte[] buf, Int32 offset, Int32
size, SocketFlags flags) [0x00000] in <filename unknown>:0
  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32
offset, Int32 size) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32
offset, Int32 size) [0x00000] in <filename unknown>:0
  at Mono.WebServer.XSPWorker.Write (System.Byte[] buffer, Int32 position,
Int32 size) [0x00000] in <filename unknown>:0
Peer unexpectedly closed the connection on write. Closing our end.
System.ObjectDisposedException: The object was used after being disposed.
  at System.Net.Sockets.NetworkStream.CheckDisposed () [0x00000] in
<filename unknown>:0
  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32
offset, Int32 size) [0x00000] in <filename unknown>:0
  at Mono.WebServer.XSPWorker.Write (System.Byte[] buffer, Int32 position,
Int32 size) [0x00000] in <filename unknown>:0
Peer unexpectedly closed the connection on write. Closing our end.
System.IO.IOException: Write failure --->
System.Net.Sockets.SocketException: Olemasoleva ³henduse sulges kaughost.

  at System.Net.Sockets.Socket.Send (System.Byte[] buf, Int32 offset, Int32
size, SocketFlags flags) [0x00000] in <filename unknown>:0
  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32
offset, Int32 size) [0x00000] in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32
offset, Int32 size) [0x00000] in <filename unknown>:0
  at Mono.WebServer.XSPWorker.Write (System.Byte[] buffer, Int32 position,
Int32 size) [0x00000] in <filename unknown>:0
Peer unexpectedly closed the connection on write. Closing our end.
System.ObjectDisposedException: The object was used after being disposed.
  at System.Net.Sockets.NetworkStream.CheckDisposed () [0x00000] in
<filename unknown>:0
  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32
offset, Int32 size) [0x00000] in <filename unknown>:0
  at Mono.WebServer.XSPWorker.Write (System.Byte[] buffer, Int32 position,
Int32 size) [0x00000] in <filename unknown>:0

_______________________________________________
Mono-list maillist  -  [hidden email]
http://lists.ximian.com/mailman/listinfo/mono-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: xsp2 crashes with missing method exception

GonzaloP
On Wed, 2010-03-24 at 20:40 +0200, Andrus wrote:

> > You also need to copy Mono.WebServer2.dll and Mono.Security.dll
>
> Thank you.
> This allows xsp2.exe to start.
> If browser window is closed in middle of load, xsp2 crashes with screenshot
> below.
>
> How to allow xsp2 to continue servicing ?
>
> Andrus.
>
> Peer unexpectedly closed the connection on write. Closing our end.
> System.IO.IOException: Write failure --->
> System.Net.Sockets.SocketException: Olemasoleva ³henduse sulges kaughost.

Those exceptions are normal when the browser closes a connection that
was being reused, but xsp does not crash on those. If you have a
reliable way of reproducing a crash, please use bugzilla
(http://www.mono-project.com/Bugs) to report the problem.

-Gonzalo


_______________________________________________
Mono-list maillist  -  [hidden email]
http://lists.ximian.com/mailman/listinfo/mono-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: xsp2 crashes with missing method exception

kobruleht
In reply to this post by GonzaloP
> You also need to copy Mono.WebServer2.dll and Mono.Security.dll

I uninstalled mono 2.6 , installed 2.4 and copied those 2 files from 2.4
installation.

Running

C:\myapp\web>mono "C:\Program
Files\Mono-2.4.2.2\lib\mono\2.0\winhack\xsp2.exe"

causes exception below.

How to use Mono 2.4  web server in Windows Vista ?

Andrus.


** (C:\Program Files\Mono-2.4.2.2\lib\mono\2.0\winhack\xsp2.exe:5008):
WARNING **: Missing method Mono.WebServer.XSPWebSour
ce::.ctor(IPAddress,int,SecurityProtocolType,X509Certificate,PrivateKeySelectionCallback,bool,bool,bool)
in assembly C:\PRO
GRA~1\MONO-2~1.2\lib\mono\gac\Mono.WebServer2\0.2.0.0__0738eb9f132ed756\Mono.WebServer2.dll,
referenced in assembly C:\PROG
RA~1\MONO-2~1.2\lib\mono\gac\xsp2\2.4.2.0__0738eb9f132ed756\xsp2.exe
Handling exception type MissingMethodException
Message is Method not found: 'Mono.WebServer.XSPWebSource..ctor'.
IsTerminating is set to True
System.MissingMethodException: Method not found:
'Mono.WebServer.XSPWebSource..ctor'.

Server stack trace:
  at (wrapper managed-to-native)
System.Runtime.Remoting.RemotingServices:InternalExecute
(System.Reflection.MethodBase,obj
ect,object[],object[]&)
  at System.Runtime.Remoting.RemotingServices.InternalExecuteMessage
(System.MarshalByRefObject target, IMethodCallMessage
reqMsg) [0x00000]

Exception rethrown at [0]:

  at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke
(System.Runtime.Remoting.Proxies.RealProxy rp, IMessage msg, S
ystem.Exception& exc, System.Object[]& out_args) [0x00000]



mono "C:\Program Files\Mono-2.4.2.2\lib\mono\2.0\winhack\xsp2.exe" --version

returns


xsp2.exe 2.4.2.0
(c) (c) 2002-2007 Novell, Inc.
Minimalistic web server for testing System.Web

_______________________________________________
Mono-list maillist  -  [hidden email]
http://lists.ximian.com/mailman/listinfo/mono-list
Loading...