[Mono-list] ASP Server.Transfer error

Gonzalo Paniagua Javier gonzalo at novell.com
Fri May 26 10:22:37 EDT 2006

On Fri, 2006-05-26 at 13:51 +1000, Bryan Buchanan wrote:
> Hi,
> I'm trying to run the code from MS's web site on the topic "Passing
> Server Control Values Between Pages".
> When I click on the "Go to second page" button, the runtime barfs with
> an error "System.InvalidCastException: Cannot cast from source type to
> destination type".
> I'm assuming it's the line of code:
> fp = (FirstPageClass) Context.Handler;
> Can someone tell me if these examples should work ? Below is the code
> and info on the version of Mono I'm using.

Your example was supposed to work, but there was a bug in our code. It's
fixed now in svn HEAD. I've uploaded a System.Web.dll with the fix to
http://primates.ximian.com/~gonzalo/tmp/sysweb.tar.gz , just in case you
don't want to build from svn source.



More information about the Mono-list mailing list