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-2.4.2.3, 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
/disk/home/portage/dev-lang/mono-2.4.2.3/work/mono-2.4.2.3/mcs/class/System/System.Net.Sockets/Socket.cs:1343

  at System.Net.Sockets.Socket..cctor () [0x0000c] in
/disk/home/portage/dev-lang/mono-2.4.2.3/work/mono-2.4.2.3/mcs/class/System/System.Net.Sockets/Socket.cs:602

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,

Anset.


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

Reply via email to