[Mono-list] XSP2 (mono InvalidCastException in System.Net.Sockets.Socket.CheckProtocolSupport

mono at anset.org mono at anset.org
Thu Oct 1 06:50:45 EDT 2009

Hi everybody,

I usually am able to solve these kind of problems myself (with the help
of google and all of you, of course) but this time I just cannot seem to
find anything related ...

After upgrading from mono-2.2-r5 to mono-, my asp.net
application,which was working before the upgrade, now gives an
invalidcast exception immediately on startup:

 System.InvalidCastException: Cannot cast from source type to
destination type.
  at System.Net.Sockets.Socket.CheckProtocolSupport () [0x0003c] in

  at System.Net.Sockets.Socket..cctor () [0x0000c] in

This is only a problem when I use xsp, for example when I run it from
Monodevelop, I get the error, but starting xsp2 on the command line also
gives the problem, so this does not appear to be a Monodevelop problem.

mod-mono-server2 has no problems at all and I am using it now, but it
does make debugging my application harder since the error/debug output
does not contain line numbers and such.

If anyone has an idea?

Best regards,


More information about the Mono-list mailing list